text stringlengths 24 1.04M | metadata stringlengths 233 497 |
|---|---|
### File: objectivec/Tests/GPBUnittestProtos2.m
// Protocol Buffers - Google's data interchange format
// Copyright 2016 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 t... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Objective-C", "repo_name": "minhanghuang/protobufsource", "path": "objectivec/Tests/GPBUnittestProtos2.m", "license": "bsd", "size": 1903} |
### File: objectivec/Tests/GPBUnknownFieldSetTest.m
// 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 provid... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Objective-C", "repo_name": "minhanghuang/protobufsource", "path": "objectivec/Tests/GPBUnknownFieldSetTest.m", "license": "bsd", "size": 18962} |
### File: objectivec/Tests/GPBUtilitiesTests.m
// 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": "Objective-C", "repo_name": "minhanghuang/protobufsource", "path": "objectivec/Tests/GPBUtilitiesTests.m", "license": "bsd", "size": 16386} |
### File: objectivec/Tests/GPBWellKnownTypesTest.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 provide... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Objective-C", "repo_name": "minhanghuang/protobufsource", "path": "objectivec/Tests/GPBWellKnownTypesTest.m", "license": "bsd", "size": 8571} |
### File: objectivec/Tests/GPBWireFormatTests.m
// 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 t... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Objective-C", "repo_name": "minhanghuang/protobufsource", "path": "objectivec/Tests/GPBWireFormatTests.m", "license": "bsd", "size": 9878} |
### File: objectivec/Tests/UnitTests-Bridging-Header.h
//
// Use this file to import your target's public headers that you would like to expose to Swift.
//
#import "google/protobuf/UnittestRuntimeProto2.pbobjc.h"
#import "google/protobuf/UnittestRuntimeProto3.pbobjc.h"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Objective-C", "repo_name": "minhanghuang/protobufsource", "path": "objectivec/Tests/UnitTests-Bridging-Header.h", "license": "bsd", "size": 218} |
### File: objectivec/generate_well_known_types.sh
#!/bin/bash
# Run this script to regenerate *.pbobjc.{h,m} for the well known types after
# the protocol compiler changes.
# HINT: Flags passed to generate_well_known_types.sh will be passed directly
# to make when building protoc. This is particularly useful for ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/protobufsource", "path": "objectivec/generate_well_known_types.sh", "license": "bsd", "size": 2531} |
### File: objectivec/google/protobuf/Any.pbobjc.h
// Moved to root of objectivec directory, shim to keep anyone's imports working.
#import "GPBAny.pbobjc.h"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Objective-C", "repo_name": "minhanghuang/protobufsource", "path": "objectivec/google/protobuf/Any.pbobjc.h", "license": "bsd", "size": 107} |
### File: objectivec/google/protobuf/Api.pbobjc.h
// Moved to root of objectivec directory, shim to keep anyone's imports working.
#import "GPBApi.pbobjc.h"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Objective-C", "repo_name": "minhanghuang/protobufsource", "path": "objectivec/google/protobuf/Api.pbobjc.h", "license": "bsd", "size": 107} |
### File: objectivec/google/protobuf/Duration.pbobjc.h
// Moved to root of objectivec directory, shim to keep anyone's imports working.
#import "GPBDuration.pbobjc.h"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Objective-C", "repo_name": "minhanghuang/protobufsource", "path": "objectivec/google/protobuf/Duration.pbobjc.h", "license": "bsd", "size": 112} |
### File: objectivec/google/protobuf/Empty.pbobjc.h
// Moved to root of objectivec directory, shim to keep anyone's imports working.
#import "GPBEmpty.pbobjc.h"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Objective-C", "repo_name": "minhanghuang/protobufsource", "path": "objectivec/google/protobuf/Empty.pbobjc.h", "license": "bsd", "size": 109} |
### File: objectivec/google/protobuf/FieldMask.pbobjc.h
// Moved to root of objectivec directory, shim to keep anyone's imports working.
#import "GPBFieldMask.pbobjc.h"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Objective-C", "repo_name": "minhanghuang/protobufsource", "path": "objectivec/google/protobuf/FieldMask.pbobjc.h", "license": "bsd", "size": 113} |
### File: objectivec/google/protobuf/SourceContext.pbobjc.h
// Moved to root of objectivec directory, shim to keep anyone's imports working.
#import "GPBSourceContext.pbobjc.h"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Objective-C", "repo_name": "minhanghuang/protobufsource", "path": "objectivec/google/protobuf/SourceContext.pbobjc.h", "license": "bsd", "size": 117} |
### File: objectivec/google/protobuf/Struct.pbobjc.h
// Moved to root of objectivec directory, shim to keep anyone's imports working.
#import "GPBStruct.pbobjc.h"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Objective-C", "repo_name": "minhanghuang/protobufsource", "path": "objectivec/google/protobuf/Struct.pbobjc.h", "license": "bsd", "size": 110} |
### File: objectivec/google/protobuf/Timestamp.pbobjc.h
// Moved to root of objectivec directory, shim to keep anyone's imports working.
#import "GPBTimestamp.pbobjc.h"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Objective-C", "repo_name": "minhanghuang/protobufsource", "path": "objectivec/google/protobuf/Timestamp.pbobjc.h", "license": "bsd", "size": 113} |
### File: objectivec/google/protobuf/Type.pbobjc.h
// Moved to root of objectivec directory, shim to keep anyone's imports working.
#import "GPBType.pbobjc.h"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Objective-C", "repo_name": "minhanghuang/protobufsource", "path": "objectivec/google/protobuf/Type.pbobjc.h", "license": "bsd", "size": 108} |
### File: objectivec/google/protobuf/Wrappers.pbobjc.h
// Moved to root of objectivec directory, shim to keep anyone's imports working.
#import "GPBWrappers.pbobjc.h"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Objective-C", "repo_name": "minhanghuang/protobufsource", "path": "objectivec/google/protobuf/Wrappers.pbobjc.h", "license": "bsd", "size": 112} |
### File: php/ext/google/protobuf/arena.c
// 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/protobufsource", "path": "php/ext/google/protobuf/arena.c", "license": "bsd", "size": 3575} |
### File: php/ext/google/protobuf/arena.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 th... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/protobufsource", "path": "php/ext/google/protobuf/arena.h", "license": "bsd", "size": 2047} |
### File: php/ext/google/protobuf/array.c
// 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/protobufsource", "path": "php/ext/google/protobuf/array.c", "license": "bsd", "size": 20434} |
### File: php/ext/google/protobuf/array.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 th... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/protobufsource", "path": "php/ext/google/protobuf/array.h", "license": "bsd", "size": 3177} |
### File: php/ext/google/protobuf/config.m4
PHP_ARG_ENABLE(protobuf, whether to enable Protobuf extension, [ --enable-protobuf Enable Protobuf extension])
if test "$PHP_PROTOBUF" != "no"; then
PHP_NEW_EXTENSION(
protobuf,
arena.c array.c convert.c def.c map.c message.c names.c php-upb.c protobuf.c,
$... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "M4", "repo_name": "minhanghuang/protobufsource", "path": "php/ext/google/protobuf/config.m4", "license": "bsd", "size": 306} |
### File: php/ext/google/protobuf/convert.c
// 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 ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/protobufsource", "path": "php/ext/google/protobuf/convert.c", "license": "bsd", "size": 15592} |
### File: php/ext/google/protobuf/convert.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 ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/protobufsource", "path": "php/ext/google/protobuf/convert.h", "license": "bsd", "size": 3362} |
### File: php/ext/google/protobuf/def.c
// 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/protobufsource", "path": "php/ext/google/protobuf/def.c", "license": "bsd", "size": 35028} |
### File: php/ext/google/protobuf/def.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/protobufsource", "path": "php/ext/google/protobuf/def.h", "license": "bsd", "size": 3378} |
### File: php/ext/google/protobuf/map.c
// 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/protobufsource", "path": "php/ext/google/protobuf/map.c", "license": "bsd", "size": 20021} |
### File: php/ext/google/protobuf/map.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/protobufsource", "path": "php/ext/google/protobuf/map.h", "license": "bsd", "size": 2958} |
### File: php/ext/google/protobuf/message.c
// Protocol Buffers - Google's data interchange format
// Copyright 2014 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 ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/protobufsource", "path": "php/ext/google/protobuf/message.c", "license": "bsd", "size": 39499} |
### File: php/ext/google/protobuf/message.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 ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/protobufsource", "path": "php/ext/google/protobuf/message.h", "license": "bsd", "size": 2921} |
### File: php/ext/google/protobuf/names.c
// 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/protobufsource", "path": "php/ext/google/protobuf/names.c", "license": "bsd", "size": 7695} |
### File: php/ext/google/protobuf/names.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 th... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/protobufsource", "path": "php/ext/google/protobuf/names.h", "license": "bsd", "size": 1947} |
### File: php/ext/google/protobuf/php-upb.c
/* Amalgamated source file */
#include "php-upb.h"
/*
* This is where we define macros used across upb.
*
* All of these macros are undef'd in port_undef.inc to avoid leaking them to
* users.
*
* The correct usage is:
*
* #include "upb/foobar.h"
* #include "upb/baz.h"
*
*... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/protobufsource", "path": "php/ext/google/protobuf/php-upb.c", "license": "bsd", "size": 270215} |
### File: php/ext/google/protobuf/php-upb.h
/* Amalgamated source file */
#include <stdint.h>/*
* This is where we define macros used across upb.
*
* All of these macros are undef'd in port_undef.inc to avoid leaking them to
* users.
*
* The correct usage is:
*
* #include "upb/foobar.h"
* #include "upb/baz.h"
*
* ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/protobufsource", "path": "php/ext/google/protobuf/php-upb.h", "license": "bsd", "size": 211096} |
### File: php/ext/google/protobuf/protobuf.c
// 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... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/protobufsource", "path": "php/ext/google/protobuf/protobuf.c", "license": "bsd", "size": 11108} |
### File: php/ext/google/protobuf/protobuf.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... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/protobufsource", "path": "php/ext/google/protobuf/protobuf.h", "license": "bsd", "size": 5090} |
### File: php/generate_descriptor_protos.sh
#!/usr/bin/env bash
# Run this script to regenerate descriptor protos after the protocol compiler
# changes.
set -e
if test ! -e src/google/protobuf/stubs/common.h; then
cat >&2 << __EOF__
Could not find source code. Make sure you are running this script from the
root o... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/protobufsource", "path": "php/generate_descriptor_protos.sh", "license": "bsd", "size": 803} |
### File: php/prepare_c_extension.sh
# wyhash has to live in the base third_party directory.
# We copy it into the ext/google/protobuf directory for the build
# (and for the release to PECL).
mkdir -p ../ext/google/protobuf/third_party/wyhash
cp ../../third_party/wyhash/* ../ext/google/protobuf/third_party/wyhash
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/protobufsource", "path": "php/prepare_c_extension.sh", "license": "bsd", "size": 279} |
### File: php/release.sh
#!/bin/bash
set -ex
# Make sure we are in a protobuf source tree.
[ -f "php/release.sh" ] || {
echo "This script must be ran under root of protobuf source tree."
exit 1
}
VERSION=$1
git clone https://github.com/protocolbuffers/protobuf-php.git
git clone https://github.com/protocolbuffer... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/protobufsource", "path": "php/release.sh", "license": "bsd", "size": 673} |
### File: php/src/Google/Protobuf/Descriptor.php
<?php
// 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 binary forms, with or without
// modification, are permitted pr... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Descriptor.php", "license": "bsd", "size": 3329} |
### File: php/src/Google/Protobuf/DescriptorPool.php
<?php
// 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 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": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/DescriptorPool.php", "license": "bsd", "size": 2836} |
### File: php/src/Google/Protobuf/EnumDescriptor.php
<?php
// 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 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": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/EnumDescriptor.php", "license": "bsd", "size": 2595} |
### File: php/src/Google/Protobuf/EnumValueDescriptor.php
<?php
// 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 per... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/EnumValueDescriptor.php", "license": "bsd", "size": 2140} |
### File: php/src/Google/Protobuf/FieldDescriptor.php
<?php
// 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 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": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/FieldDescriptor.php", "license": "bsd", "size": 3805} |
### File: php/src/Google/Protobuf/Internal/AnyBase.php
<?php
namespace Google\Protobuf\Internal;
/**
* Base class for Google\Protobuf\Any, this contains hand-written convenience
* methods like pack() and unpack().
*/
class AnyBase extends \Google\Protobuf\Internal\Message
{
const TYPE_URL_PREFIX = 'type.google... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/AnyBase.php", "license": "bsd", "size": 3206} |
### File: php/src/Google/Protobuf/Internal/CodedInputStream.php
<?php
// 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, a... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/CodedInputStream.php", "license": "bsd", "size": 12060} |
### File: php/src/Google/Protobuf/Internal/CodedOutputStream.php
<?php
// 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, ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/CodedOutputStream.php", "license": "bsd", "size": 5369} |
### File: php/src/Google/Protobuf/Internal/Descriptor.php
<?php
// 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 per... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/Descriptor.php", "license": "bsd", "size": 6093} |
### File: php/src/Google/Protobuf/Internal/DescriptorPool.php
<?php
// 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... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/DescriptorPool.php", "license": "bsd", "size": 6595} |
### File: php/src/Google/Protobuf/Internal/EnumBuilderContext.php
<?php
// 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,... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/EnumBuilderContext.php", "license": "bsd", "size": 2411} |
### File: php/src/Google/Protobuf/Internal/EnumDescriptor.php
<?php
namespace Google\Protobuf\Internal;
use Google\Protobuf\EnumValueDescriptor;
class EnumDescriptor
{
use HasPublicDescriptorTrait;
private $klass;
private $legacy_klass;
private $full_name;
private $value;
private $name_to_va... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/EnumDescriptor.php", "license": "bsd", "size": 2594} |
### File: php/src/Google/Protobuf/Internal/FieldDescriptor.php
<?php
// 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, ar... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/FieldDescriptor.php", "license": "bsd", "size": 8279} |
### File: php/src/Google/Protobuf/Internal/FileDescriptor.php
<?php
// 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... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/FileDescriptor.php", "license": "bsd", "size": 2913} |
### File: php/src/Google/Protobuf/Internal/GPBDecodeException.php
<?php
// 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,... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/GPBDecodeException.php", "license": "bsd", "size": 2001} |
### File: php/src/Google/Protobuf/Internal/GPBJsonWire.php
<?php
// 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 pe... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/GPBJsonWire.php", "license": "bsd", "size": 10839} |
### File: php/src/Google/Protobuf/Internal/GPBLabel.php
<?php
// 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 permi... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/GPBLabel.php", "license": "bsd", "size": 1795} |
### File: php/src/Google/Protobuf/Internal/GPBType.php
<?php
// 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 permit... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/GPBType.php", "license": "bsd", "size": 2172} |
### File: php/src/Google/Protobuf/Internal/GPBUtil.php
<?php
// 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 permit... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/GPBUtil.php", "license": "bsd", "size": 21547} |
### File: php/src/Google/Protobuf/Internal/GPBWire.php
<?php
// 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 permit... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/GPBWire.php", "license": "bsd", "size": 18125} |
### File: php/src/Google/Protobuf/Internal/GPBWireType.php
<?php
// 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 pe... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/GPBWireType.php", "license": "bsd", "size": 1918} |
### File: php/src/Google/Protobuf/Internal/GetPublicDescriptorTrait.php
<?php
// 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 binary forms, with or without
// modific... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/GetPublicDescriptorTrait.php", "license": "bsd", "size": 1868} |
### File: php/src/Google/Protobuf/Internal/HasPublicDescriptorTrait.php
<?php
// 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
// modific... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/HasPublicDescriptorTrait.php", "license": "bsd", "size": 1855} |
### File: php/src/Google/Protobuf/Internal/MapEntry.php
<?php
// 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 permi... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/MapEntry.php", "license": "bsd", "size": 2672} |
### File: php/src/Google/Protobuf/Internal/MapField.php
<?php
// 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 permi... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/MapField.php", "license": "bsd", "size": 8578} |
### File: php/src/Google/Protobuf/Internal/MapFieldIter.php
<?php
// 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 p... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/MapFieldIter.php", "license": "bsd", "size": 4002} |
### File: php/src/Google/Protobuf/Internal/Message.php
<?php
// 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 permit... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/Message.php", "license": "bsd", "size": 75165} |
### File: php/src/Google/Protobuf/Internal/MessageBuilderContext.php
<?php
// 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
// modificati... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/MessageBuilderContext.php", "license": "bsd", "size": 4126} |
### File: php/src/Google/Protobuf/Internal/OneofDescriptor.php
<?php
// 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, ar... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/OneofDescriptor.php", "license": "bsd", "size": 2613} |
### File: php/src/Google/Protobuf/Internal/OneofField.php
<?php
// 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 per... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/OneofField.php", "license": "bsd", "size": 2392} |
### File: php/src/Google/Protobuf/Internal/RawInputStream.php
<?php
// 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... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/RawInputStream.php", "license": "bsd", "size": 1912} |
### File: php/src/Google/Protobuf/Internal/RepeatedField.php
<?php
// 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 ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/RepeatedField.php", "license": "bsd", "size": 8004} |
### File: php/src/Google/Protobuf/Internal/RepeatedFieldIter.php
<?php
// 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, ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/RepeatedFieldIter.php", "license": "bsd", "size": 3351} |
### File: php/src/Google/Protobuf/Internal/TimestampBase.php
<?php
namespace Google\Protobuf\Internal;
/**
* Base class for Google\Protobuf\Timestamp, this contains hand-written
* convenience methods.
*/
class TimestampBase extends \Google\Protobuf\Internal\Message
{
/*
* Converts PHP DateTime to Timestam... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/Internal/TimestampBase.php", "license": "bsd", "size": 763} |
### File: php/src/Google/Protobuf/OneofDescriptor.php
<?php
// 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 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": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/src/Google/Protobuf/OneofDescriptor.php", "license": "bsd", "size": 2643} |
### File: php/tests/autoload.php
<?php
error_reporting(E_ALL);
function getGeneratedFiles($dir, &$results = array())
{
$files = scandir($dir);
foreach ($files as $key => $value) {
$path = realpath($dir.DIRECTORY_SEPARATOR.$value);
if (!is_dir($path)) {
$results[] = $path;
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/tests/autoload.php", "license": "bsd", "size": 549} |
### File: php/tests/bootstrap_phpunit.php
<?php
require_once("vendor/autoload.php");
error_reporting(E_ALL);
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/tests/bootstrap_phpunit.php", "license": "bsd", "size": 69} |
### File: php/tests/compatibility_test.sh
#!/bin/bash
function generate_proto() {
PROTOC1=$1
PROTOC2=$2
rm -rf generated
mkdir generated
$PROTOC1 --php_out=generated proto/test_include.proto
$PROTOC2 --php_out=generated \
-I../../src -I. \
proto/empty/ec... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/protobufsource", "path": "php/tests/compatibility_test.sh", "license": "bsd", "size": 4754} |
### File: php/tests/compile_extension.sh
#!/bin/bash
set -ex
cd $(dirname $0)
../prepare_c_extension.sh
pushd ../ext/google/protobuf
phpize --clean
rm -f configure.in configure.ac
phpize
if [ "$1" = "--release" ]; then
./configure --with-php-config=$(which php-config)
else
# To get debugging symbols in PHP itse... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/protobufsource", "path": "php/tests/compile_extension.sh", "license": "bsd", "size": 437} |
### File: php/tests/gdb_test.sh
#!/bin/bash
php -i | grep "Configuration"
# gdb --args php -dextension=../ext/google/protobuf/modules/protobuf.so `which
# phpunit` --bootstrap autoload.php tmp_test.php
#
# gdb --args php -dextension=../ext/google/protobuf/modules/protobuf.so `which phpunit` --bootstrap autoload.php g... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/protobufsource", "path": "php/tests/gdb_test.sh", "license": "bsd", "size": 668} |
### File: php/tests/generate_protos.sh
#!/bin/bash
set -ex
cd `dirname $0`
rm -rf generated
mkdir -p generated
find proto -type f -name "*.proto"| xargs ../../src/protoc --experimental_allow_proto3_optional --php_out=generated -I../../src -I.
if [ "$1" = "--aggregate_metadata" ]; then
# Overwrite some of the fil... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/protobufsource", "path": "php/tests/generate_protos.sh", "license": "bsd", "size": 548} |
### File: php/tests/memory_leak_test.php
<?php
# phpunit has memory leak by itself. Thus, it cannot be used to test memory leak.
require_once('generated/NoNamespaceEnum.php');
require_once('generated/NoNamespaceMessage.php');
require_once('generated/NoNamespaceMessage/NestedEnum.php');
require_once('generated/NoNames... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/tests/memory_leak_test.php", "license": "bsd", "size": 7166} |
### File: php/tests/multirequest.php
<?php
if (extension_loaded("protobuf")) {
require_once('memory_leak_test.php');
echo "<p>protobuf loaded</p>";
} else {
echo "<p>protobuf not loaded</p>";
}
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/tests/multirequest.php", "license": "bsd", "size": 170} |
### File: php/tests/multirequest.sh
#!/bin/bash
cd $(dirname $0)
set -e
PORT=12345
./compile_extension.sh
nohup php -d protobuf.keep_descriptor_pool_after_request=1 -dextension=../ext/google/protobuf/modules/protobuf.so -S localhost:$PORT multirequest.php 2>&1 &
sleep 1
wget http://localhost:$PORT/multirequest.r... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/protobufsource", "path": "php/tests/multirequest.sh", "license": "bsd", "size": 575} |
### File: php/tests/test.sh
#!/bin/bash
set -ex
cd $(dirname $0)
./generate_protos.sh
./compile_extension.sh
PHP_VERSION=$(php -r "echo PHP_VERSION;")
# Each version of PHPUnit supports a fairly narrow range of PHP versions.
case "$PHP_VERSION" in
7.0.*)
PHPUNIT=phpunit-6.phar
;;
7.1.*|7.2.*)
PHPUN... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/protobufsource", "path": "php/tests/test.sh", "license": "bsd", "size": 2135} |
### File: php/tests/test_base.php
<?php
use Foo\TestMessage;
use Foo\TestEnum;
use Foo\TestMessage\Sub;
class TestBase extends \PHPUnit\Framework\TestCase
{
public function setFields(TestMessage $m)
{
TestUtil::setTestMessage($m);
}
/**
* Polyfill for phpunit6.
*/
static public... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/tests/test_base.php", "license": "bsd", "size": 19279} |
### File: php/tests/test_util.php
<?php
use Foo\TestEnum;
use Foo\TestMessage;
use Foo\TestMessage\Sub;
use Foo\TestPackedMessage;
use Foo\TestUnpackedMessage;
define('MAX_FLOAT_DIFF', 0.000001);
if (PHP_INT_SIZE == 8) {
define('MAX_INT_STRING', '9223372036854775807');
define('MAX_INT_UPPER_STRING', '9223372... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/tests/test_util.php", "license": "bsd", "size": 23222} |
### File: php/tests/undefined_test.php
<?php
require_once('test_util.php');
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBType;
use Foo\TestMessage;
use Foo\TestMessage\Sub;
class UndefinedTest extends PHPUnit_Framework_TestCase
{
/**
* @expectedException PHPUnit_Framework_Err... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "PHP", "repo_name": "minhanghuang/protobufsource", "path": "php/tests/undefined_test.php", "license": "bsd", "size": 21551} |
### File: post_process_dist.sh
#! /bin/sh
# This script takes the result of "make dist" and:
# 1) Unpacks it.
# 2) Ensures all contents are user-writable. Some version control systems
# keep code read-only until you explicitly ask to edit it, and the normal
# "make dist" process does not correct for this, so th... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/protobufsource", "path": "post_process_dist.sh", "license": "bsd", "size": 1836} |
### File: protobuf.bzl
load("@bazel_skylib//lib:versions.bzl", "versions")
load("@rules_cc//cc:defs.bzl", "cc_library")
load("@rules_proto//proto:defs.bzl", "ProtoInfo")
load("@rules_python//python:defs.bzl", "py_library", "py_test")
def _GetPath(ctx, path):
if ctx.label.workspace_root:
return ctx.label.wo... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Starlark", "repo_name": "minhanghuang/protobufsource", "path": "protobuf.bzl", "license": "bsd", "size": 17558} |
### File: protobuf_deps.bzl
"""Load dependencies needed to compile the protobuf library as a 3rd-party consumer."""
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def protobuf_deps():
"""Loads common dependencies needed to compile the protobuf library."""
if not native.existing_rule("ba... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Starlark", "repo_name": "minhanghuang/protobufsource", "path": "protobuf_deps.bzl", "license": "bsd", "size": 3098} |
### File: protoc-artifacts/Dockerfile
FROM centos:6.9
RUN yum install -y git \
tar \
wget \
make \
autoconf \
curl-devel \
unzip \
automake \
libtool \
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Dockerfile", "repo_name": "minhanghuang/protobufsource", "path": "protoc-artifacts/Dockerfile", "license": "bsd", "size": 2156} |
### File: protoc-artifacts/build-protoc.sh
#!/bin/bash
# Builds protoc executable into target/<OS>/<ARCH>/protoc.exe; optionally builds
# protoc plugins into target/<OS>/<ARCH>/protoc-gen-*.exe
#
# Usage: ./build-protoc.sh <OS> <ARCH> <TARGET>
#
# <TARGET> can be "protoc" or "protoc-gen-javalite". Supported <OS> <ARCH... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/protobufsource", "path": "protoc-artifacts/build-protoc.sh", "license": "bsd", "size": 9218} |
### File: protoc-artifacts/build-zip.sh
#!/bin/bash
if [ $# -ne 2 ]; then
cat <<EOF
Usage: $0 <TARGET> <VERSION_NUMBER>
TARGET: protoc | protoc-gen-javalite
Example:
$ $0 protoc 3.0.0
$ $0 protoc-gen-javalite 3.0.0
This script will download pre-built protoc or protoc plugin binaries from maven
repository and ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/protobufsource", "path": "protoc-artifacts/build-zip.sh", "license": "bsd", "size": 3894} |
### File: protoc-artifacts/scl-enable-devtoolset.sh
#!/bin/bash
set -eu -o pipefail
quote() {
local arg
for arg in "$@"; do
printf "'"
printf "%s" "$arg" | sed -e "s/'/'\\\\''/g"
printf "' "
done
}
exec scl enable devtoolset-2 "$(quote "$@")"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/protobufsource", "path": "protoc-artifacts/scl-enable-devtoolset.sh", "license": "bsd", "size": 211} |
### File: python/compatibility_tests/v2.5.0/setup.py
#! /usr/bin/env python
#
import glob
import os
import subprocess
import sys
from setuptools import setup, Extension, find_packages
if sys.version_info[0] == 3:
# Python 3
from distutils.command.build_py import build_py_2to3 as _build_py
else:
# Python 2
fro... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/protobufsource", "path": "python/compatibility_tests/v2.5.0/setup.py", "license": "bsd", "size": 3504} |
### File: python/compatibility_tests/v2.5.0/test.sh
#!/bin/bash
set -ex
# Change to the script's directory.
cd $(dirname $0)
# Version of the tests (i.e., the version of protobuf from where we extracted
# these tests).
TEST_VERSION=2.5.0
# The old version of protobuf that we are testing compatibility against. This
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/protobufsource", "path": "python/compatibility_tests/v2.5.0/test.sh", "license": "bsd", "size": 2393} |
### File: python/compatibility_tests/v2.5.0/tests/__init__.py
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/protobufsource", "path": "python/compatibility_tests/v2.5.0/tests/__init__.py", "license": "bsd", "size": 150} |
### File: python/compatibility_tests/v2.5.0/tests/google/__init__.py
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/protobufsource", "path": "python/compatibility_tests/v2.5.0/tests/google/__init__.py", "license": "bsd", "size": 150} |
### File: python/compatibility_tests/v2.5.0/tests/google/protobuf/__init__.py
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/protobufsource", "path": "python/compatibility_tests/v2.5.0/tests/google/protobuf/__init__.py", "license": "bsd", "size": 150} |
### File: python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/__init__.py
# 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
# modif... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/protobufsource", "path": "python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/__init__.py", "license": "bsd", "size": 1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.