code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeBusinessCardRequest.cc | C++ | apache-2.0 | 1,480 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeBusinessCardResult.cc | C++ | apache-2.0 | 2,496 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeBusinessLicenseRequest.cc | C++ | apache-2.0 | 1,513 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeBusinessLicenseResult.cc | C++ | apache-2.0 | 4,042 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeCharacterRequest.cc | C++ | apache-2.0 | 1,988 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeCharacterResult.cc | C++ | apache-2.0 | 2,517 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeChinapassportRequest.cc | C++ | apache-2.0 | 1,247 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeChinapassportResult.cc | C++ | apache-2.0 | 3,405 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeDriverLicenseRequest.cc | C++ | apache-2.0 | 1,729 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeDriverLicenseResult.cc | C++ | apache-2.0 | 2,513 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeDrivingLicenseRequest.cc | C++ | apache-2.0 | 1,715 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeDrivingLicenseResult.cc | C++ | apache-2.0 | 3,900 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeIdentityCardRequest.cc | C++ | apache-2.0 | 1,689 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeIdentityCardResult.cc | C++ | apache-2.0 | 4,382 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeLicensePlateRequest.cc | C++ | apache-2.0 | 1,480 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeLicensePlateResult.cc | C++ | apache-2.0 | 2,479 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizePassportMRZRequest.cc | C++ | apache-2.0 | 1,229 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizePassportMRZResult.cc | C++ | apache-2.0 | 2,243 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizePoiNameRequest.cc | C++ | apache-2.0 | 1,193 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizePoiNameResult.cc | C++ | apache-2.0 | 2,869 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeQrCodeRequest.cc | C++ | apache-2.0 | 1,364 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeQrCodeResult.cc | C++ | apache-2.0 | 2,627 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeStampRequest.cc | C++ | apache-2.0 | 1,403 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeStampResult.cc | C++ | apache-2.0 | 2,938 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeTableRequest.cc | C++ | apache-2.0 | 2,706 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeTableResult.cc | C++ | apache-2.0 | 3,841 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeTakeoutOrderRequest.cc | C++ | apache-2.0 | 1,238 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeTakeoutOrderResult.cc | C++ | apache-2.0 | 2,068 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeTaxiInvoiceRequest.cc | C++ | apache-2.0 | 1,469 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeTaxiInvoiceResult.cc | C++ | apache-2.0 | 3,208 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeTrainTicketRequest.cc | C++ | apache-2.0 | 1,469 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeTrainTicketResult.cc | C++ | apache-2.0 | 2,067 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeVATInvoiceRequest.cc | C++ | apache-2.0 | 1,449 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeVATInvoiceResult.cc | C++ | apache-2.0 | 6,539 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeVINCodeRequest.cc | C++ | apache-2.0 | 1,417 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeVINCodeResult.cc | C++ | apache-2.0 | 1,424 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeVerificationcodeRequest.cc | C++ | apache-2.0 | 1,274 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/RecognizeVerificationcodeResult.cc | C++ | apache-2.0 | 1,514 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/TrimDocumentRequest.cc | C++ | apache-2.0 | 1,808 |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/TrimDocumentResult.cc | C++ | apache-2.0 | 1,384 |
cmake_minimum_required(VERSION 2.8.2)
set(CMAKE_CXX_STANDARD 11)
include(CTest)
if (CMAKE_VERSION VERSION_LESS 3.2)
set(UPDATE_DISCONNECTED_IF_AVAILABLE "")
else()
set(UPDATE_DISCONNECTED_IF_AVAILABLE "UPDATE_DISCONNECTED 1")
endif()
include(DownloadProject.cmake)
download_project(PROJ googletest... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/CMakeLists.txt | CMake | apache-2.0 | 2,507 |
# Distributed under the OSI-approved MIT License. See accompanying
# file LICENSE or https://github.com/Crascit/DownloadProject for details.
cmake_minimum_required(VERSION 2.8.2)
project(${DL_ARGS_PROJ}-download NONE)
include(ExternalProject)
ExternalProject_Add(${DL_ARGS_PROJ}-download
${DL_ARG... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/DownloadProject.CMakeLists.cmake.in | CMake | apache-2.0 | 644 |
# Distributed under the OSI-approved MIT License. See accompanying
# file LICENSE or https://github.com/Crascit/DownloadProject for details.
#
# MODULE: DownloadProject
#
# PROVIDES:
# download_project( PROJ projectName
# [PREFIX prefixDir]
# [DOWNLOAD_DIR downloadDir]
# ... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/DownloadProject.cmake | CMake | apache-2.0 | 8,043 |
#include "gtest/gtest.h"
#include "alibabacloud/core/AlibabaCloud.h"
using namespace std;
using namespace AlibabaCloud;
TEST(AlibabaCloudTest, basic) {
InitializeSdk();
EXPECT_TRUE(IsSdkInitialized() == true);
InitializeSdk();
EXPECT_TRUE(IsSdkInitialized() == true);
ShutdownSdk();
EXPECT_TRUE(IsSdkInit... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/alibabacloud_ut.cc | C++ | apache-2.0 | 404 |
#include "gtest/gtest.h"
#include "alibabacloud/core/AsyncCallerContext.h"
using namespace std;
using namespace AlibabaCloud;
TEST(AsyncCallerContext, basic) {
const std::string sys_generated_uuid = "643ce9ff-32b5-444c-814a-153b87a6aca8";
const std::string init_uuid = "init_uuid_for_test";
const std::string ne... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/asynccallercontext_ut.cc | C++ | apache-2.0 | 669 |
#include "gtest/gtest.h"
#include "alibabacloud/core/ClientConfiguration.h"
#include "alibabacloud/core/AlibabaCloud.h"
using namespace std;
using namespace AlibabaCloud;
TEST(ClientConfiguration, basic) {
const std::string regionId = "cn-shanghai";
const std::string regionId_new = "cn-beijing";
const std::str... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/clientconfiguration_ut.cc | C++ | apache-2.0 | 1,347 |
#include <iostream>
#include <stdio.h>
#include "gtest/gtest.h"
#include "alibabacloud/core/Utils.h"
#include "alibabacloud/core/Config.h"
#include "alibabacloud/core/AlibabaCloud.h"
#include "alibabacloud/core/CommonClient.h"
#include "alibabacloud/core/CommonResponse.h"
#include "alibabacloud/core/CommonRequest.h"
#... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/commonclient_ut.cc | C++ | apache-2.0 | 9,100 |
#include "gtest/gtest.h"
#include "alibabacloud/core/CommonRequest.h"
using namespace std;
using namespace AlibabaCloud;
TEST(CommonRequest, basic) {
CommonRequest cr;
cr.setDomain("testDomain");
cr.setHeaderParameter("name1", "value1");
cr.setHttpMethod(HttpRequest::Method::Get);
cr.setQueryParameter("nam... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/commonrequest_ut.cc | C++ | apache-2.0 | 818 |
#include "gtest/gtest.h"
#include "alibabacloud/core/CommonResponse.h"
using namespace std;
using namespace AlibabaCloud;
TEST(CommonResponse, basic) {
CommonResponse cres("test_payload_");
EXPECT_TRUE(cres.payload() == "test_payload_");
CommonResponse cres1;
EXPECT_TRUE(cres1.payload() == "");
}
| YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/commonresponse_ut.cc | C++ | apache-2.0 | 310 |
#include <iostream>
#include <stdio.h>
#include "gtest/gtest.h"
#include "alibabacloud/core/CoreClient.h"
using namespace std;
using namespace AlibabaCloud;
namespace AlibabaCloud {
class TestCoreClient : public CoreClient {
public:
TestCoreClient(const std::string & servicename, const ClientConfiguratio... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/coreclient_ut.cc | C++ | apache-2.0 | 1,511 |
#include "gtest/gtest.h"
#include "alibabacloud/core/Credentials.h"
using namespace std;
using namespace AlibabaCloud;
TEST(CredentialsTest, basic) {
const string access_key = "accessKeyId";
const string access_secret = "accessKeySecret";
const string session_token = "sessionToken";
const string new_access_ke... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/credentials_ut.cc | C++ | apache-2.0 | 1,050 |
#include <iostream>
#include <stdio.h>
#include "utils.h"
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "alibabacloud/core/Url.h"
#include "alibabacloud/core/HttpRequest.h"
#include "alibabacloud/core/HttpClient.h"
#include "../src/CurlHttpClient.h"
using namespace std;
using ::testing::_;
using ::testin... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/curlhttpclient_ut.cc | C++ | apache-2.0 | 6,945 |
#include <iostream>
#include <stdio.h>
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "alibabacloud/core/Url.h"
#include "alibabacloud/core/HttpRequest.h"
#include "alibabacloud/core/HttpClient.h"
#include "../src/EcsMetadataFetcher.h"
using namespace std;
using namespace AlibabaCloud;
namespace {
TEST... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/ecsmetadatafetcher_ut.cc | C++ | apache-2.0 | 822 |
#include <iostream>
#include <stdio.h>
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "utils.h"
#include "alibabacloud/core/EndpointProvider.h"
using namespace std;
using namespace AlibabaCloud;
using namespace AlibabaCloud::Location;
using ::testing::_;
using ::testing::DefaultValue;
class mockEndpoint... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/endpointprovider_ut.cc | C++ | apache-2.0 | 5,538 |
#include "gtest/gtest.h"
#include "alibabacloud/core/Error.h"
using namespace std;
using namespace AlibabaCloud;
TEST(Error, basic) {
const std::string error_code = "errorCode";
const std::string error_message = "errorMessage";
const std::string host = "Host";
const std::string request_id = "requestId";
Er... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/error_ut.cc | C++ | apache-2.0 | 1,150 |
#include <iostream>
#include <stdio.h>
#include "gtest/gtest.h"
#include "alibabacloud/core/Runnable.h"
#include "../src/Executor.h"
using namespace std;
using namespace AlibabaCloud;
namespace {
static unsigned int nbr = 0;
static void f0() {
usleep(3000);
nbr |= 0x01;
}
static void f1() {
usleep(3000);
n... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/executor_ut.cc | C++ | apache-2.0 | 1,611 |
#include "gtest/gtest.h"
#include "alibabacloud/core/HmacSha1Signer.h"
#include <openssl/hmac.h>
using namespace std;
using namespace AlibabaCloud;
namespace {
TEST(HmacSha1Signer, assign) {
HmacSha1Signer sig;
string sign = sig.generate("GET&%2F&AccessKeyId%3Dtestid%26Action%3DDescribeRegions"
"%26... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/hmacsha1signer_ut.cc | C++ | apache-2.0 | 1,909 |
#include <iostream>
#include <stdio.h>
#include "gtest/gtest.h"
#include "alibabacloud/core/HttpRequest.h"
using namespace std;
using namespace AlibabaCloud;
TEST(HttpMessage, perRequest) {
const std::string data = "Thu, 19 Oct 2017 04:38:27 GMT";
HttpRequest req;
req.setHeader("accept", "application/xml");
EXP... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/httpmessage_ut.cc | C++ | apache-2.0 | 1,472 |
#include <iostream>
#include <stdio.h>
#include "gtest/gtest.h"
#include "alibabacloud/core/HttpRequest.h"
using namespace std;
using namespace AlibabaCloud;
TEST(HttpRequest, basic) {
const string src = "abc://username:password@example.com:123/path/data?key=value&key2=value2#fragid1";
Url url;
url.setScheme("a... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/httprequest_ut.cc | C++ | apache-2.0 | 1,071 |
#include "gtest/gtest.h"
#include "alibabacloud/core/HttpResponse.h"
using namespace std;
using namespace AlibabaCloud;
TEST(HttpResponse, basic) {
HttpResponse r;
r.setStatusCode(202);
EXPECT_TRUE(r.statusCode() == 202);
Url url;
url.setHost("example.com");
HttpRequest req(url, HttpRequest::Method::Post... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/httpresponse_ut.cc | C++ | apache-2.0 | 411 |
#include <iostream>
#include <stdio.h>
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "alibabacloud/core/InstanceProfileCredentialsProvider.h"
using namespace std;
using namespace AlibabaCloud;
using ::testing::_;
using ::testing::DefaultValue;
class mockInstanceProfileCredentialsProvider: public Instan... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/instanceprofilecredentialsprovider_ut.cc | C++ | apache-2.0 | 1,920 |
#include <iostream>
#include <stdio.h>
#include "gtest/gtest.h"
#include "alibabacloud/core/location/model/DescribeEndpointsRequest.h"
using namespace std;
using namespace AlibabaCloud;
TEST(DescribeEndpointsRequest, basic) {
Location::Model::DescribeEndpointsRequest req;
req.setServiceCode("test-sc");
req.set... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/location_model_describeendpoints_request_ut.cc | C++ | apache-2.0 | 494 |
#include <iostream>
#include <stdio.h>
#include "gtest/gtest.h"
#include "alibabacloud/core/location/model/DescribeEndpointsResult.h"
using namespace std;
using namespace AlibabaCloud;
TEST(DescribeEndpointsResult, basic) {
const string payload = "{\"RequestId\":\"test-request-id\",\"Success\":true,\"Endpoints\":{\... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/location_model_describeendpoints_result_ut.cc | C++ | apache-2.0 | 2,275 |
#include <iostream>
#include <stdio.h>
#include "utils.h"
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "alibabacloud/core/AlibabaCloud.h"
#include "alibabacloud/core/SimpleCredentialsProvider.h"
#include "alibabacloud/core/location/LocationClient.h"
using namespace std;
using namespace AlibabaCloud;
usin... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/locationclient_ut.cc | C++ | apache-2.0 | 9,046 |
#include "gtest/gtest.h"
#include "alibabacloud/core/NetworkProxy.h"
using namespace std;
using namespace AlibabaCloud;
TEST(NetworProxyTest, basic) {
NetworkProxy proxy(NetworkProxy::Http);
proxy.setHostName("abc.com");
proxy.setPassword("myPassword");
proxy.setPort(123);
proxy.setUser("tester");
EXPECT... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/networkproxy_ut.cc | C++ | apache-2.0 | 629 |
#include <iostream>
#include <stdio.h>
#include "gtest/gtest.h"
#include "alibabacloud/core/SimpleCredentialsProvider.h"
#include "alibabacloud/core/RoaServiceClient.h"
#include "alibabacloud/core/HttpMessage.h"
#include "alibabacloud/core/HttpRequest.h"
using namespace std;
using namespace AlibabaCloud;
namespace Al... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/roaserviceclient_ut.cc | C++ | apache-2.0 | 4,045 |
#include "gtest/gtest.h"
#include "alibabacloud/core/RoaServiceRequest.h"
using namespace std;
using namespace AlibabaCloud;
TEST(test_RoaServiceRequest, basic) {
const string product = "ECS";
const string version = "1.0";
RoaServiceRequest roa(product, version);
EXPECT_TRUE(roa.version() == version);
EXP... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/roaservicerequest_ut.cc | C++ | apache-2.0 | 359 |
#include <iostream>
#include <stdio.h>
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "alibabacloud/core/SimpleCredentialsProvider.h"
#include "alibabacloud/core/RpcServiceClient.h"
#include "alibabacloud/core/HttpMessage.h"
#include "alibabacloud/core/HttpClient.h"
#include "alibabacloud/core/HttpRequest.h... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/rpcserviceclient_ut.cc | C++ | apache-2.0 | 5,813 |
#include <iostream>
#include <stdio.h>
#include "gtest/gtest.h"
#include "alibabacloud/core/RpcServiceRequest.h"
using namespace std;
using namespace AlibabaCloud;
TEST(test_RpcServiceRequest, basic) {
const string product = "ECS";
const string version = "1.0";
const string action = "testAction";
RpcServiceRe... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/rpcservicerequest_ut.cc | C++ | apache-2.0 | 559 |
#include <iostream>
#include <stdio.h>
#include "gtest/gtest.h"
#include "alibabacloud/core/Runnable.h"
using namespace std;
using namespace AlibabaCloud;
static int nbr = 0;
void foo() {
nbr = 1;
}
// there should be no exception
TEST(Runnable, basic) {
std::function<void()> func(foo);
Runnable f(func);
EX... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/runnable_ut.cc | C++ | apache-2.0 | 379 |
#include <iostream>
#include <stdio.h>
#include <string.h>
#include "gtest/gtest.h"
#include "alibabacloud/core/ServiceRequest.h"
#include "alibabacloud/core/AlibabaCloud.h"
using namespace std;
using namespace AlibabaCloud;
namespace {
class TestServiceRequest: public ServiceRequest {
public:
explicit Test... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/servicerequest_ut.cc | C++ | apache-2.0 | 3,330 |
#include <iostream>
#include <stdio.h>
#include "gtest/gtest.h"
#include "alibabacloud/core/ServiceResult.h"
using namespace std;
using namespace AlibabaCloud;
namespace AlibabaCloud{
class myServiceResult: public ServiceResult {
public:
myServiceResult(){}
void setRequestId(const string request_id) {
... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/serviceresult_ut.cc | C++ | apache-2.0 | 692 |
#include "gtest/gtest.h"
#include "alibabacloud/core/Signer.h"
using namespace std;
using namespace AlibabaCloud;
namespace {
TEST(Signer, basic) {
HmacSha1Signer sig;
string sign = sig.generate("GET&%2F&AccessKeyId%3Dtestid%26Action%3DDescribeRegions"
"%26Format%3DXML%26RegionId%3Dregion1%26Signat... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/signer_ut.cc | C++ | apache-2.0 | 1,084 |
#include "gtest/gtest.h"
#include "alibabacloud/core/Credentials.h"
#include "alibabacloud/core/sts/StsClient.h"
#include "alibabacloud/core/SimpleCredentialsProvider.h"
using namespace std;
using namespace AlibabaCloud;
TEST(SimpleCredentialsProvider, basic) {
const string access_key = "accessKeyId";
const stri... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/simplecredentialsprovider_ut.cc | C++ | apache-2.0 | 791 |
#include <iostream>
#include <stdio.h>
#include "gtest/gtest.h"
#include "alibabacloud/core/sts/model/AssumeRoleRequest.h"
using namespace std;
using namespace AlibabaCloud;
TEST(AssumeRoleRequest, basic) {
const string policy = "test_policy";
const string role_arn = "test_role_arn";
const string role_session_n... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/sts_model_assumerole_request_ut.cc | C++ | apache-2.0 | 705 |
#include <iostream>
#include <stdio.h>
#include "gtest/gtest.h"
#include "alibabacloud/core/sts/model/AssumeRoleResult.h"
using namespace std;
using namespace AlibabaCloud;
TEST(AssumeRoleResult, basic) {
const string payload = "{\"RequestId\":\"a-b-c-d\",\"AssumedRoleUser\":{\"AssumedRoleId\":\"test_assumed_role_i... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/sts_model_assumerole_result_ut.cc | C++ | apache-2.0 | 1,611 |
#include <iostream>
#include <stdio.h>
#include "gtest/gtest.h"
#include "alibabacloud/core/sts/model/GetCallerIdentityRequest.h"
using namespace std;
using namespace AlibabaCloud;
TEST(GetCallerIdentityRequest, basic) {
Sts::Model::GetCallerIdentityRequest req;
EXPECT_TRUE(req.actionName() == "GetCallerIdentity"... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/sts_model_getcalleridentity_request_ut.cc | C++ | apache-2.0 | 325 |
#include <iostream>
#include <stdio.h>
#include "gtest/gtest.h"
#include "alibabacloud/core/sts/model/GetCallerIdentityResult.h"
using namespace std;
using namespace AlibabaCloud;
TEST(GetCallerIdentityResult, basic) {
const string payload = "{\"Request\":\"test-request-id\",\"AccountId\":\"test_account_id\",\"Arn\... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/sts_model_getcalleridentity_result_ut.cc | C++ | apache-2.0 | 842 |
#include <iostream>
#include <stdio.h>
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "alibabacloud/core/AlibabaCloud.h"
#include "alibabacloud/core/sts/StsClient.h"
#include "alibabacloud/core/StsAssumeRoleCredentialsProvider.h"
using namespace std;
using namespace AlibabaCloud;
using namespace AlibabaClo... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/stsassumerolecredentialsprovider_ut.cc | C++ | apache-2.0 | 2,395 |
#include <iostream>
#include <stdio.h>
#include "utils.h"
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "alibabacloud/core/AlibabaCloud.h"
#include "alibabacloud/core/SimpleCredentialsProvider.h"
#include "alibabacloud/core/sts/StsClient.h"
using ::testing::_;
using ::testing::DefaultValue;
using namespa... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/stsclient_ut.cc | C++ | apache-2.0 | 9,280 |
#include <iostream>
#include <stdio.h>
#include "gtest/gtest.h"
#include "alibabacloud/core/Utils.h"
#include "alibabacloud/core/Config.h"
#include "alibabacloud/core/AlibabaCloud.h"
#include "alibabacloud/core/CommonClient.h"
#include "alibabacloud/core/CommonResponse.h"
#include "alibabacloud/core/CommonRequest.h"
#... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/timeout_ut.cc | C++ | apache-2.0 | 12,160 |
#include "gtest/gtest.h"
#include "alibabacloud/core/Url.h"
using namespace std;
using namespace AlibabaCloud;
namespace {
TEST(UrlTest, assign) {
const string src = "abc://username:password@example.com:123/path/data?key=value&key2=value2#fragid1";
Url url;
url.setScheme("abc");
url.setUserName("use... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/url_ut.cc | C++ | apache-2.0 | 3,684 |
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#ifdef _WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif
class utUtils {
public:
void get_dir_exec(char* dir, char* exec) {
#ifdef _WIN32
char BufferFileName[MAX_PATH];
memset(BufferFileName,0,MAX_PATH);
if (GetModuleFileName(NULL, BufferFi... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/utils.h | C++ | apache-2.0 | 1,400 |
#include "gtest/gtest.h"
#include "alibabacloud/core/Utils.h"
#include <stdlib.h>
using namespace std;
using namespace AlibabaCloud;
namespace {
TEST(UtilsTest, ComputeContentMD5) {
const std::string src = "abc://username:password@example.com:123/path/data?key=value&key2=value2#fragid1";
const std::string m... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/core/utils_ut.cc | C++ | apache-2.0 | 3,628 |
cmake_minimum_required(VERSION 2.8.2)
set(CMAKE_CXX_STANDARD 11)
include(CTest)
if (CMAKE_VERSION VERSION_LESS 3.2)
set(UPDATE_DISCONNECTED_IF_AVAILABLE "")
else()
set(UPDATE_DISCONNECTED_IF_AVAILABLE "UPDATE_DISCONNECTED 1")
endif()
include(DownloadProject.cmake)
download_project(PROJ googletest... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/function_test/core/CMakeLists.txt | CMake | apache-2.0 | 1,570 |
# Distributed under the OSI-approved MIT License. See accompanying
# file LICENSE or https://github.com/Crascit/DownloadProject for details.
cmake_minimum_required(VERSION 2.8.2)
project(${DL_ARGS_PROJ}-download NONE)
include(ExternalProject)
ExternalProject_Add(${DL_ARGS_PROJ}-download
${DL_ARG... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/function_test/core/DownloadProject.CMakeLists.cmake.in | CMake | apache-2.0 | 644 |
# Distributed under the OSI-approved MIT License. See accompanying
# file LICENSE or https://github.com/Crascit/DownloadProject for details.
#
# MODULE: DownloadProject
#
# PROVIDES:
# download_project( PROJ projectName
# [PREFIX prefixDir]
# [DOWNLOAD_DIR downloadDir]
# ... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/function_test/core/DownloadProject.cmake | CMake | apache-2.0 | 8,043 |
#include <iostream>
#include <stdio.h>
#include <algorithm>
#include "../utils.h"
#include "gtest/gtest.h"
#include "alibabacloud/core/AlibabaCloud.h"
#include "alibabacloud/core/SimpleCredentialsProvider.h"
#include "alibabacloud/core/location/LocationClient.h"
using namespace std;
using namespace AlibabaCloud;
using... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/function_test/core/locationclient_ft.cc | C++ | apache-2.0 | 7,622 |
cmake_minimum_required(VERSION 3.0)
project(demo)
set(CMAKE_CXX_STANDARD 11)
if(CMAKE_HOST_WIN32)
include_directories("C:\\Program Files (x86)\\alibabacloud-sdk\\include")
link_directories("C:\\Program Files (x86)\\alibabacloud-sdk\\lib")
endif()
# note ft_build is the dir you build sdk
include_directories(".... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/function_test/nlp/CMakeLists.txt | CMake | apache-2.0 | 729 |
#include <iostream>
#include <cstdlib>
#include <cstring>
#include "gtest/gtest.h"
#include "../utils.h"
#include "alibabacloud/core/AlibabaCloud.h"
#include "alibabacloud/core/CommonClient.h"
#include "alibabacloud/core/HttpRequest.h"
using namespace std;
using namespace AlibabaCloud;
namespace {
TEST(nlp, wordsegm... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/function_test/nlp/nlp_wordsegment_ft.cc | C++ | apache-2.0 | 6,557 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif
class utUtils {
public:
void get_dir_exec(char *dir, char *exec) {
#ifdef _WIN32
char BufferFileName[MAX_PATH];
memset(BufferFileName, 0, MAX_PATH);
if (GetModuleFileName(NULL, B... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/function_test/utils.h | C++ | apache-2.0 | 1,436 |
'use strict';
const express = require('express');
const bodyParser = require('body-parser');
const app = express();
app.listen(8021);
app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.text({ type: 'text/html' }))
app.use(bodyParser.raw({ type: 'application/vnd.custom-type' }))
app.use(bodyParser... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/test/httpserver/http_test_server.js | JavaScript | apache-2.0 | 1,339 |
#!/bin/bash
cd `dirname $0`
echo '-------build unit test----------'
echo 'start a test http server'
NODE=`which nodejs`
if [ "$NODE" ]
then
echo ''
else
NODE=`which node`
fi
echo 'node binary path: ' $NODE
server=`ps -ef | grep http_test_server | grep -v grep`
echo "check server: " $server
if [ "$server" ]
then
... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/aliyun-openapi/unit_test.sh | Shell | apache-2.0 | 843 |
/*
* Copyright (C) 2021-2023 Alibaba Group Holding Limited
*/
#include <iostream>
#include <string.h>
#include "alibabacloud/core/AlibabaCloud.h"
#include "alibabacloud/core/CommonClient.h"
#include "model/common.h"
extern "C" {
using namespace std;
using namespace AlibabaCloud;
/*recognizing identity card has iss... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/chatbot.cc | C++ | apache-2.0 | 2,050 |
#include <iostream>
#include "alibabacloud/core/AlibabaCloud.h"
#include "alibabacloud/core/CommonClient.h"
#include "alibabacloud/core/Utils.h"
#include "ucloud_ai_common.h"
#include <ulog/ulog.h>
extern "C" {
using namespace std;
using namespace AlibabaCloud;
static string accessKey;
static string accessSecret;
#d... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/common.cc | C++ | apache-2.0 | 3,289 |
#include <iostream>
#include "alibabacloud/core/AlibabaCloud.h"
#include "alibabacloud/facebody/FacebodyClient.h"
#include "alibabacloud/core/CommonClient.h"
#include "model/common.h"
extern "C" {
using namespace std;
using namespace AlibabaCloud;
using namespace AlibabaCloud::Facebody;
int compareFace(char *urlA, ch... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/facebody.cc | C++ | apache-2.0 | 8,610 |
#include <iostream>
#include "alibabacloud/core/AlibabaCloud.h"
#include "alibabacloud/imageenhan/ImageenhanClient.h"
#include "alibabacloud/core/CommonClient.h"
#include "model/common.h"
extern "C" {
using namespace std;
using namespace AlibabaCloud;
using namespace AlibabaCloud::Imageenhan;
int erasePerson(char *im... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/imageenhan.cc | C++ | apache-2.0 | 3,575 |
#include <iostream>
#include "alibabacloud/core/AlibabaCloud.h"
#include "alibabacloud/imagerecog/ImagerecogClient.h"
#include "alibabacloud/core/CommonClient.h"
#include "model/common.h"
extern "C" {
using namespace std;
using namespace AlibabaCloud;
using namespace AlibabaCloud::Imagerecog;
int classifyingRubbish(c... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/imagerecog.cc | C++ | apache-2.0 | 4,488 |
#include <iostream>
#include "alibabacloud/core/AlibabaCloud.h"
#include "alibabacloud/imageseg/ImagesegClient.h"
#include "alibabacloud/core/CommonClient.h"
#include "model/common.h"
extern "C" {
using namespace std;
using namespace AlibabaCloud;
using namespace AlibabaCloud::Imageseg;
int segmentCommonImage(char *u... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/imageseg.cc | C++ | apache-2.0 | 4,023 |
#include <iostream>
#include "alibabacloud/core/AlibabaCloud.h"
#include "alibabacloud/objectdet/ObjectdetClient.h"
#include "alibabacloud/core/CommonClient.h"
#include "model/common.h"
extern "C" {
using namespace std;
using namespace AlibabaCloud;
using namespace AlibabaCloud::Objectdet;
int detectObject(char *url,... | YifuLiu/AliOS-Things | components/ucloud_ai/src/model/objectdet.cc | C++ | apache-2.0 | 4,443 |