text
stringlengths
24
1.04M
metadata
stringlengths
233
497
### File: tlsf_cpp/CMakeLists.txt cmake_minimum_required(VERSION 3.5) project(tlsf_cpp) if(WIN32 OR APPLE OR ANDROID) message(STATUS "tlsf allocator does not target Windows, OSX or Android, skipping...") return() endif() # Default to C++17 if(NOT CMAKE_CXX_STANDARD) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_ST...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/realtime_support", "path": "tlsf_cpp/CMakeLists.txt", "license": "apache-2.0", "size": 1952}
### File: tlsf_cpp/example/allocator_example.cpp // Copyright 2015 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/li...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/realtime_support", "path": "tlsf_cpp/example/allocator_example.cpp", "license": "apache-2.0", "size": 4341}
### File: tlsf_cpp/include/tlsf_cpp/tlsf.hpp // Copyright 2015 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/licens...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/realtime_support", "path": "tlsf_cpp/include/tlsf_cpp/tlsf.hpp", "license": "apache-2.0", "size": 3454}
### File: tlsf_cpp/test/test_tlsf.cpp // Copyright 2015 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/LICE...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/realtime_support", "path": "tlsf_cpp/test/test_tlsf.cpp", "license": "apache-2.0", "size": 5605}
### File: resource_retriever/CMakeLists.txt cmake_minimum_required(VERSION 3.5) project(resource_retriever) # Default to C++14 if(NOT CMAKE_CXX_STANDARD) set(CMAKE_CXX_STANDARD 14) endif() if(NOT WIN32) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic") endif() find_package(ament_cmake_ros REQUIR...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/resource_retriever", "path": "resource_retriever/CMakeLists.txt", "license": "bsd", "size": 1547}
### File: resource_retriever/include/resource_retriever/retriever.h /* * Copyright (C) 2009, Willow Garage, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/resource_retriever", "path": "resource_retriever/include/resource_retriever/retriever.h", "license": "bsd", "size": 2971}
### File: resource_retriever/include/resource_retriever/visibility_control.hpp // Copyright 2017 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // /...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/resource_retriever", "path": "resource_retriever/include/resource_retriever/visibility_control.hpp", "license": "bsd", "size": 2335}
### File: resource_retriever/setup.py from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup d = generate_distutils_setup() d['packages'] = ['resource_retriever'] d['scripts'] = [] d['package_dir'] = {'': 'src'} setup(**d)
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/resource_retriever", "path": "resource_retriever/setup.py", "license": "bsd", "size": 226}
### File: resource_retriever/src/resource_retriever/__init__.py # Software License Agreement (BSD License) # # Copyright (c) 2008, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/resource_retriever", "path": "resource_retriever/src/resource_retriever/__init__.py", "license": "bsd", "size": 2664}
### File: resource_retriever/src/retriever.cpp /* * Copyright (C) 2009, Willow Garage, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notic...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/resource_retriever", "path": "resource_retriever/src/retriever.cpp", "license": "bsd", "size": 4192}
### File: resource_retriever/test/CMakeLists.txt set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}) catkin_add_gtest(${PROJECT_NAME}_utest test.cpp) target_link_libraries(${PROJECT_NAME}_utest ${PROJECT_NAME}) catkin_add_nosetests(test.py)
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/resource_retriever", "path": "resource_retriever/test/CMakeLists.txt", "license": "bsd", "size": 192}
### File: resource_retriever/test/test.cpp /********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2008, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are p...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/resource_retriever", "path": "resource_retriever/test/test.cpp", "license": "bsd", "size": 3380}
### File: resource_retriever/test/test.py import resource_retriever as r import os import rospkg from nose.tools import raises rospack = rospkg.RosPack() def test_get_by_package(): res = r.get("package://resource_retriever/test/test.txt") assert len(res) == 1 assert res == 'A'.encode() def test_get_larg...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/resource_retriever", "path": "resource_retriever/test/test.py", "license": "bsd", "size": 940}
### File: CMakeLists.txt cmake_minimum_required(VERSION 3.5) project(rcpputils) find_package(ament_cmake REQUIRED) find_package(ament_cmake_ros REQUIRED) find_package(rcutils REQUIRED) # Default to C11 if(NOT CMAKE_C_STANDARD) set(CMAKE_C_STANDARD 11) endif() # TODO (ahcorde): Remove tl_expected when CXX 20 standa...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/rcpputils", "path": "CMakeLists.txt", "license": "apache-2.0", "size": 6095}
### File: include/rcpputils/asserts.hpp // Copyright 2020 Amazon.com, Inc. or its affiliates. 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.apa...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "include/rcpputils/asserts.hpp", "license": "apache-2.0", "size": 3955}
### File: include/rcpputils/endian.hpp // Copyright 2019 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LIC...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "include/rcpputils/endian.hpp", "license": "apache-2.0", "size": 2137}
### File: include/rcpputils/env.hpp // Copyright (c) 2020, Open Source Robotics Foundation, Inc. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyrig...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "include/rcpputils/env.hpp", "license": "apache-2.0", "size": 2599}
### File: include/rcpputils/filesystem_helper.hpp // Copyright (c) 2019, Open Source Robotics Foundation, Inc. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "include/rcpputils/filesystem_helper.hpp", "license": "apache-2.0", "size": 13660}
### File: include/rcpputils/find_and_replace.hpp // Copyright 2019 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/li...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "include/rcpputils/find_and_replace.hpp", "license": "apache-2.0", "size": 3215}
### File: include/rcpputils/find_library.hpp // Copyright 2019 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licens...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "include/rcpputils/find_library.hpp", "license": "apache-2.0", "size": 2426}
### File: include/rcpputils/join.hpp // Copyright 2019 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICEN...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "include/rcpputils/join.hpp", "license": "apache-2.0", "size": 1900}
### File: include/rcpputils/pointer_traits.hpp // Copyright 2019 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/lice...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "include/rcpputils/pointer_traits.hpp", "license": "apache-2.0", "size": 3362}
### File: include/rcpputils/process.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://www.apache.org/licenses/LI...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "include/rcpputils/process.hpp", "license": "apache-2.0", "size": 1129}
### File: include/rcpputils/rolling_mean_accumulator.hpp // Copyright 2020 PAL Robotics S.L. // // 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/LICEN...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "include/rcpputils/rolling_mean_accumulator.hpp", "license": "apache-2.0", "size": 2286}
### File: include/rcpputils/scope_exit.hpp // Copyright 2015-2020 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/lic...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "include/rcpputils/scope_exit.hpp", "license": "apache-2.0", "size": 1646}
### File: include/rcpputils/shared_library.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://www.apache.org/lice...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "include/rcpputils/shared_library.hpp", "license": "apache-2.0", "size": 3916}
### File: include/rcpputils/split.hpp // Copyright (c) 2019, Open Source Robotics Foundation, Inc. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyr...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "include/rcpputils/split.hpp", "license": "apache-2.0", "size": 3509}
### File: include/rcpputils/thread_safety_annotations.hpp // Copyright 2019 Amazon.com, Inc. or its affiliates. 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 // // ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "include/rcpputils/thread_safety_annotations.hpp", "license": "apache-2.0", "size": 11942}
### File: include/rcpputils/time.hpp // Copyright 2021 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/LICEN...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "include/rcpputils/time.hpp", "license": "apache-2.0", "size": 2087}
### File: include/rcpputils/tl_expected/expected.hpp /// // expected - An implementation of std::expected with extensions // Written in 2017 by Simon Brand (simonrbrand@gmail.com, @TartanLlama) // // Documentation available at http://tl.tartanllama.xyz/ // // To the extent possible under law, the author(s) have dedicat...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "include/rcpputils/tl_expected/expected.hpp", "license": "apache-2.0", "size": 88505}
### File: include/rcpputils/unique_lock.hpp // Copyright 2023 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/license...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "include/rcpputils/unique_lock.hpp", "license": "apache-2.0", "size": 1300}
### File: include/rcpputils/visibility_control.hpp // Copyright (c) 2019, Open Source Robotics Foundation, Inc. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain th...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "include/rcpputils/visibility_control.hpp", "license": "apache-2.0", "size": 3422}
### File: src/asserts.cpp // Copyright 2020 Amazon.com, Inc. or its affiliates. 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/licens...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "src/asserts.cpp", "license": "apache-2.0", "size": 1042}
### File: src/env.cpp // Copyright (c) 2020, Open Source Robotics Foundation, Inc. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright // not...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "src/env.cpp", "license": "apache-2.0", "size": 2307}
### File: src/filesystem_helper.cpp // Copyright (c) 2019, Open Source Robotics Foundation, Inc. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyrig...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "src/filesystem_helper.cpp", "license": "apache-2.0", "size": 15389}
### File: src/find_library.cpp // Copyright 2019 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "src/find_library.cpp", "license": "apache-2.0", "size": 2482}
### File: src/process.cpp // Copyright 2023 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // /...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "src/process.cpp", "license": "apache-2.0", "size": 1183}
### File: src/shared_library.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/LICENSE-2...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "src/shared_library.cpp", "license": "apache-2.0", "size": 3178}
### File: test/dummy_shared_library/dummy_shared_library.c // 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.apa...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/rcpputils", "path": "test/dummy_shared_library/dummy_shared_library.c", "license": "apache-2.0", "size": 714}
### File: test/dummy_shared_library/dummy_shared_library.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.apa...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/rcpputils", "path": "test/dummy_shared_library/dummy_shared_library.h", "license": "apache-2.0", "size": 1084}
### File: test/test_accumulator.cpp // Copyright 2020 PAL Robotics SL. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless re...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "test/test_accumulator.cpp", "license": "apache-2.0", "size": 1746}
### File: test/test_asserts.cpp // Copyright 2020 Amazon.com, Inc. or its affiliates. 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": "C++", "repo_name": "minhanghuang/rcpputils", "path": "test/test_asserts.cpp", "license": "apache-2.0", "size": 3221}
### File: test/test_endian.cpp // Copyright 2019 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "test/test_endian.cpp", "license": "apache-2.0", "size": 1803}
### File: test/test_env.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/LICENSE-2.0 //...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "test/test_env.cpp", "license": "apache-2.0", "size": 2411}
### File: test/test_filesystem_helper.cpp // Copyright 2019 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "test/test_filesystem_helper.cpp", "license": "apache-2.0", "size": 14906}
### File: test/test_filesystem_helper_std.cpp // Copyright 2024 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licen...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "test/test_filesystem_helper_std.cpp", "license": "apache-2.0", "size": 13995}
### File: test/test_find_and_replace.cpp // Copyright 2019 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/L...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "test/test_find_and_replace.cpp", "license": "apache-2.0", "size": 2824}
### File: test/test_find_library.cpp // Copyright 2019 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICEN...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "test/test_find_library.cpp", "license": "apache-2.0", "size": 2674}
### File: test/test_join.cpp // Copyright 2019 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 /...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "test/test_join.cpp", "license": "apache-2.0", "size": 2999}
### File: test/test_library.cpp // Copyright 2019 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2....
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "test/test_library.cpp", "license": "apache-2.0", "size": 871}
### File: test/test_pointer_traits.cpp // Copyright 2019 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LIC...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "test/test_pointer_traits.cpp", "license": "apache-2.0", "size": 5083}
### File: test/test_process.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/LICENSE-2....
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "test/test_process.cpp", "license": "apache-2.0", "size": 805}
### File: test/test_scope_exit.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/LICENSE...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "test/test_scope_exit.cpp", "license": "apache-2.0", "size": 1549}
### File: test/test_shared_library.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/LIC...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "test/test_shared_library.cpp", "license": "apache-2.0", "size": 2792}
### File: test/test_split.cpp // Copyright 2019 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "test/test_split.cpp", "license": "apache-2.0", "size": 8326}
### File: test/test_thread_safety_annotations.cpp // Copyright 2019 Amazon.com, Inc. or its affiliates. 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": "C++", "repo_name": "minhanghuang/rcpputils", "path": "test/test_thread_safety_annotations.cpp", "license": "apache-2.0", "size": 6554}
### File: test/test_time.cpp // Copyright 2021 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 /...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/rcpputils", "path": "test/test_time.cpp", "license": "apache-2.0", "size": 1138}
### File: test/test_unique_lock.cpp // Copyright 2023 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": "C++", "repo_name": "minhanghuang/rcpputils", "path": "test/test_unique_lock.cpp", "license": "apache-2.0", "size": 1002}
### File: BUILD # Copyright 2009 The RE2 Authors. All Rights Reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Bazel (http://bazel.io/) BUILD file for RE2. licenses(["notice"]) exports_files(["LICENSE"]) config_setting( name = "macos", values ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Starlark", "repo_name": "minhanghuang/re2", "path": "BUILD", "license": "bsd", "size": 5890}
### File: CMakeLists.txt # Copyright 2015 The RE2 Authors. All Rights Reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Old enough to support Ubuntu Xenial. cmake_minimum_required(VERSION 3.5.1) if(POLICY CMP0048) cmake_policy(SET CMP0048 NEW) endif()...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/re2", "path": "CMakeLists.txt", "license": "bsd", "size": 4334}
### File: Makefile # Copyright 2009 The RE2 Authors. All Rights Reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # To build against ICU for full Unicode properties support, # uncomment the next two lines: # CCICU=$(shell pkg-config icu-uc --cflags) -DRE2_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/re2", "path": "Makefile", "license": "bsd", "size": 11541}
### File: WORKSPACE # Copyright 2009 The RE2 Authors. All Rights Reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Bazel (http://bazel.io/) WORKSPACE file for RE2. workspace(name = "com_googlesource_code_re2") load("@bazel_tools//tools/build_defs/repo:...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Starlark", "repo_name": "minhanghuang/re2", "path": "WORKSPACE", "license": "bsd", "size": 479}
### File: benchlog/benchplot.py #!/usr/bin/env python import argparse # for ArgumentParser import subprocess # for Popen import tempfile # for NamedTemporaryFile import os # for remove class gnuplot(object): output = "result.png" script = """ set terminal png size 1024, 768 ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/re2", "path": "benchlog/benchplot.py", "license": "bsd", "size": 2726}
### File: benchlog/mktable #!/usr/bin/perl # XXX sub table() { my ($name) = @_; print <<'EOF'; <table border=0> <tr><th>System</th><th>PCRE</th><th>RE2</th></tr> EOF foreach my $sys (@sys) { my $ns_pcre = $data{$sys}->{sprintf($name, "PCRE")}->{'ns/op'}; my $ns_re2 = $data{$sys}->{sprintf($name, "RE2")}->{'ns/o...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Perl", "repo_name": "minhanghuang/re2", "path": "benchlog/mktable", "license": "bsd", "size": 3482}
### File: doc/mksyntaxgo #!/bin/sh set -e out=$GOROOT/src/regexp/syntax/doc.go cp syntax.txt $out sam -d $out <<'!' ,x g/NOT SUPPORTED/d /^Unicode character class/,$d ,s/[«»]//g ,x g/^Possessive repetitions:/d ,x g/\\C/d ,x g/Flag syntax/d ,s/.=(true|false)/flag &/g ,s/^Flags:/ Flag syntax is xyz (set) or -xyz (clear...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/re2", "path": "doc/mksyntaxgo", "license": "bsd", "size": 1201}
### File: doc/mksyntaxhtml #!/bin/sh cp syntax.txt syntax.html sam -d syntax.html <<'!' ,s/\&/\&amp;/g ,s/</\&lt;/g ,s/>/\&gt;/g ,s!== (([^()]|\([^()]*\))*)!≡ <code>\1</code>!g ,s!«!<code>!g ,s!»!</code>!g ,s! vim$! <font size=-2>VIM</font>!g ,s! pcre$! <font size=-2>PCRE</font>!g ,s! perl$! <font size=-2>PERL</font>!...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/re2", "path": "doc/mksyntaxhtml", "license": "bsd", "size": 1129}
### File: doc/mksyntaxwiki #!/bin/sh cp syntax.txt syntax.wiki sam -d syntax.wiki <<'!' ,s!`!`````!g ,s!== (([^()]|\([^()]*\))*)!≡ `\1`!g ,s!«!`!g ,s!»!`!g ,s! vim$! <font size="1">VIM</font>!g ,s! pcre$! <font size="1">PCRE</font>!g ,s! perl$! <font size="1">PERL</font>!g ,s!(^[^ ]+) (.*)\n!`\1` \2\n!g ,x g/NOT SUPPO...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/re2", "path": "doc/mksyntaxwiki", "license": "bsd", "size": 1052}
### File: lib/git/commit-msg.hook #!/bin/sh # From Gerrit Code Review 2.2.1 # # Part of Gerrit Code Review (http://code.google.com/p/gerrit/) # # Copyright (C) 2009 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with t...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/re2", "path": "lib/git/commit-msg.hook", "license": "bsd", "size": 2329}
### File: re2/bitmap256.h // Copyright 2016 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #ifndef RE2_BITMAP256_H_ #define RE2_BITMAP256_H_ #ifdef _MSC_VER #include <intrin.h> #endif #include <stdint.h> #include <string.h...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/bitmap256.h", "license": "bsd", "size": 2584}
### File: re2/bitstate.cc // Copyright 2008 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Tested by search_test.cc, exhaustive_test.cc, tester.cc // Prog::SearchBitState is a regular expression search with submatch // ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/bitstate.cc", "license": "bsd", "size": 11445}
### File: re2/compile.cc // Copyright 2007 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Compile regular expression to Prog. // // Prog and Inst are defined in prog.h. // This file's external interface is just Regexp::C...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/compile.cc", "license": "bsd", "size": 38164}
### File: re2/dfa.cc // Copyright 2008 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // A DFA (deterministic finite automaton)-based regular expression search. // // The DFA search has two main parts: the construction of t...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/dfa.cc", "license": "bsd", "size": 73288}
### File: re2/filtered_re2.cc // Copyright 2009 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "re2/filtered_re2.h" #include <stddef.h> #include <string> #include <utility> #include "util/util.h" #include "util/l...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/filtered_re2.cc", "license": "bsd", "size": 3794}
### File: re2/filtered_re2.h // Copyright 2009 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #ifndef RE2_FILTERED_RE2_H_ #define RE2_FILTERED_RE2_H_ // The class FilteredRE2 is used as a wrapper to multiple RE2 regexps. /...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/filtered_re2.h", "license": "bsd", "size": 4247}
### File: re2/fuzzing/compiler-rt/include/fuzzer/FuzzedDataProvider.h //===- FuzzedDataProvider.h - Utility header for fuzz targets ---*- C++ -* ===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifi...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/fuzzing/compiler-rt/include/fuzzer/FuzzedDataProvider.h", "license": "bsd", "size": 12747}
### File: re2/fuzzing/re2_fuzzer.cc // Copyright 2016 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include <fuzzer/FuzzedDataProvider.h> #include <stddef.h> #include <stdint.h> #include <memory> #include <queue> #include...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/fuzzing/re2_fuzzer.cc", "license": "bsd", "size": 5742}
### File: re2/make_perl_groups.pl #!/usr/bin/perl # Copyright 2008 The RE2 Authors. All Rights Reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Generate table entries giving character ranges # for POSIX/Perl character classes. Rather than # figure out ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Perl", "repo_name": "minhanghuang/re2", "path": "re2/make_perl_groups.pl", "license": "bsd", "size": 2436}
### File: re2/mimics_pcre.cc // Copyright 2008 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Determine whether this library should match PCRE exactly // for a particular Regexp. (If so, the testing framework can // che...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/mimics_pcre.cc", "license": "bsd", "size": 6327}
### File: re2/nfa.cc // Copyright 2006-2007 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Tested by search_test.cc. // // Prog::SearchNFA, an NFA search. // This is an actual NFA like the theorists talk about, // not th...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/nfa.cc", "license": "bsd", "size": 20890}
### File: re2/onepass.cc // Copyright 2008 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Tested by search_test.cc. // // Prog::SearchOnePass is an efficient implementation of // regular expression search with submatch t...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/onepass.cc", "license": "bsd", "size": 22863}
### File: re2/parse.cc // Copyright 2006 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Regular expression parser. // The parser is a simple precedence-based parser with a // manual stack. The parsing work is done by t...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/parse.cc", "license": "bsd", "size": 75379}
### File: re2/pod_array.h // Copyright 2018 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #ifndef RE2_POD_ARRAY_H_ #define RE2_POD_ARRAY_H_ #include <memory> #include <type_traits> namespace re2 { template <typename T> ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/pod_array.h", "license": "bsd", "size": 1052}
### File: re2/prefilter.cc // Copyright 2009 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "re2/prefilter.h" #include <stddef.h> #include <stdint.h> #include <string> #include <vector> #include "util/util.h" #in...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/prefilter.cc", "license": "bsd", "size": 17710}
### File: re2/prefilter.h // Copyright 2009 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #ifndef RE2_PREFILTER_H_ #define RE2_PREFILTER_H_ // Prefilter is the class used to extract string guards from regexps. // Rather t...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/prefilter.h", "license": "bsd", "size": 3031}
### File: re2/prefilter_tree.cc // Copyright 2009 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "re2/prefilter_tree.h" #include <stddef.h> #include <algorithm> #include <map> #include <memory> #include <set> #inc...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/prefilter_tree.cc", "license": "bsd", "size": 12414}
### File: re2/prefilter_tree.h // Copyright 2009 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #ifndef RE2_PREFILTER_TREE_H_ #define RE2_PREFILTER_TREE_H_ // The PrefilterTree class is used to form an AND-OR tree of strin...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/prefilter_tree.h", "license": "bsd", "size": 5224}
### File: re2/prog.cc // Copyright 2007 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Compiled regular expression representation. // Tested by compile_test.cc #include "re2/prog.h" #if defined(__AVX2__) #include <immi...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/prog.cc", "license": "bsd", "size": 29733}
### File: re2/prog.h // Copyright 2007 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #ifndef RE2_PROG_H_ #define RE2_PROG_H_ // Compiled representation of regular expressions. // See regexp.h for the Regexp class, which r...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/prog.h", "license": "bsd", "size": 18303}
### File: re2/re2.cc // Copyright 2003-2009 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Regular expression interface RE2. // // Originally the PCRE C++ wrapper, but adapted to use // the new automata-based regular exp...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/re2.cc", "license": "bsd", "size": 39135}
### File: re2/re2.h // Copyright 2003-2009 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #ifndef RE2_RE2_H_ #define RE2_RE2_H_ // C++ interface to the re2 regular-expression library. // RE2 supports Perl-style regular exp...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/re2.h", "license": "bsd", "size": 39543}
### File: re2/regexp.cc // Copyright 2006 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Regular expression representation. // Tested by parse_test.cc #include "re2/regexp.h" #include <stddef.h> #include <stdint.h> #in...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/regexp.cc", "license": "bsd", "size": 26529}
### File: re2/regexp.h // Copyright 2006 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #ifndef RE2_REGEXP_H_ #define RE2_REGEXP_H_ // --- SPONSORED LINK -------------------------------------------------- // If you want to...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/regexp.h", "license": "bsd", "size": 23984}
### File: re2/set.cc // Copyright 2010 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "re2/set.h" #include <stddef.h> #include <algorithm> #include <memory> #include <utility> #include "util/util.h" #include "uti...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/set.cc", "license": "bsd", "size": 4816}
### File: re2/set.h // Copyright 2010 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #ifndef RE2_SET_H_ #define RE2_SET_H_ #include <memory> #include <string> #include <utility> #include <vector> #include "re2/re2.h" nam...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/set.h", "license": "bsd", "size": 2483}
### File: re2/simplify.cc // Copyright 2006 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Rewrite POSIX and other features in re // to use simple extended regular expression features. // Also sort and simplify character...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/simplify.cc", "license": "bsd", "size": 20270}
### File: re2/sparse_array.h // Copyright 2006 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #ifndef RE2_SPARSE_ARRAY_H_ #define RE2_SPARSE_ARRAY_H_ // DESCRIPTION // // SparseArray<T>(m) is a map from integers in [0, m) ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/sparse_array.h", "license": "bsd", "size": 11974}
### File: re2/sparse_set.h // Copyright 2006 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #ifndef RE2_SPARSE_SET_H_ #define RE2_SPARSE_SET_H_ // DESCRIPTION // // SparseSet(m) is a set of integers in [0, m). // It requir...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/sparse_set.h", "license": "bsd", "size": 7140}
### File: re2/stringpiece.cc // Copyright 2004 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "re2/stringpiece.h" #include <ostream> #include "util/util.h" namespace re2 { const StringPiece::size_type StringPie...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/stringpiece.cc", "license": "bsd", "size": 2130}
### File: re2/stringpiece.h // Copyright 2001-2010 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #ifndef RE2_STRINGPIECE_H_ #define RE2_STRINGPIECE_H_ // A string-like object that points to a sized piece of memory. // // ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/stringpiece.h", "license": "bsd", "size": 6336}
### File: re2/testing/backtrack.cc // Copyright 2008 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Tested by search_test.cc, exhaustive_test.cc, tester.cc // // Prog::UnsafeSearchBacktrack is a backtracking regular expr...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/re2", "path": "re2/testing/backtrack.cc", "license": "bsd", "size": 9246}