text
stringlengths
24
1.04M
metadata
stringlengths
233
497
### File: torchvision/tv_tensors/_tv_tensor.py from __future__ import annotations from typing import Any, Callable, Dict, Mapping, Optional, Sequence, Tuple, Type, TypeVar, Union import torch from torch._C import DisableTorchFunctionSubclass from torch.types import _device, _dtype, _size from torchvision.tv_tensors....
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/pytorch-vision", "path": "torchvision/tv_tensors/_tv_tensor.py", "license": "bsd-3-clause", "size": 6255}
### File: torchvision/tv_tensors/_video.py from __future__ import annotations from typing import Any, Optional, Union import torch from ._tv_tensor import TVTensor class Video(TVTensor): """[BETA] :class:`torch.Tensor` subclass for videos. Args: data (tensor-like): Any data that can be turned into...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/pytorch-vision", "path": "torchvision/tv_tensors/_video.py", "license": "bsd-3-clause", "size": 1390}
### File: torchvision/utils.py import collections import math import pathlib import warnings from itertools import repeat from types import FunctionType from typing import Any, BinaryIO, List, Optional, Tuple, Union import numpy as np import torch from PIL import Image, ImageColor, ImageDraw, ImageFont __all__ = [ ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/pytorch-vision", "path": "torchvision/utils.py", "license": "bsd-3-clause", "size": 23512}
### File: BUILD # Bazel (https://bazel.build/) BUILD file for Protobuf. load("@bazel_skylib//rules:common_settings.bzl", "string_flag") load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test", "objc_library", native_cc_proto_library = "cc_proto_library") load("@rules_pkg//:pkg.bzl", "pkg_zip") load("@rules...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Starlark", "repo_name": "minhanghuang/protobuf", "path": "BUILD", "license": "bsd", "size": 49280}
### File: Makefile.am ## Process this file with automake to produce Makefile.in ACLOCAL_AMFLAGS = -I m4 AUTOMAKE_OPTIONS = foreign # Build . before src so that our all-local and clean-local hooks kicks in at # the right time. SUBDIRS = . src # Always include third_party directories in distributions. DIST_SUBDIRS = ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/protobuf", "path": "Makefile.am", "license": "bsd", "size": 110073}
### File: Protobuf-C++.podspec Pod::Spec.new do |s| s.name = 'Protobuf-C++' s.version = '3.19.1' s.summary = 'Protocol Buffers v3 runtime library for C++.' s.homepage = 'https://github.com/google/protobuf' s.license = '3-Clause BSD License' s.authors = { 'The Protocol Buffers contributors' => 'proto...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Ruby", "repo_name": "minhanghuang/protobuf", "path": "Protobuf-C++.podspec", "license": "bsd", "size": 1523}
### File: Protobuf.podspec # This file describes to Cocoapods how to integrate the Objective-C runtime into a dependent # project. # Despite this file being specific to Objective-C, it needs to be on the root of the repository. # Otherwise, Cocoapods gives trouble like not picking up the license file correctly, or not ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Ruby", "repo_name": "minhanghuang/protobuf", "path": "Protobuf.podspec", "license": "bsd", "size": 2221}
### File: WORKSPACE workspace(name = "com_google_protobuf") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") local_repository( name = "com_google_protobuf_examples", path = "examples", ) http_archive( name = "com_google_googletest", sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Starlark", "repo_name": "minhanghuang/protobuf", "path": "WORKSPACE", "license": "bsd", "size": 1812}
### File: appveyor.bat setlocal IF %platform%==MinGW GOTO build_mingw IF %language%==cpp GOTO build_cpp IF %language%==csharp GOTO build_csharp echo Unsupported language %language% and platform %platform%. Exiting. goto :error :build_mingw echo Building MinGW set PATH=C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\m...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Batchfile", "repo_name": "minhanghuang/protobuf", "path": "appveyor.bat", "license": "bsd", "size": 1449}
### File: benchmarks/BUILD load("@rules_cc//cc:defs.bzl", "cc_proto_library") load("@rules_java//java:defs.bzl", "java_proto_library") load("@rules_proto//proto:defs.bzl", "proto_library") proto_library( name = "benchmarks_proto", srcs = [ "benchmarks.proto", ], strip_import_prefix = "/benchmar...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Starlark", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/BUILD", "license": "bsd", "size": 1260}
### File: benchmarks/Makefile.am benchmarks_protoc_inputs_benchmark_wrapper = \ benchmarks.proto benchmarks_protoc_inputs = \ datasets/google_message1/proto3/benchmark_message1_proto3.proto benchmarks_protoc_inputs_proto2 = ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/Makefile.am", "license": "bsd", "size": 42932}
### File: benchmarks/cpp/BUILD load("@rules_cc//cc:defs.bzl", "cc_binary") cc_binary( name = "cpp", srcs = [ "cpp_benchmark.cc", ], tags = ["benchmark"], deps = [ "//:protobuf", "//benchmarks:benchmarks_cc_proto", "//benchmarks/datasets:cc_protos", "@com_gith...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Starlark", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/cpp/BUILD", "license": "bsd", "size": 337}
### File: benchmarks/cpp/cpp_benchmark.cc // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that th...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/cpp/cpp_benchmark.cc", "license": "bsd", "size": 8103}
### File: benchmarks/datasets/BUILD load("@rules_cc//cc:defs.bzl", "cc_library") load("@rules_java//java:defs.bzl", "java_library") load("@rules_proto//proto:defs.bzl", "proto_library") filegroup( name = "datasets", srcs = [ "//benchmarks/datasets/google_message1/proto2:datasets", "//benchmarks...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Starlark", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/datasets/BUILD", "license": "bsd", "size": 2193}
### File: benchmarks/datasets/google_message1/proto2/BUILD load("@rules_cc//cc:defs.bzl", "cc_proto_library") load("@rules_java//java:defs.bzl", "java_proto_library") load("@rules_proto//proto:defs.bzl", "proto_library") filegroup( name = "datasets", srcs = [ "dataset.google_message1_proto2.pb", ],...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Starlark", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/datasets/google_message1/proto2/BUILD", "license": "bsd", "size": 970}
### File: benchmarks/datasets/google_message1/proto3/BUILD load("@rules_cc//cc:defs.bzl", "cc_proto_library") load("@rules_java//java:defs.bzl", "java_proto_library") load("@rules_proto//proto:defs.bzl", "proto_library") filegroup( name = "datasets", srcs = [ "dataset.google_message1_proto3.pb", ],...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Starlark", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/datasets/google_message1/proto3/BUILD", "license": "bsd", "size": 970}
### File: benchmarks/datasets/google_message2/BUILD load("@rules_cc//cc:defs.bzl", "cc_proto_library") load("@rules_java//java:defs.bzl", "java_proto_library") load("@rules_proto//proto:defs.bzl", "proto_library") filegroup( name = "datasets", srcs = [ "dataset.google_message2.pb", ], visibilit...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Starlark", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/datasets/google_message2/BUILD", "license": "bsd", "size": 921}
### File: benchmarks/datasets/google_message3/BUILD load("@rules_cc//cc:defs.bzl", "cc_proto_library") load("@rules_java//java:defs.bzl", "java_proto_library") load("@rules_proto//proto:defs.bzl", "proto_library") filegroup( name = "datasets", srcs = [], visibility = [ "//benchmarks/datasets:__pkg_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Starlark", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/datasets/google_message3/BUILD", "license": "bsd", "size": 1182}
### File: benchmarks/datasets/google_message4/BUILD load("@rules_cc//cc:defs.bzl", "cc_proto_library") load("@rules_java//java:defs.bzl", "java_proto_library") load("@rules_proto//proto:defs.bzl", "proto_library") filegroup( name = "datasets", srcs = [], visibility = [ "//benchmarks/datasets:__pkg_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Starlark", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/datasets/google_message4/BUILD", "license": "bsd", "size": 992}
### File: benchmarks/java/src/main/java/com/google/protobuf/ProtoCaliperBenchmark.java package com.google.protobuf; import com.google.caliper.BeforeExperiment; import com.google.caliper.AfterExperiment; import com.google.caliper.Benchmark; import com.google.caliper.Param; import com.google.caliper.api.VmOptions; impo...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/java/src/main/java/com/google/protobuf/ProtoCaliperBenchmark.java", "license": "bsd", "size": 8595}
### File: benchmarks/js/benchmark_suite.js var benchmark = require("benchmark"); function newBenchmark(messageName, filename, language) { var benches = []; return { suite: new benchmark.Suite(messageName + filename + language ) .on("add", function(event) { benches.push(event.target); }) ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/js/benchmark_suite.js", "license": "bsd", "size": 944}
### File: benchmarks/js/js_benchmark.js require('./datasets/google_message1/proto2/benchmark_message1_proto2_pb.js'); require('./datasets/google_message1/proto3/benchmark_message1_proto3_pb.js'); require('./datasets/google_message2/benchmark_message2_pb.js'); require('./datasets/google_message3/benchmark_message3_pb.js...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/js/js_benchmark.js", "license": "bsd", "size": 2630}
### File: benchmarks/php/PhpBenchmark.php <?php namespace Google\Protobuf\Benchmark; ini_set('memory_limit', '4096M'); const NAME = "PhpBenchmark.php"; function _require_all($dir, &$prefix) { // require all php files foreach (glob("$dir/*") as $path) { if (preg_match('/\.php$/', $path) && ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/php/PhpBenchmark.php", "license": "bsd", "size": 5261}
### File: benchmarks/php/autoload.php <?php define("GOOGLE_INTERNAL_NAMESPACE", "Google\\Protobuf\\Internal\\"); define("GOOGLE_NAMESPACE", "Google\\Protobuf\\"); define("GOOGLE_GPBMETADATA_NAMESPACE", "GPBMetadata\\Google\\Protobuf\\"); define("BENCHMARK_NAMESPACE", "Benchmarks"); define("BENCHMARK_GPBMETADATA_NAMESP...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/php/autoload.php", "license": "bsd", "size": 1157}
### File: benchmarks/protobuf.js/generate_pbjs_files.js var pbjs = require("./protobuf.js/cli").pbjs var argv = []; var protoFiles = []; var prefix = ""; process.argv.forEach(function(val, index) { var arg = val; if (arg.length > 6 && arg.substring(arg.length - 6) == ".proto") { protoFiles.push(arg); } else ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/protobuf.js/generate_pbjs_files.js", "license": "bsd", "size": 576}
### File: benchmarks/protobuf.js/protobufjs_benchmark.js var root = require("./generated_bundle_code.js"); var fs = require('fs'); var benchmark = require("./node_modules/benchmark"); var benchmarkSuite = require("./benchmark_suite.js"); function getNewPrototype(name) { var message = eval("root." + name); if (typ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/protobuf.js/protobufjs_benchmark.js", "license": "bsd", "size": 2039}
### File: benchmarks/python/py_benchmark.py from __future__ import print_function import sys import os import timeit import math import argparse import fnmatch import json parser = argparse.ArgumentParser(description="Python protobuf benchmark") parser.add_argument("data_files", metavar="dataFile", nargs="+", ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/python/py_benchmark.py", "license": "bsd", "size": 6786}
### File: benchmarks/python/python_benchmark_messages.cc #include <Python.h> #include "benchmarks.pb.h" #include "datasets/google_message1/proto2/benchmark_message1_proto2.pb.h" #include "datasets/google_message1/proto3/benchmark_message1_proto3.pb.h" #include "datasets/google_message2/benchmark_message2.pb.h" #includ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/python/python_benchmark_messages.cc", "license": "bsd", "size": 1262}
### File: benchmarks/util/big_query_utils.py #!/usr/bin/env python2.7 from __future__ import print_function import argparse import json import uuid import httplib2 from apiclient import discovery from apiclient.errors import HttpError from oauth2client.client import GoogleCredentials # 30 days in milliseconds _EXPIR...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/util/big_query_utils.py", "license": "bsd", "size": 6137}
### File: benchmarks/util/data_proto2_to_proto3_util.h #ifndef PROTOBUF_BENCHMARKS_UTIL_DATA_PROTO2_TO_PROTO3_UTIL_H_ #define PROTOBUF_BENCHMARKS_UTIL_DATA_PROTO2_TO_PROTO3_UTIL_H_ #include "google/protobuf/message.h" #include "google/protobuf/descriptor.h" using google::protobuf::FieldDescriptor; using google::proto...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/util/data_proto2_to_proto3_util.h", "license": "bsd", "size": 1876}
### File: benchmarks/util/gogo_data_scrubber.cc #include "benchmarks.pb.h" #include "datasets/google_message1/proto2/benchmark_message1_proto2.pb.h" #include "datasets/google_message1/proto3/benchmark_message1_proto3.pb.h" #include "datasets/google_message2/benchmark_message2.pb.h" #include "datasets/google_message3/be...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/util/gogo_data_scrubber.cc", "license": "bsd", "size": 2743}
### File: benchmarks/util/proto3_data_stripper.cc #include "benchmarks.pb.h" #include "datasets/google_message1/proto2/benchmark_message1_proto2.pb.h" #include "datasets/google_message1/proto3/benchmark_message1_proto3.pb.h" #include "datasets/google_message2/benchmark_message2.pb.h" #include "datasets/google_message3/...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/util/proto3_data_stripper.cc", "license": "bsd", "size": 2747}
### File: benchmarks/util/protoc-gen-gogoproto.cc #include "google/protobuf/compiler/code_generator.h" #include "google/protobuf/io/zero_copy_stream.h" #include "google/protobuf/io/printer.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/descriptor.pb.h" #include "schema_proto2_to_proto3_util.h" #i...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/util/protoc-gen-gogoproto.cc", "license": "bsd", "size": 3249}
### File: benchmarks/util/protoc-gen-proto2_to_proto3.cc #include "google/protobuf/compiler/code_generator.h" #include "google/protobuf/io/zero_copy_stream.h" #include "google/protobuf/io/printer.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/descriptor.pb.h" #include "schema_proto2_to_proto3_util...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/util/protoc-gen-proto2_to_proto3.cc", "license": "bsd", "size": 3460}
### File: benchmarks/util/result_parser.py # This import depends on the automake rule protoc_middleman, please make sure # protoc_middleman has been built before run this file. import argparse import json import re import os.path # BEGIN OPENSOURCE import sys sys.path.append(os.path.join(os.path.dirname(os.path.realpat...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/util/result_parser.py", "license": "bsd", "size": 10198}
### File: benchmarks/util/result_uploader.py from __future__ import print_function from __future__ import absolute_import import argparse import os import re import copy import uuid import calendar import time import datetime from util import big_query_utils from util import result_parser _PROJECT_ID = 'grpc-testing'...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/util/result_uploader.py", "license": "bsd", "size": 3701}
### File: benchmarks/util/schema_proto2_to_proto3_util.h #ifndef PROTOBUF_BENCHMARKS_UTIL_SCHEMA_PROTO2_TO_PROTO3_UTIL_H_ #define PROTOBUF_BENCHMARKS_UTIL_SCHEMA_PROTO2_TO_PROTO3_UTIL_H_ #include "google/protobuf/message.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/descriptor.pb.h" #include <s...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/protobuf", "path": "benchmarks/util/schema_proto2_to_proto3_util.h", "license": "bsd", "size": 6504}
### File: build_files_updated_unittest.sh #!/bin/bash # This script verifies that BUILD files and cmake files are in sync with src/Makefile.am set -eo pipefail if [ "$(uname)" != "Linux" ]; then echo "build_files_updated_unittest only supported on Linux. Skipping..." exit 0 fi # Keep in sync with files needed b...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/protobuf", "path": "build_files_updated_unittest.sh", "license": "bsd", "size": 1725}
### File: cc_proto_blacklist_test.bzl """Contains a unittest to verify that `cc_proto_library` does not generate code for blacklisted `.proto` sources (i.e. WKPs).""" load("@bazel_skylib//lib:unittest.bzl", "asserts", "unittest") def _cc_proto_blacklist_test_impl(ctx): """Verifies that there are no C++ compile ac...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Starlark", "repo_name": "minhanghuang/protobuf", "path": "cc_proto_blacklist_test.bzl", "license": "bsd", "size": 999}
### File: cmake/CMakeLists.txt # Minimum CMake required cmake_minimum_required(VERSION 3.1.3) if(protobuf_VERBOSE) message(STATUS "Protocol Buffers Configuring...") endif() # CMake policies cmake_policy(SET CMP0022 NEW) # On MacOS use @rpath/ for target's install name prefix path if (POLICY CMP0042) cmake_policy(...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/protobuf", "path": "cmake/CMakeLists.txt", "license": "bsd", "size": 11557}
### File: cmake/conformance.cmake add_custom_command( OUTPUT ${protobuf_source_dir}/conformance/conformance.pb.cc DEPENDS ${protobuf_PROTOC_EXE} ${protobuf_source_dir}/conformance/conformance.proto COMMAND ${protobuf_PROTOC_EXE} ${protobuf_source_dir}/conformance/conformance.proto --proto_path=${protobuf_s...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/protobuf", "path": "cmake/conformance.cmake", "license": "bsd", "size": 2254}
### File: cmake/examples.cmake if(protobuf_VERBOSE) message(STATUS "Protocol Buffers Examples Configuring...") endif() get_filename_component(examples_dir "../examples" ABSOLUTE) if(protobuf_VERBOSE) message(STATUS "Protocol Buffers Examples Configuring done") endif() include(ExternalProject) # Internal utility ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/protobuf", "path": "cmake/examples.cmake", "license": "bsd", "size": 2112}
### File: cmake/install.cmake include(GNUInstallDirs) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/protobuf.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/protobuf.pc @ONLY) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/protobuf-lite.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/protobuf-lite.pc @ONLY) set(_pro...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/protobuf", "path": "cmake/install.cmake", "license": "bsd", "size": 6117}
### File: cmake/libprotobuf-lite.cmake set(libprotobuf_lite_files ${protobuf_source_dir}/src/google/protobuf/any_lite.cc ${protobuf_source_dir}/src/google/protobuf/arena.cc ${protobuf_source_dir}/src/google/protobuf/arenastring.cc ${protobuf_source_dir}/src/google/protobuf/extension_set.cc ${protobuf_source_d...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/protobuf", "path": "cmake/libprotobuf-lite.cmake", "license": "bsd", "size": 6384}
### File: cmake/libprotobuf.cmake set(libprotobuf_files ${protobuf_source_dir}/src/google/protobuf/any.cc ${protobuf_source_dir}/src/google/protobuf/any.pb.cc ${protobuf_source_dir}/src/google/protobuf/api.pb.cc ${protobuf_source_dir}/src/google/protobuf/compiler/importer.cc ${protobuf_source_dir}/src/google/...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/protobuf", "path": "cmake/libprotobuf.cmake", "license": "bsd", "size": 7275}
### File: cmake/libprotoc.cmake set(libprotoc_files ${protobuf_source_dir}/src/google/protobuf/compiler/code_generator.cc ${protobuf_source_dir}/src/google/protobuf/compiler/command_line_interface.cc ${protobuf_source_dir}/src/google/protobuf/compiler/cpp/cpp_enum.cc ${protobuf_source_dir}/src/google/protobuf/c...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/protobuf", "path": "cmake/libprotoc.cmake", "license": "bsd", "size": 9130}
### File: cmake/protobuf-config-version.cmake.in set(PACKAGE_VERSION "@protobuf_VERSION@") set(${PACKAGE_FIND_NAME}_VERSION_PRERELEASE "@protobuf_VERSION_PRERELEASE@" PARENT_SCOPE) # Prerelease versions cannot be passed in directly via the find_package command, # so we allow users to specify it in a variable if(NOT DE...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/protobuf", "path": "cmake/protobuf-config-version.cmake.in", "license": "bsd", "size": 2894}
### File: cmake/protobuf-config.cmake.in # User options include("${CMAKE_CURRENT_LIST_DIR}/protobuf-options.cmake") # Depend packages @_protobuf_FIND_ZLIB@ # Imported targets include("${CMAKE_CURRENT_LIST_DIR}/protobuf-targets.cmake") function(protobuf_generate) include(CMakeParseArguments) set(_options APPEND_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/protobuf", "path": "cmake/protobuf-config.cmake.in", "license": "bsd", "size": 5466}
### File: cmake/protobuf-lite.pc.cmake prefix=@CMAKE_INSTALL_PREFIX@ exec_prefix=@CMAKE_INSTALL_PREFIX@ libdir=@CMAKE_INSTALL_FULL_LIBDIR@ includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ Name: Protocol Buffers Description: Google's Data Interchange Format Version: @protobuf_VERSION@ Libs: -L${libdir} -lprotobuf-lite @CMAKE...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/protobuf", "path": "cmake/protobuf-lite.pc.cmake", "license": "bsd", "size": 344}
### File: cmake/protobuf-module.cmake.in # This file contains backwards compatibility patches for various legacy functions and variables # Functions function(PROTOBUF_GENERATE_CPP SRCS HDRS) cmake_parse_arguments(protobuf_generate_cpp "" "EXPORT_MACRO" "" ${ARGN}) set(_proto_files "${protobuf_generate_cpp_UNPARSE...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/protobuf", "path": "cmake/protobuf-module.cmake.in", "license": "bsd", "size": 5632}
### File: cmake/protobuf-options.cmake # Verbose output option(protobuf_VERBOSE "Enable for verbose output" OFF) mark_as_advanced(protobuf_VERBOSE) # FindProtobuf module compatible option(protobuf_MODULE_COMPATIBLE "CMake built-in FindProtobuf.cmake module compatible" OFF) mark_as_advanced(protobuf_MODULE_COMPATIBLE)
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/protobuf", "path": "cmake/protobuf-options.cmake", "license": "bsd", "size": 281}
### File: cmake/protobuf.pc.cmake prefix=@CMAKE_INSTALL_PREFIX@ exec_prefix=@CMAKE_INSTALL_PREFIX@ libdir=@CMAKE_INSTALL_FULL_LIBDIR@ includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ Name: Protocol Buffers Description: Google's Data Interchange Format Version: @protobuf_VERSION@ Libs: -L${libdir} -lprotobuf @CMAKE_THREAD_LI...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/protobuf", "path": "cmake/protobuf.pc.cmake", "license": "bsd", "size": 344}
### File: cmake/protoc.cmake set(protoc_files ${protobuf_source_dir}/src/google/protobuf/compiler/main.cc ) if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") set(protoc_rc_files ${CMAKE_CURRENT_BINARY_DIR}/version.rc ) endif() add_executable(protoc ${protoc_files} ${protoc_rc_files}) target_link_libraries(protoc libprot...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/protobuf", "path": "cmake/protoc.cmake", "license": "bsd", "size": 427}
### File: cmake/tests.cmake if (NOT EXISTS "${PROJECT_SOURCE_DIR}/../third_party/googletest/CMakeLists.txt") message(FATAL_ERROR "Cannot find third_party/googletest directory that's needed to " "build tests. If you use git, make sure you have cloned submodules:\n" " git submodule update...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/protobuf", "path": "cmake/tests.cmake", "license": "bsd", "size": 12823}
### File: compiler_config_setting.bzl """Creates config_setting that allows selecting based on 'compiler' value.""" def create_compiler_config_setting(name, value, visibility = None): # The "do_not_use_tools_cpp_compiler_present" attribute exists to # distinguish between older versions of Bazel that do not sup...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Starlark", "repo_name": "minhanghuang/protobuf", "path": "compiler_config_setting.bzl", "license": "bsd", "size": 964}
### File: configure.ac ## Process this file with autoconf to produce configure. ## In general, the safest way to proceed is to run ./autogen.sh AC_PREREQ(2.59) # Note: If you change the version, you must also update it in: # * Protobuf.podspec # * csharp/Google.Protobuf.Tools.nuspec # * csharp/src/*/AssemblyInfo.cs ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "M4Sugar", "repo_name": "minhanghuang/protobuf", "path": "configure.ac", "license": "bsd", "size": 8006}
### File: conformance/ConformanceJava.java // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that t...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "minhanghuang/protobuf", "path": "conformance/ConformanceJava.java", "license": "bsd", "size": 15111}
### File: conformance/ConformanceJavaLite.java // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided th...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "minhanghuang/protobuf", "path": "conformance/ConformanceJavaLite.java", "license": "bsd", "size": 12343}
### File: conformance/Makefile.am ## Process this file with automake to produce Makefile.in conformance_protoc_inputs = \ conformance.proto \ $(top_srcdir)/src/google/protobuf/test_messages_proto3.proto # proto2 input files, should be s...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/protobuf", "path": "conformance/Makefile.am", "license": "bsd", "size": 23191}
### File: conformance/autoload.php <?php define("GOOGLE_INTERNAL_NAMESPACE", "Google\\Protobuf\\Internal\\"); define("GOOGLE_NAMESPACE", "Google\\Protobuf\\"); define("GOOGLE_GPBMETADATA_NAMESPACE", "GPBMetadata\\Google\\Protobuf\\"); function protobuf_autoloader_impl($class, $prefix) { $length = strlen($prefix);...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobuf", "path": "conformance/autoload.php", "license": "bsd", "size": 752}
### File: conformance/binary_json_conformance_suite.cc // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted pro...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/protobuf", "path": "conformance/binary_json_conformance_suite.cc", "license": "bsd", "size": 121451}
### File: conformance/binary_json_conformance_suite.h // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted prov...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/protobuf", "path": "conformance/binary_json_conformance_suite.h", "license": "bsd", "size": 6867}
### File: conformance/conformance_cpp.cc // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/protobuf", "path": "conformance/conformance_cpp.cc", "license": "bsd", "size": 8841}
### File: conformance/conformance_nodejs.js #!/usr/bin/env node // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are perm...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/protobuf", "path": "conformance/conformance_nodejs.js", "license": "bsd", "size": 6124}
### File: conformance/conformance_objc.m // Protocol Buffers - Google's data interchange format // Copyright 2015 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Objective-C", "repo_name": "minhanghuang/protobuf", "path": "conformance/conformance_objc.m", "license": "bsd", "size": 7416}
### File: conformance/conformance_php.php <?php require_once("Conformance/WireFormat.php"); require_once("Conformance/ConformanceResponse.php"); require_once("Conformance/ConformanceRequest.php"); require_once("Conformance/FailureSet.php"); require_once("Conformance/JspbEncodingConfig.php"); require_once("Conformance/...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobuf", "path": "conformance/conformance_php.php", "license": "bsd", "size": 4272}
### File: conformance/conformance_python.py #!/usr/bin/env python # Protocol Buffers - Google's data interchange format # Copyright 2008 Google Inc. All rights reserved. # https://developers.google.com/protocol-buffers/ # # Redistribution and use in source and binary forms, with or without # modification, are permitte...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/protobuf", "path": "conformance/conformance_python.py", "license": "bsd", "size": 9255}
### File: conformance/conformance_ruby.rb #!/usr/bin/env ruby # # Protocol Buffers - Google's data interchange format # Copyright 2008 Google Inc. All rights reserved. # https://developers.google.com/protocol-buffers/ # # Redistribution and use in source and binary forms, with or without # modification, are permitted ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Ruby", "repo_name": "minhanghuang/protobuf", "path": "conformance/conformance_ruby.rb", "license": "bsd", "size": 4789}
### File: conformance/conformance_test.cc // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that th...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/protobuf", "path": "conformance/conformance_test.cc", "license": "bsd", "size": 16150}
### File: conformance/conformance_test.h // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/protobuf", "path": "conformance/conformance_test.h", "license": "bsd", "size": 12154}
### File: conformance/conformance_test_main.cc // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided th...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/protobuf", "path": "conformance/conformance_test_main.cc", "license": "bsd", "size": 2070}
### File: conformance/conformance_test_runner.cc // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/protobuf", "path": "conformance/conformance_test_runner.cc", "license": "bsd", "size": 11843}
### File: conformance/conformance_test_runner.sh #!/bin/bash set -x echo $@ set -euo pipefail # --- begin runfiles.bash initialization --- if [[ ! -d "${RUNFILES_DIR:-/dev/null}" && ! -f "${RUNFILES_MANIFEST_FILE:-/dev/null}" ]]; then if [[ -f "$0.runfiles_manifest" ]]; then export RUNFILES_MANIFEST_FILE="$...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/protobuf", "path": "conformance/conformance_test_runner.sh", "license": "bsd", "size": 1895}
### File: conformance/text_format_conformance_suite.cc // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted pro...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/protobuf", "path": "conformance/text_format_conformance_suite.cc", "license": "bsd", "size": 19450}
### File: conformance/text_format_conformance_suite.h // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted prov...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/protobuf", "path": "conformance/text_format_conformance_suite.h", "license": "bsd", "size": 3334}
### File: conformance/update_failure_list.py #!/usr/bin/env python # Protocol Buffers - Google's data interchange format # Copyright 2008 Google Inc. All rights reserved. # https://developers.google.com/protocol-buffers/ # # Redistribution and use in source and binary forms, with or without # modification, are permitt...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/protobuf", "path": "conformance/update_failure_list.py", "license": "bsd", "size": 2898}
### File: csharp/build_packages.bat @rem Builds Google.Protobuf NuGet packages dotnet restore src/Google.Protobuf.sln dotnet pack -c Release src/Google.Protobuf.sln -p:ContinuousIntegrationBuild=true || goto :error goto :EOF :error echo Failed! exit /b %errorlevel%
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Batchfile", "repo_name": "minhanghuang/protobuf", "path": "csharp/build_packages.bat", "license": "bsd", "size": 233}
### File: csharp/build_tools.sh #!/bin/bash if [ $# -ne 1 ]; then cat <<EOF Usage: $0 <VERSION_NUMBER> Example: $ $0 3.0.0 This script will download pre-built protoc binaries from maven repository and create the Google.Protobuf.Tools package. Well-known type .proto files will also be included. EOF exit 1 fi V...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/protobuf", "path": "csharp/build_tools.sh", "license": "bsd", "size": 1266}
### File: csharp/buildall.bat @rem Builds Google.Protobuf and runs the tests dotnet build src/Google.Protobuf.sln || goto :error echo Running tests. dotnet test src/Google.Protobuf.Test/Google.Protobuf.Test.csproj || goto :error goto :EOF :error echo Failed! exit /b %errorlevel%
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Batchfile", "repo_name": "minhanghuang/protobuf", "path": "csharp/buildall.bat", "license": "bsd", "size": 255}
### File: csharp/buildall.sh #!/bin/bash CONFIG=Release SRC=$(dirname $0)/src set -ex echo Building relevant projects. dotnet restore $SRC/Google.Protobuf.sln dotnet build -c $CONFIG $SRC/Google.Protobuf.sln echo Running tests. # Only test netcoreapp3.1, which uses the .NET Core runtime. # If we want to test the .N...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/protobuf", "path": "csharp/buildall.sh", "license": "bsd", "size": 537}
### File: csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/CodedInputStreamExtensions.cs #region Copyright notice and license // Protocol Buffers - Google's data interchange format // Copyright 2015 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C#", "repo_name": "minhanghuang/protobuf", "path": "csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/CodedInputStreamExtensions.cs", "license": "bsd", "size":...
### File: csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/EqualityTester.cs #region Copyright notice and license // Protocol Buffers - Google's data interchange format // Copyright 2015 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in sourc...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C#", "repo_name": "minhanghuang/protobuf", "path": "csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/EqualityTester.cs", "license": "bsd", "size": 2857}
### File: csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Program.cs #region Copyright notice and license // Protocol Buffers - Google's data interchange format // Copyright 2017 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and bi...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C#", "repo_name": "minhanghuang/protobuf", "path": "csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Program.cs", "license": "bsd", "size": 2059}
### File: csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/SampleEnum.cs #region Copyright notice and license // Protocol Buffers - Google's data interchange format // Copyright 2015 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C#", "repo_name": "minhanghuang/protobuf", "path": "csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/SampleEnum.cs", "license": "bsd", "size": 1932}
### File: csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/SampleMessages.cs #region Copyright notice and license // Protocol Buffers - Google's data interchange format // Copyright 2015 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in sourc...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C#", "repo_name": "minhanghuang/protobuf", "path": "csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/SampleMessages.cs", "license": "bsd", "size": 5203}
### File: csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/TestCornerCases.cs #region Copyright notice and license // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C#", "repo_name": "minhanghuang/protobuf", "path": "csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/TestCornerCases.cs", "license": "bsd", "size": 2702}
### File: csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/TestProtos/ForeignMessagePartial.cs #region Copyright notice and license // Protocol Buffers - Google's data interchange format // Copyright 2016 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistributio...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C#", "repo_name": "minhanghuang/protobuf", "path": "csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/TestProtos/ForeignMessagePartial.cs", "license": "bsd", "...
### File: csharp/compatibility_tests/v3.0.0/test.sh #!/bin/bash function run_test() { # Generate test proto files. $1 -Iprotos/src -I../../../src/ --csharp_out=src/Google.Protobuf.Test \ --csharp_opt=base_namespace=Google.Protobuf \ protos/src/google/protobuf/unittest_import_proto3.proto \ protos/src/g...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/protobuf", "path": "csharp/compatibility_tests/v3.0.0/test.sh", "license": "bsd", "size": 2863}
### File: csharp/generate_protos.sh #!/bin/bash # Generates C# source files from .proto files. # You first need to make sure protoc has been built (see instructions on # building protoc in root of this repository) set -e # cd to repository root pushd $(dirname $0)/.. # Protocol buffer compiler to use. If the PROTOC ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/protobuf", "path": "csharp/generate_protos.sh", "license": "bsd", "size": 3245}
### File: csharp/install_dotnet_sdk.ps1 #!/usr/bin/env powershell # Install dotnet SDK using the official dotnet-install.ps1 script Set-StrictMode -Version 2 $ErrorActionPreference = 'Stop' # avoid "Unknown error on a send" in Invoke-WebRequest [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]:...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PowerShell", "repo_name": "minhanghuang/protobuf", "path": "csharp/install_dotnet_sdk.ps1", "license": "bsd", "size": 794}
### File: csharp/src/AddressBook/AddPerson.cs #region Copyright notice and license // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C#", "repo_name": "minhanghuang/protobuf", "path": "csharp/src/AddressBook/AddPerson.cs", "license": "bsd", "size": 4996}
### File: csharp/src/AddressBook/ListPeople.cs #region Copyright notice and license // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C#", "repo_name": "minhanghuang/protobuf", "path": "csharp/src/AddressBook/ListPeople.cs", "license": "bsd", "size": 4071}
### File: csharp/src/AddressBook/Program.cs #region Copyright notice and license // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without /...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C#", "repo_name": "minhanghuang/protobuf", "path": "csharp/src/AddressBook/Program.cs", "license": "bsd", "size": 4075}
### File: csharp/src/AddressBook/SampleUsage.cs #region Copyright notice and license // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or withou...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C#", "repo_name": "minhanghuang/protobuf", "path": "csharp/src/AddressBook/SampleUsage.cs", "license": "bsd", "size": 3066}
### File: csharp/src/Google.Protobuf.Benchmarks/BenchmarkDatasetConfig.cs #region Copyright notice and license // Protocol Buffers - Google's data interchange format // Copyright 2019 Google Inc. All rights reserved. // https://github.com/protocolbuffers/protobuf // // Redistribution and use in source and binary form...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C#", "repo_name": "minhanghuang/protobuf", "path": "csharp/src/Google.Protobuf.Benchmarks/BenchmarkDatasetConfig.cs", "license": "bsd", "size": 3919}
### File: csharp/src/Google.Protobuf.Benchmarks/ByteStringBenchmark.cs #region Copyright notice and license // Protocol Buffers - Google's data interchange format // Copyright 2019 Google Inc. All rights reserved. // https://github.com/protocolbuffers/protobuf // // Redistribution and use in source and binary forms, w...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C#", "repo_name": "minhanghuang/protobuf", "path": "csharp/src/Google.Protobuf.Benchmarks/ByteStringBenchmark.cs", "license": "bsd", "size": 2712}
### File: csharp/src/Google.Protobuf.Benchmarks/GoogleMessageBenchmark.cs #region Copyright notice and license // Protocol Buffers - Google's data interchange format // Copyright 2019 Google Inc. All rights reserved. // https://github.com/protocolbuffers/protobuf // // Redistribution and use in source and binary form...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C#", "repo_name": "minhanghuang/protobuf", "path": "csharp/src/Google.Protobuf.Benchmarks/GoogleMessageBenchmark.cs", "license": "bsd", "size": 5112}
### File: csharp/src/Google.Protobuf.Benchmarks/ParseMessagesBenchmark.cs #region Copyright notice and license // Protocol Buffers - Google's data interchange format // Copyright 2019 Google Inc. All rights reserved. // https://github.com/protocolbuffers/protobuf // // Redistribution and use in source and binary forms...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C#", "repo_name": "minhanghuang/protobuf", "path": "csharp/src/Google.Protobuf.Benchmarks/ParseMessagesBenchmark.cs", "license": "bsd", "size": 9905}
### File: csharp/src/Google.Protobuf.Benchmarks/ParseRawPrimitivesBenchmark.cs #region Copyright notice and license // Protocol Buffers - Google's data interchange format // Copyright 2019 Google Inc. All rights reserved. // https://github.com/protocolbuffers/protobuf // // Redistribution and use in source and binary ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C#", "repo_name": "minhanghuang/protobuf", "path": "csharp/src/Google.Protobuf.Benchmarks/ParseRawPrimitivesBenchmark.cs", "license": "bsd", "size": 20075}
### File: csharp/src/Google.Protobuf.Benchmarks/Program.cs #region Copyright notice and license // Protocol Buffers - Google's data interchange format // Copyright 2019 Google Inc. All rights reserved. // https://github.com/protocolbuffers/protobuf // // Redistribution and use in source and binary forms, with or with...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C#", "repo_name": "minhanghuang/protobuf", "path": "csharp/src/Google.Protobuf.Benchmarks/Program.cs", "license": "bsd", "size": 2174}