file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
docs/samples/modify_base.cpp
C++
#include "pugixml.hpp" #include <string.h> #include <iostream> int main() { pugi::xml_document doc; if (!doc.load_string("<node id='123'>text</node><!-- comment -->", pugi::parse_default | pugi::parse_comments)) return -1; // tag::node[] pugi::xml_node node = doc.child("node"); // change node na...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
docs/samples/modify_remove.cpp
C++
#include "pugixml.hpp" #include <iostream> int main() { pugi::xml_document doc; if (!doc.load_string("<node><description>Simple node</description><param name='id' value='123'/></node>")) return -1; // tag::code[] // remove description node with the whole subtree pugi::xml_node node = doc.child("n...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
docs/samples/save_custom_writer.cpp
C++
#include "pugixml.hpp" #include <string> #include <iostream> #include <cstring> // tag::code[] struct xml_string_writer: pugi::xml_writer { std::string result; virtual void write(const void* data, size_t size) { result.append(static_cast<const char*>(data), size); } }; // end::code[] struct ...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
docs/samples/save_declaration.cpp
C++
#include "pugixml.hpp" #include <iostream> int main() { // tag::code[] // get a test document pugi::xml_document doc; doc.load_string("<foo bar='baz'><call>hey</call></foo>"); // add a custom declaration node pugi::xml_node decl = doc.prepend_child(pugi::node_declaration); decl.append_att...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
docs/samples/save_file.cpp
C++
#include "pugixml.hpp" #include <iostream> int main() { // get a test document pugi::xml_document doc; doc.load_string("<foo bar='baz'>hey</foo>"); // tag::code[] // save document to file std::cout << "Saving result: " << doc.save_file("save_file_output.xml") << std::endl; // end::code[] ...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
docs/samples/save_options.cpp
C++
#include "pugixml.hpp" #include <iostream> int main() { // tag::code[] // get a test document pugi::xml_document doc; doc.load_string("<foo bar='baz'><call>hey</call></foo>"); // default options; prints // <?xml version="1.0"?> // <foo bar="baz"> // <call>hey</call> // </f...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
docs/samples/save_stream.cpp
C++
#include "pugixml.hpp" #include <iostream> int main() { // get a test document pugi::xml_document doc; doc.load_string("<foo bar='baz'><call>hey</call></foo>"); // tag::code[] // save document to standard output std::cout << "Document:\n"; doc.save(std::cout); // end::code[] } // vim...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
docs/samples/save_subtree.cpp
C++
#include "pugixml.hpp" #include <iostream> int main() { // tag::code[] // get a test document pugi::xml_document doc; doc.load_string("<foo bar='baz'><call>hey</call></foo>"); // print document to standard output (prints <?xml version="1.0"?><foo bar="baz"><call>hey</call></foo>) doc.save(std...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
docs/samples/text.cpp
C++
#include "pugixml.hpp" #include <iostream> int main() { pugi::xml_document doc; // get a test document doc.load_string("<project><name>test</name><version>1.1</version><public>yes</public></project>"); pugi::xml_node project = doc.child("project"); // tag::access[] std::cout << "Project nam...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
docs/samples/traverse_base.cpp
C++
#include "pugixml.hpp" #include <string.h> #include <iostream> int main() { pugi::xml_document doc; if (!doc.load_file("xgconsole.xml")) return -1; pugi::xml_node tools = doc.child("Profile").child("Tools"); // tag::basic[] for (pugi::xml_node tool = tools.first_child(); tool; tool = tool.next_s...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
docs/samples/traverse_iter.cpp
C++
#include "pugixml.hpp" #include <iostream> int main() { pugi::xml_document doc; if (!doc.load_file("xgconsole.xml")) return -1; pugi::xml_node tools = doc.child("Profile").child("Tools"); // tag::code[] for (pugi::xml_node_iterator it = tools.begin(); it != tools.end(); ++it) { std::...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
docs/samples/traverse_predicate.cpp
C++
#include "pugixml.hpp" #include <string.h> #include <iostream> // tag::decl[] bool small_timeout(pugi::xml_node node) { return node.attribute("Timeout").as_int() < 20; } struct allow_remote_predicate { bool operator()(pugi::xml_attribute attr) const { return strcmp(attr.name(), "AllowRemote") == ...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
docs/samples/traverse_rangefor.cpp
C++
#include "pugixml.hpp" #include <iostream> int main() { pugi::xml_document doc; if (!doc.load_file("xgconsole.xml")) return -1; pugi::xml_node tools = doc.child("Profile").child("Tools"); // tag::code[] for (pugi::xml_node tool: tools.children("Tool")) { std::cout << "Tool:"; ...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
docs/samples/traverse_walker.cpp
C++
#include "pugixml.hpp" #include <iostream> const char* node_types[] = { "null", "document", "element", "pcdata", "cdata", "comment", "pi", "declaration" }; // tag::impl[] struct simple_walker: pugi::xml_tree_walker { virtual bool for_each(pugi::xml_node& node) { for (int i = 0; i < depth(); ++i) ...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
docs/samples/xpath_error.cpp
C++
#include "pugixml.hpp" #include <iostream> int main() { pugi::xml_document doc; if (!doc.load_file("xgconsole.xml")) return -1; // tag::code[] // Exception is thrown for incorrect query syntax try { doc.select_nodes("//nodes[#true()]"); } catch (const pugi::xpath_exception& e) ...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
docs/samples/xpath_query.cpp
C++
#include "pugixml.hpp" #include <iostream> #include <string> int main() { pugi::xml_document doc; if (!doc.load_file("xgconsole.xml")) return -1; // tag::code[] // Select nodes via compiled query pugi::xpath_query query_remote_tools("/Profile/Tools/Tool[@AllowRemote='true']"); pugi::xpath_node_s...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
docs/samples/xpath_select.cpp
C++
#include "pugixml.hpp" #include <iostream> int main() { pugi::xml_document doc; if (!doc.load_file("xgconsole.xml")) return -1; // tag::code[] pugi::xpath_node_set tools = doc.select_nodes("/Profile/Tools/Tool[@AllowRemote='true' and @DeriveCaptionFrom='lastparam']"); std::cout << "Tools:\n"; f...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
docs/samples/xpath_variables.cpp
C++
#include "pugixml.hpp" #include <iostream> #include <string> int main() { pugi::xml_document doc; if (!doc.load_file("xgconsole.xml")) return -1; // tag::code[] // Select nodes via compiled query pugi::xpath_variable_set vars; vars.add("remote", pugi::xpath_type_boolean); pugi::xpath_query q...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
scripts/archive.py
Python
import io import os.path import sys import tarfile import time import zipfile def read_file(path, use_crlf): with open(path, 'rb') as file: data = file.read() if b'\0' not in data: data = data.replace(b'\r', b'') if use_crlf: data = data.replace(b'\n', b'\r\n') return data def write_zip(target, arcprefi...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
scripts/cocoapods_push.sh
Shell
#!/bin/bash #Push to igagis repo for now pod repo push igagis pugixml.podspec --use-libraries --verbose
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
scripts/nuget_build.ps1
PowerShell
function Run-Command([string]$cmd) { Invoke-Expression $cmd if ($LastExitCode) { exit $LastExitCode } } function Force-Copy([string]$from, [string]$to) { Write-Host $from "->" $to New-Item -Force $to | Out-Null Copy-Item -Force $from $to if (! $?) { exit 1 } } function Build-Version([string]$vs, [string]$toolse...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
scripts/premake4.lua
Lua
-- Reset RNG seed to get consistent results across runs (i.e. XCode) math.randomseed(12345) local static = _ARGS[1] == 'static' local action = premake.action.current() if string.startswith(_ACTION, "vs") then if action then -- Disable solution generation function action.onsolution(sln) sln.vstudio_configs = p...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
src/pugiconfig.hpp
C++ Header
/** * pugixml parser - version 1.15 * -------------------------------------------------------- * Report bugs and download new versions at https://pugixml.org/ * * SPDX-FileCopyrightText: Copyright (C) 2006-2026, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com) * SPDX-License-Identifier: MIT * * See LICENSE.md...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
src/pugixml.cpp
C++
/** * pugixml parser - version 1.15 * -------------------------------------------------------- * Report bugs and download new versions at https://pugixml.org/ * * SPDX-FileCopyrightText: Copyright (C) 2006-2026, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com) * SPDX-License-Identifier: MIT * * See LICENSE.md...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
src/pugixml.hpp
C++ Header
/** * pugixml parser - version 1.15 * -------------------------------------------------------- * Report bugs and download new versions at https://pugixml.org/ * * SPDX-FileCopyrightText: Copyright (C) 2006-2026, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com) * SPDX-License-Identifier: MIT * * See LICENSE.md...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/allocator.cpp
C++
#include "allocator.hpp" #include <string.h> #include <assert.h> #include <stdlib.h> // Address sanitizer #if defined(__has_feature) # define ADDRESS_SANITIZER __has_feature(address_sanitizer) #else # if defined(__SANITIZE_ADDRESS__) # define ADDRESS_SANITIZER 1 # else # define ADDRESS_SANITIZER 0 # endif #endif /...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/allocator.hpp
C++ Header
#ifndef HEADER_TEST_ALLOCATOR_HPP #define HEADER_TEST_ALLOCATOR_HPP #include <stddef.h> void* memory_allocate(size_t size); size_t memory_size(void* ptr); void memory_deallocate(void* ptr); #endif
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/autotest-appveyor.ps1
PowerShell
function Invoke-CmdScript($scriptName) { $cmdLine = """$scriptName"" $args & set" & $Env:SystemRoot\system32\cmd.exe /c $cmdLine | select-string '^([^=]*)=(.*)$' | foreach-object { $varName = $_.Matches[0].Groups[1].Value $varValue = $_.Matches[0].Groups[2].Value set-item Env:$varName $varValue } } $sources ...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/cmake-appveyor.ps1
PowerShell
$failed = $FALSE $vs = $args[0] $vsy = $args[1] $target = "cmake_vs${vs}_${vsy}" Add-AppveyorTest $target -Outcome Running mkdir $target pushd $target try { Write-Output "# Setting up CMake VS$vs" & cmake .. -G "Visual Studio $vs $vsy" | Tee-Object -Variable cmakeOutput $sw = [Diagnostics.Stopwatch]::StartNew(...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/fuzz_parse.cpp
C++
#include "../src/pugixml.hpp" #include <stdint.h> extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { pugi::xml_document doc; doc.load_buffer(Data, Size); doc.load_buffer(Data, Size, pugi::parse_minimal); doc.load_buffer(Data, Size, pugi::parse_full); return 0; }
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/fuzz_setup.sh
Shell
#!/bin/bash sudo apt-get --yes install subversion screen gcc g++ cmake ninja-build golang autoconf libtool apache2 python-dev pkg-config zlib1g-dev libgcrypt11-dev mkdir -p clang cd clang git clone https://chromium.googlesource.com/chromium/src/tools/clang cd .. clang/clang/scripts/update.py sudo cp -rf third_party/l...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/fuzz_xpath.cpp
C++
#include "../src/pugixml.hpp" #include "fuzzer/FuzzedDataProvider.h" #include <stdint.h> #include <string.h> #include <string> extern "C" int LLVMFuzzerTestOneInput(const uint8_t* Data, size_t Size) { FuzzedDataProvider fdp(Data, Size); std::string text = fdp.ConsumeRandomLengthString(1024); #ifndef PUGIXML_NO_EXC...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/helpers.hpp
C++ Header
#ifndef HEADER_TEST_HELPERS_HPP #define HEADER_TEST_HELPERS_HPP #include "test.hpp" #include <utility> template <typename T> static void generic_bool_ops_test(const T& obj) { T null; CHECK(!null); CHECK(obj); CHECK(!!obj); #ifdef _MSC_VER # pragma warning(push) # pragma warning(disable: 4800) // forcing va...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/main.cpp
C++
#include "test.hpp" #include "allocator.hpp" #include <stdio.h> #include <stdlib.h> #include <float.h> #include <assert.h> #include <string> #ifndef PUGIXML_NO_EXCEPTIONS # include <exception> #endif #ifdef _WIN32_WCE # undef DebugBreak # pragma warning(disable: 4201) // nonstandard extension used: nameless s...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test.cpp
C++
#define _SCL_SECURE_NO_WARNINGS #define _SCL_SECURE_NO_DEPRECATE #include "test.hpp" #include "writer_string.hpp" #include <math.h> #include <float.h> #include <string.h> #include <wchar.h> #include <algorithm> #include <vector> #ifndef PUGIXML_NO_XPATH static void build_document_order(std::vector<pugi::xpath_node...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test.hpp
C++ Header
#ifndef HEADER_TEST_TEST_HPP #define HEADER_TEST_TEST_HPP #include "../src/pugixml.hpp" #include <setjmp.h> #ifndef PUGIXML_NO_EXCEPTIONS #include <new> #endif struct test_runner { test_runner(const char* name) { _name = name; _next = _tests; _tests = this; } virtual ~test_runner() {} virtual void run(...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_compact.cpp
C++
#ifdef PUGIXML_COMPACT #include "test.hpp" using namespace pugi; static void overflow_hash_table(xml_document& doc) { xml_node n = doc.child(STR("n")); // compact encoding assumes next_sibling is a forward-only pointer so we can allocate hash entries by reordering nodes // we allocate enough hash entries to be ex...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_deprecated.cpp
C++
#define PUGIXML_DEPRECATED // Suppress deprecated declarations to avoid warnings #include "test.hpp" using namespace pugi; TEST(document_deprecated_load) { xml_document doc; CHECK(doc.load(STR("<node/>"))); CHECK_NODE(doc, STR("<node/>")); } #ifndef PUGIXML_NO_XPATH TEST_XML(xpath_api_deprecated_select_single_no...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_document.cpp
C++
#define _CRT_SECURE_NO_WARNINGS #define _SCL_SECURE_NO_WARNINGS #define _SCL_SECURE_NO_DEPRECATE #define _CRT_NONSTDC_NO_DEPRECATE 0 #include <string.h> // because Borland's STL is braindead, we have to include <string.h> _before_ <string> in order to get memcpy #include "test.hpp" #include "writer_string.hpp" #inc...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_dom_modify.cpp
C++
#include "test.hpp" #include <limits> #include <string> #include <math.h> #include <string.h> #include <limits.h> using namespace pugi; TEST_XML(dom_attr_assign, "<node/>") { xml_node node = doc.child(STR("node")); node.append_attribute(STR("attr1")) = STR("v1"); xml_attribute() = STR("v1"); node.append_attri...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_dom_text.cpp
C++
#include "test.hpp" #include "helpers.hpp" #include <limits.h> using namespace pugi; TEST_XML_FLAGS(dom_text_empty, "<node><a>foo</a><b><![CDATA[bar]]></b><c><?pi value?></c><d/></node>", parse_default | parse_pi) { xml_node node = doc.child(STR("node")); CHECK(node.child(STR("a")).text()); CHECK(node....
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_dom_traverse.cpp
C++
#define _CRT_SECURE_NO_WARNINGS #define _SCL_SECURE_NO_WARNINGS #define _SCL_SECURE_NO_DEPRECATE #include "test.hpp" #include <string.h> #include <stdio.h> #include <wchar.h> #include <utility> #include <vector> #include <iterator> #include <string> #include "helpers.hpp" using namespace pugi; #ifdef PUGIXML_NO_S...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_header_guard.cpp
C++
// Tests header guards #include "../src/pugixml.hpp" #include "../src/pugixml.hpp"
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_header_iosfwd_1.cpp
C++
// Tests compatibility with iosfwd #include "../src/pugixml.hpp" #include <iosfwd>
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_header_iosfwd_2.cpp
C++
// Tests compatibility with iosfwd #include <iosfwd> #include "../src/pugixml.hpp"
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_header_iostream_1.cpp
C++
// Tests compatibility with iostream #include "../src/pugixml.hpp" #include <iostream>
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_header_iostream_2.cpp
C++
// Tests compatibility with iostream #include <iostream> #include "../src/pugixml.hpp"
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_header_only_1.cpp
C++
#define PUGIXML_HEADER_ONLY #define pugi pugih #include "test.hpp" // Check header guards #include "../src/pugixml.hpp" #include "../src/pugixml.hpp" using namespace pugi; TEST(header_only_1) { xml_document doc; CHECK(doc.load_string(STR("<node/>"))); CHECK_STRING(doc.first_child().name(), STR("node")); #ifndef...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_header_only_2.cpp
C++
#define PUGIXML_HEADER_ONLY #define pugi pugih #include "test.hpp" // Check header guards #include "../src/pugixml.hpp" #include "../src/pugixml.hpp" using namespace pugi; TEST(header_only_2) { xml_document doc; CHECK(doc.load_string(STR("<node/>"))); CHECK_STRING(doc.first_child().name(), STR("node")); #ifndef...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_header_string_1.cpp
C++
// Tests compatibility with string #include "../src/pugixml.hpp" #include <string>
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_header_string_2.cpp
C++
// Tests compatibility with string #include <string> #include "../src/pugixml.hpp"
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_header_string_iostream.cpp
C++
// Tests compatibility with string/iostream #include <string> #include "../src/pugixml.hpp" #include <istream> #include <ostream>
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_memory.cpp
C++
#include "test.hpp" #include "writer_string.hpp" #include "allocator.hpp" #include <string> #include <vector> using namespace pugi; namespace { int page_allocs = 0; int page_deallocs = 0; bool is_page(size_t size) { return size >= 16384; } void* allocate(size_t size) { void* ptr = memory_allocate(size)...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_parse.cpp
C++
#include "test.hpp" #include "writer_string.hpp" using namespace pugi; TEST(parse_pi_skip) { xml_document doc; unsigned int flag_sets[] = {parse_fragment, parse_fragment | parse_declaration}; for (unsigned int i = 0; i < sizeof(flag_sets) / sizeof(flag_sets[0]); ++i) { unsigned int flags = flag_sets[i]; C...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_parse_doctype.cpp
C++
#define _CRT_SECURE_NO_WARNINGS #include "test.hpp" #include <string.h> #include <wchar.h> #include <string> using namespace pugi; static xml_parse_result load_concat(xml_document& doc, const char_t* a, const char_t* b = STR(""), const char_t* c = STR("")) { char_t buffer[768]; #ifdef PUGIXML_WCHAR_MODE wcscpy(b...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_unicode.cpp
C++
#ifndef PUGIXML_NO_STL #include "test.hpp" #include <string> using namespace pugi; // letters taken from http://www.utf8-chartable.de/ TEST(as_wide_empty) { CHECK(as_wide("") == L""); } TEST(as_wide_valid_basic) { // valid 1-byte, 2-byte and 3-byte inputs #ifdef U_LITERALS CHECK(as_wide("?\xd0\x80\xe2\x80\xbd"...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_version.cpp
C++
#include "../src/pugixml.hpp" #if PUGIXML_VERSION != 1150 // 1.15 #error Unexpected pugixml version #endif
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_write.cpp
C++
#include "test.hpp" #include "writer_string.hpp" #include <string> #include <sstream> #include <stdexcept> using namespace pugi; TEST_XML(write_simple, "<node attr='1'><child>text</child></node>") { CHECK_NODE_EX(doc, STR("<node attr=\"1\">\n<child>text</child>\n</node>\n"), STR(""), 0); } TEST_XML(write_raw, "<n...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_xpath.cpp
C++
#ifndef PUGIXML_NO_XPATH #include "test.hpp" #include <string.h> #include <wchar.h> #include <string> #include <vector> #include <algorithm> #include <limits> using namespace pugi; static void load_document_copy(xml_document& doc, const char_t* text) { xml_document source; CHECK(source.load_string(text)); doc....
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_xpath_api.cpp
C++
#ifndef PUGIXML_NO_XPATH #include <string.h> // because Borland's STL is braindead, we have to include <string.h> _before_ <string> in order to get memcmp #include "test.hpp" #include "helpers.hpp" #include <string> #include <vector> using namespace pugi; TEST_XML(xpath_api_select_nodes, "<node><head/><foo/><foo/...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_xpath_functions.cpp
C++
#ifndef PUGIXML_NO_XPATH #include "test.hpp" #include <string> using namespace pugi; TEST_XML(xpath_number_number, "<node>123</node>") { xml_node c; xml_node n = doc.child(STR("node")).first_child(); // number with 0 arguments CHECK_XPATH_NUMBER_NAN(c, STR("number()")); CHECK_XPATH_NUMBER(n, STR("number()"), ...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_xpath_operators.cpp
C++
#ifndef PUGIXML_NO_XPATH #include "test.hpp" using namespace pugi; TEST(xpath_operators_arithmetic) { xml_node c; // incorrect unary operator CHECK_XPATH_FAIL(STR("-")); // correct unary operator CHECK_XPATH_NUMBER(c, STR("-1"), -1); CHECK_XPATH_NUMBER(c, STR("--1"), 1); CHECK_XPATH_NUMBER(c, STR("---1"), -...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_xpath_parse.cpp
C++
#ifndef PUGIXML_NO_XPATH #include "test.hpp" #include <string> using namespace pugi; TEST(xpath_literal_parse) { xml_node c; CHECK_XPATH_STRING(c, STR("'a\"b'"), STR("a\"b")); CHECK_XPATH_STRING(c, STR("\"a'b\""), STR("a'b")); CHECK_XPATH_STRING(c, STR("\"\""), STR("")); CHECK_XPATH_STRING(c, STR("\'\'"), STR(...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_xpath_paths.cpp
C++
#ifndef PUGIXML_NO_XPATH #include "test.hpp" using namespace pugi; TEST_XML(xpath_paths_axes_child, "<node attr='value'><child attr='value'><subchild/></child><another/><last/></node>") { xml_node c; xml_node n = doc.child(STR("node")); xpath_node na(n.attribute(STR("attr")), n); CHECK_XPATH_NODESET(c, STR("chi...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_xpath_paths_abbrev_w3c.cpp
C++
#ifndef PUGIXML_NO_XPATH #include "test.hpp" using namespace pugi; TEST_XML(xpath_paths_abbrev_w3c_1, "<node><para/><foo/><para/></node>") { xml_node c; xml_node n = doc.child(STR("node")); CHECK_XPATH_NODESET(c, STR("para")); CHECK_XPATH_NODESET(n, STR("para")) % 3 % 5; } TEST_XML(xpath_paths_abbrev_w3c_2, "<...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_xpath_paths_w3c.cpp
C++
#ifndef PUGIXML_NO_XPATH #include "test.hpp" using namespace pugi; TEST_XML(xpath_paths_w3c_1, "<node><para/><foo/><para/></node>") { xml_node c; xml_node n = doc.child(STR("node")); CHECK_XPATH_NODESET(c, STR("child::para")); CHECK_XPATH_NODESET(n, STR("child::para")) % 3 % 5; } TEST_XML(xpath_paths_w3c_2, "<...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_xpath_variables.cpp
C++
#ifndef PUGIXML_NO_XPATH #include "test.hpp" #include <string> using namespace pugi; TEST(xpath_variables_type_none) { xpath_variable_set set; xpath_variable* var = set.add(STR("target"), xpath_type_none); CHECK(!var); } TEST(xpath_variables_type_boolean) { xpath_variable_set set; xpath_variable* var = set....
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_xpath_xalan_1.cpp
C++
#ifndef PUGIXML_NO_XPATH #include "test.hpp" using namespace pugi; TEST(xpath_xalan_boolean_1) { xml_node c; CHECK_XPATH_BOOLEAN(c, STR("true()"), true); CHECK_XPATH_BOOLEAN(c, STR("true() and true()"), true); CHECK_XPATH_BOOLEAN(c, STR("true() or true()"), true); CHECK_XPATH_BOOLEAN(c, STR("not(true())"), fal...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_xpath_xalan_2.cpp
C++
#define _CRT_SECURE_NO_WARNINGS #ifndef PUGIXML_NO_XPATH #include "test.hpp" #include <string> #include <algorithm> using namespace pugi; TEST_XML(xpath_xalan_string_1, "<doc a='test'>ENCYCLOPEDIA</doc>") { xml_node c; CHECK_XPATH_NUMBER(c, STR("string-length('This is a test')"), 14); CHECK_XPATH_BOOLEAN(c, ST...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_xpath_xalan_3.cpp
C++
#ifndef PUGIXML_NO_XPATH #include "test.hpp" using namespace pugi; TEST_XML(xpath_xalan_axes_1, "<far-north><north-north-west1/><north-north-west2/><north><near-north><far-west/><west/><near-west/><center center-attr-1='c1' center-attr-2='c2' center-attr-3='c3'><near-south-west/><near-south><south><far-south/></sout...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_xpath_xalan_4.cpp
C++
#ifndef PUGIXML_NO_XPATH #include "test.hpp" using namespace pugi; TEST_XML(xpath_xalan_position_1, "<doc><a>1</a><a>2</a><a>3</a><a>4</a></doc>") { xml_node c = doc.child(STR("doc")); CHECK_XPATH_BOOLEAN(c, STR("position()=1"), true); CHECK_XPATH_NODESET(c, STR("*[position()=4]")) % 9; } TEST_XML_FLAGS(xpath_x...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/test_xpath_xalan_5.cpp
C++
#ifndef PUGIXML_NO_XPATH #include "test.hpp" using namespace pugi; TEST_XML(xpath_xalan_select_1, "<doc><a><b attr='test'/></a><c><d><e/></d></c></doc>") { CHECK_XPATH_STRING(doc, STR("/doc/a/b/@attr"), STR("test")); } TEST_XML(xpath_xalan_select_2, "<doc><do do='-do-'>do</do><re>re</re><mi mi1='-mi1-' mi2='mi2'>m...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/writer_string.cpp
C++
#include "writer_string.hpp" #include "test.hpp" static bool test_narrow(const std::string& result, const char* expected, size_t length) { // check result if (result != std::string(expected, expected + length)) return false; // check comparison operator (incorrect implementation can theoretically early-out on zer...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
tests/writer_string.hpp
C++ Header
#ifndef HEADER_TEST_WRITER_STRING_HPP #define HEADER_TEST_WRITER_STRING_HPP #include "../src/pugixml.hpp" #include <string> struct xml_writer_string: public pugi::xml_writer { std::string contents; virtual void write(const void* data, size_t size) PUGIXML_OVERRIDE; std::string as_narrow() const; std::basic_str...
zeux/pugixml
4,499
Light-weight, simple and fast XML parser for C++ with XPath support
C++
zeux
Arseny Kapoulkine
generate.py
Python
#!/usr/bin/python3 # This file is part of volk library; see volk.h for version/license details from collections import OrderedDict import re import sys import urllib import xml.etree.ElementTree as etree import urllib.request import zlib cmdversions = { "vkCmdSetDiscardRectangleEnableEXT": 2, "vkCmdSetDiscardRectan...
zeux/volk
1,745
Meta loader for Vulkan API
C
zeux
Arseny Kapoulkine
test/cmake_cpp_namespace/main.cpp
C++
#include "volk.h" #include "stdio.h" #include "stdlib.h" int main() { VkResult r; uint32_t version; void* ptr; /* This won't compile if the appropriate Vulkan platform define isn't set. */ ptr = #if defined(_WIN32) &vkCreateWin32SurfaceKHR; #elif defined(__linux__) || defined(__unix__) &...
zeux/volk
1,745
Meta loader for Vulkan API
C
zeux
Arseny Kapoulkine
test/cmake_using_installed_headers/main.c
C
/* Set platform defines at build time for volk to pick up. */ #if defined(_WIN32) # define VK_USE_PLATFORM_WIN32_KHR #elif defined(__linux__) || defined(__unix__) # define VK_USE_PLATFORM_XLIB_KHR #elif defined(__APPLE__) # define VK_USE_PLATFORM_MACOS_MVK #else # error "Platform not supported by this example."...
zeux/volk
1,745
Meta loader for Vulkan API
C
zeux
Arseny Kapoulkine
test/cmake_using_source_directly/main.c
C
#include "volk.h" #include "stdio.h" #include "stdlib.h" int main() { VkResult r; uint32_t version; void* ptr; /* This won't compile if the appropriate Vulkan platform define isn't set. */ ptr = #if defined(_WIN32) &vkCreateWin32SurfaceKHR; #elif defined(__linux__) || defined(__unix__) &...
zeux/volk
1,745
Meta loader for Vulkan API
C
zeux
Arseny Kapoulkine
test/cmake_using_subdir_headers/main.c
C
/* Set platform defines at build time for volk to pick up. */ #if defined(_WIN32) # define VK_USE_PLATFORM_WIN32_KHR #elif defined(__linux__) || defined(__unix__) # define VK_USE_PLATFORM_XLIB_KHR #elif defined(__APPLE__) # define VK_USE_PLATFORM_MACOS_MVK #else # error "Platform not supported by this example."...
zeux/volk
1,745
Meta loader for Vulkan API
C
zeux
Arseny Kapoulkine
test/cmake_using_subdir_static/main.c
C
#include "volk.h" #include "stdio.h" #include "stdlib.h" int main() { VkResult r; uint32_t version; void* ptr; /* This won't compile if the appropriate Vulkan platform define isn't set. */ ptr = #if defined(_WIN32) &vkCreateWin32SurfaceKHR; #elif defined(__linux__) || defined(__unix__) &...
zeux/volk
1,745
Meta loader for Vulkan API
C
zeux
Arseny Kapoulkine
test/run_tests.sh
Shell
#!/usr/bin/env bash function reset_build { for DIR in "_build" "_installed" do if [ -d $DIR ]; then rm -rf $DIR fi mkdir -p $DIR done } function run_volk_test { for FILE in "./volk_test" "./volk_test.exe" "Debug/volk_test.exe" "Release/volk_test.exe" do i...
zeux/volk
1,745
Meta loader for Vulkan API
C
zeux
Arseny Kapoulkine
volk.c
C
/* This file is part of volk library; see volk.h for version/license details */ /* clang-format off */ #include "volk.h" #ifdef _WIN32 typedef const char* LPCSTR; typedef struct HINSTANCE__* HINSTANCE; typedef HINSTANCE HMODULE; #if defined(_MINWINDEF_) /* minwindef.h defines FARPROC, and attempting to redefine ...
zeux/volk
1,745
Meta loader for Vulkan API
C
zeux
Arseny Kapoulkine
volk.h
C/C++ Header
/** * volk * * Copyright (C) 2018-2026, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com) * Report bugs and download new versions at https://github.com/zeux/volk * * This library is distributed under the MIT License. See notice at the end of this file. */ /* clang-format off */ #ifndef VOLK_H_ #define VOLK_H_ ...
zeux/volk
1,745
Meta loader for Vulkan API
C
zeux
Arseny Kapoulkine
augment.py
Python
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ## Created by: Hang Zhang ## Email: zhanghang0704@gmail.com ## Copyright (c) 2020 ## ## LICENSE file in the root directory of this source tree ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ from encoding.transform...
zhanghang1989/Fast-AutoAug-Torch
150
Python
zhanghang1989
Hang Zhang
prepare_imagenet.py
Python
"""Prepare the ImageNet dataset""" import os import argparse import tarfile import pickle import gzip import subprocess from tqdm import tqdm import subprocess from resnest.utils import check_sha1, download, mkdir _TARGET_DIR = os.path.expanduser('~/.encoding/data/ILSVRC2012') _TRAIN_TAR = 'ILSVRC2012_img_train.tar' _...
zhanghang1989/Fast-AutoAug-Torch
150
Python
zhanghang1989
Hang Zhang
search_policy.py
Python
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ## Created by: Hang Zhang ## Email: zhanghang0704@gmail.com ## Copyright (c) 2020 ## ## LICENSE file in the root directory of this source tree ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ import os import time i...
zhanghang1989/Fast-AutoAug-Torch
150
Python
zhanghang1989
Hang Zhang
train.py
Python
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ## Created by: Hang Zhang ## Email: zhanghang0704@gmail.com ## Copyright (c) 2020 ## ## LICENSE file in the root directory of this source tree ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ import os import time i...
zhanghang1989/Fast-AutoAug-Torch
150
Python
zhanghang1989
Hang Zhang
utils.py
Python
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ## Created by: Hang Zhang ## Email: zhanghang0704@gmail.com ## Copyright (c) 2020 ## ## LICENSE file in the root directory of this source tree ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ import torch from torch...
zhanghang1989/Fast-AutoAug-Torch
150
Python
zhanghang1989
Hang Zhang
verify.py
Python
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ## Created by: Hang Zhang ## Email: zhanghang0704@gmail.com ## Copyright (c) 2020 ## ## This source code is licensed under the MIT-style license found in the ## LICENSE file in the root directory of this source tree ##+++++++++++++++++++++++++...
zhanghang1989/Fast-AutoAug-Torch
150
Python
zhanghang1989
Hang Zhang
arch/base_generator.py
Python
import configparser class BaseGen(dict): def __init__(self, d=None, **kwargs): if d is None: d = {} if kwargs: d.update(**kwargs) for k, v in d.items(): setattr(self, k, v) # Class attributes for k in self.__class__.__dict__.keys(): ...
zhanghang1989/RegNet-Search-PyTorch
316
Search for RegNet using PyTorch
Python
zhanghang1989
Hang Zhang
arch/regnet.py
Python
import configparser import numpy as np import torch import torch.nn as nn import autotorch as at from .base_generator import BaseGen __all__ = ['RegNeSt'] # code modified from https://github.com/signatrix/regnet class AnyNeSt(nn.Module): def __init__(self, ls_num_blocks, ls_block_width, ls_bottleneck_ratio, ls_...
zhanghang1989/RegNet-Search-PyTorch
316
Search for RegNet using PyTorch
Python
zhanghang1989
Hang Zhang
generate_configs.py
Python
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ## Created by: Hang Zhang ## Email: zhanghang0704@gmail.com ## Copyright (c) 2020 ## ## This source code is licensed under the MIT-style license found in the ## LICENSE file in the root directory of this source tree ##+++++++++++++++++++++++++...
zhanghang1989/RegNet-Search-PyTorch
316
Search for RegNet using PyTorch
Python
zhanghang1989
Hang Zhang
scripts/prepare_imagenet.py
Python
"""Prepare the ImageNet dataset""" import os import argparse import tarfile import pickle import gzip import subprocess from tqdm import tqdm import subprocess from resnest.utils import check_sha1, download, mkdir _TARGET_DIR = os.path.expanduser('~/.encoding/data/ILSVRC2012') _TRAIN_TAR = 'ILSVRC2012_img_train.tar' _...
zhanghang1989/RegNet-Search-PyTorch
316
Search for RegNet using PyTorch
Python
zhanghang1989
Hang Zhang
search.py
Python
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ## Created by: Hang Zhang ## Email: zhanghang0704@gmail.com ## Copyright (c) 2020 ## ## This source code is licensed under the MIT-style license found in the ## LICENSE file in the root directory of this source tree ##+++++++++++++++++++++++++...
zhanghang1989/RegNet-Search-PyTorch
316
Search for RegNet using PyTorch
Python
zhanghang1989
Hang Zhang
test_flops.py
Python
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ## Created by: Hang Zhang ## Email: zhanghang0704@gmail.com ## Copyright (c) 2020 ## ## This source code is licensed under the MIT-style license found in the ## LICENSE file in the root directory of this source tree ##+++++++++++++++++++++++++...
zhanghang1989/RegNet-Search-PyTorch
316
Search for RegNet using PyTorch
Python
zhanghang1989
Hang Zhang
train.py
Python
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ## Created by: Hang Zhang ## Email: zhanghang0704@gmail.com ## Copyright (c) 2020 ## ## LICENSE file in the root directory of this source tree ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ import os import time i...
zhanghang1989/RegNet-Search-PyTorch
316
Search for RegNet using PyTorch
Python
zhanghang1989
Hang Zhang
verify.py
Python
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ## Created by: Hang Zhang ## Email: zhanghang0704@gmail.com ## Copyright (c) 2020 ## ## This source code is licensed under the MIT-style license found in the ## LICENSE file in the root directory of this source tree ##+++++++++++++++++++++++++...
zhanghang1989/RegNet-Search-PyTorch
316
Search for RegNet using PyTorch
Python
zhanghang1989
Hang Zhang
client_configs.py
Python
""" client_configs.py """ from collections import namedtuple import openai from typing import List, Optional from IPython import embed import time import multiprocessing from typing import List, Optional SERVER_IP = "[SECRET IP, REPLACE WITH YOURS]" MODEL_NAME_8B = "8bins" MODEL_NAME_70B = "70bins" EMBEDDING_7B = "7e...
zhaochenyang20/ModelServer
61
Efficient, Flexible, and Highly Fault-Tolerant Model Service Management Based on SGLang
Python
zhaochenyang20
赵晨阳
University of California, Los Angeles
model_server.py
Python
""" model_server.py """ import os os.environ["VLLM_WORKER_MULTIPROC_METHOD"] = "spawn" os.environ["PYTHONUTF8"] = "1" import time from typing import Dict, List import openai import json from client_configs import ( get_fastest_server, get_running_server_sizes, MODEL_NAME_70B, MODEL_NAME_8B, EMBEDD...
zhaochenyang20/ModelServer
61
Efficient, Flexible, and Highly Fault-Tolerant Model Service Management Based on SGLang
Python
zhaochenyang20
赵晨阳
University of California, Los Angeles
serve_llm_pipeline.py
Python
""" serve_llm_pipeline.py """ import subprocess import time from concurrent.futures import ThreadPoolExecutor, as_completed import re import socket from client_configs import Server, Completion_Servers, Embedding_Servers from IPython import embed #! 如果 GPU ulitization 较低的话,开不了这么长的 context length MAX_CONTEXT_LENGTH = ...
zhaochenyang20/ModelServer
61
Efficient, Flexible, and Highly Fault-Tolerant Model Service Management Based on SGLang
Python
zhaochenyang20
赵晨阳
University of California, Los Angeles