text
stringlengths
7
961k
#include <sstream> #include <gtest/gtest.h> #include <hello/hello.h> using namespace hello; TEST(hello, hello) { std::stringstream ss; greet(ss); ASSERT_EQ("Hello, world", ss.str()); }
#include "core_include/api.h" #include "core_include/rect.h" #include "core_include/resource.h" #include "core_include/word.h" #include "core_include/cmd_target.h" #include "core_include/wnd.h" #include "core_include/surface.h" #include "../gui_include/button.h" #include "../gui_include/my_resource.h" #include "../gui_...
#include "json2yson.h" #include <library/cpp/yson/parser.h> #include <library/cpp/yson/json/json_writer.h> #include <library/cpp/yson/json/yson2json_adapter.h> namespace NJson2Yson { static void WriteJsonValue(const NJson::TJsonValue& jsonValue, NYT::TYson2JsonCallbacksAdapter* adapter) { switch (jsonValu...
/* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
#include "stdafx.h" #include "../DataAcquisition/DoubleBufferHandler.h" using namespace Microsoft::VisualStudio::CppUnitTestFramework; namespace DataAcquisitionTests { TEST_CLASS(DoubleBufferHandlerTests) { public: TEST_METHOD(GetBufferWithSizeOf_ShuldReturnNull_WhenTheBufferDoesNotHaveEnoughValues) { int ...
#pragma once #include <ATen/ATen.h> namespace torch_ipex { namespace autocast { at::Tensor conv2d(const at::Tensor& input, const at::Tensor& weight, const c10::optional<at::Tensor>& bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, int64_t groups); at::Tensor conv3d(const at::Tens...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__new_free_wchar_t_73a.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_free.label.xml Template File: sources-sinks-73a.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Routines ...
/* * LogSystemPeekCursor.actor.cpp * * This source file is part of the FoundationDB open source project * * Copyright 2013-2018 Apple Inc. and the FoundationDB project authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. ...
/* * Copyright 2014-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
#include "client.hh" #include "face_registry.hh" #include "context.hh" #include "buffer_manager.hh" #include "buffer_utils.hh" #include "file.hh" #include "remote.hh" #include "option.hh" #include "option_types.hh" #include "client_manager.hh" #include "command_manager.hh" #include "event_manager.hh" #include "user_in...
#include "../src/MicroCore.h" #include "../src/CurrentBlockchainStatus.h" #include "../src/ThreadRAII.h" #include "gmock/gmock.h" #include "gtest/gtest.h" #include "helpers.h" #include "mocks.h" namespace { class BCSTATUS_TEST : public ::testing::TestWithParam<network_type> { public: static void SetUpT...
#include "Stopwatch.h" Stopwatch::Stopwatch(ClockBase& clock, bool running) : _clock(clock), _timeBuffer(0), _running(running) { if (_running) start(); } void Stopwatch::start() { if (_running) return; _running = true; _clock.restart(); } void Stopwatch::pause() { if (!_running) return; _running = false; _...
// // Created by chenqwwq on 2022/5/31. // #include "iostream" using namespace std; typedef long long ll; int attack[101]; bool check(int n, ll k, ll h) { ll ans = 0; for (int i = 0; i < n - 1; ++i) { ans += min(ll(attack[i + 1] - attack[i]), k); } return ans + k >= h; } int main() { i...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "cff.h" #include <cstring> #include <utility> #include <vector> #include "maxp.h" #include "cff_type2_charstring.h" // CFF - PostScript fo...
/* * NiFpgaState.cpp * * Created on: Jul 18, 2014 * Author: localadmin */ #include <ChipObject/NiFpgaState.h> #include "ChipObject/tDIOImpl.h" #include "ChipObject/tAIImpl.h" #include "ChipObject/tSolenoidImpl.h" #include "ChipObject/tGlobalImpl.h" #include "ChipObject/tEncoderImpl.h" #include "ChipObject/tAccu...
#include "examples/opengl3/opengl3_adaptor.h" #include <stddef.h> #include <cstdlib> #include <sys/stat.h> #include <algorithm> #include "lodepng/lodepng.h" namespace Chimera { std::atomic<bool> gQuitting; GLuint gUniformLocationProjMatrix; GLuint gAttribLocationPosition; GLuint gAttribLocationUV; GLuint gAttribLo...
// Copyright 2016 Chirstopher Torres (Raven), L3nn0x // // 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 by applicable ...
class Solution { public: vector<int> temp; vector<vector<int>> ans; vector<vector<int>> combine(int n, int k) { dfs(1, n, k); return ans; } void dfs(int cur, int n, int k){ if(temp.size() + (n - cur + 1) < k){ return; } if(temp.size() == k){ ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE690_NULL_Deref_From_Return__w32_wfopen_84a.cpp Label Definition File: CWE690_NULL_Deref_From_Return.fclose.label.xml Template File: source-sinks-84a.tmpl.cpp */ /* * @description * CWE: 690 Unchecked Return Value To NULL Pointer * BadSource: w32_wfopen Open data with ...
/* * * Copyright (c) 2020 Project CHIP Authors * Copyright (c) 2018 Nest Labs, Inc. * 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 * * ...
/* Open Asset Import Library (assimp) ---------------------------------------------------------------------- Copyright (c) 2006-2012, assimp team All rights reserved. Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following condition...
#include <string> #include "gmock/gmock.h" #include "mapp/filesystem/fs.hpp" #include "mapp/services/service.hpp" #include "mymodule.cpp" using namespace mapp::core::services; using namespace mapp::core::filesystem; /** * \brief A coverage test for \ref mapp::algorithm::mymodule. */ TEST(mapp_mymodule_coverage, t...
#include <string> #include <vector> #include <iostream> #include <sstream> #include <cstdlib> #include "aoc_day_1.h" #include "file_utils.h" using namespace std; AocDay1::AocDay1():AocDay(1) { } AocDay1::~AocDay1() { } vector<long> AocDay1::read_input(string filename) { FileUtils fileutils; vector<string> ...
#include "introduce.hpp" #include "select.hpp" po::variables_map parse_introduce_command(po::parsed_options parsed) { uint32_t num_cores = tbb::task_scheduler_init::default_num_threads(); uint32_t num_threads; std::string num_threads_message = "Number of threads to use when possible [DEFAULT uses all avai...
// Copyright (C) 2009-2011 NICTA (www.nicta.com.au) // Copyright (C) 2009-2011 Conrad Sanderson // // This file is part of the Armadillo C++ library. // It is provided without any warranty of fitness // for any purpose. You can redistribute this file // and/or modify it under the terms of the GNU // Lesser General Pub...
// Copyright (c) 2011-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <test/data/tx_invalid.json.h> #include <test/data/tx_valid.json.h> #include <test/test_connex.h> #include <clientve...
// Copyright (c) 2020 PaddlePaddle Authors. 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...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrCCCoverageProcessor.h" #include "GrGpuCommandBuffer.h" #include "GrOpFlushState.h" #include "SkMakeUnique.h" #include "ccpr/GrCCConicShader.h" #include "ccpr/GrCC...
// // Copyright © 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #include "ResizeBilinearLayer.hpp" #include "LayerCloneBase.hpp" #include <armnn/TypesUtils.hpp> #include <backendsCommon/DataLayoutIndexed.hpp> #include <backendsCommon/WorkloadData.hpp> #include <backendsCommon/WorkloadFactory.h...
// ---------------------------------------------------------------------------- // - Open3D: www.open3d.org - // ---------------------------------------------------------------------------- // The MIT License (MIT) // // Copyright (c) 2018 www.open3d.org // // Permissio...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using pii = pair<int, int>; #define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i) #define all(x) (x).begin(),(x).end() #define m0(x) memset(x,0,sizeof(x)) int dx4[4] = {1,0,-1,0}, dy4[4] = {0,1,0,-1}; int main() { ...
// Copyright 2017 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "xfa/fxfa/parser/cxfa_speak.h" #include "fxjs/xfa/cjx_speak.h" #incl...
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without m...
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE126_Buffer_Overread__new_wchar_t_memcpy_13.cpp Label Definition File: CWE126_Buffer_Overread__new.label.xml Template File: sources-sink-13.tmpl.cpp */ /* * @description * CWE: 126 Buffer Over-read * BadSource: Use a small buffer * GoodSource: Use a large buffer * S...
#include <SDL2/SDL_mixer.h> #include "soundstructs.hpp" namespace ice { namespace sound { Effect::~Effect() { if (pChunk_) { Mix_FreeChunk(pChunk_); pChunk_ = nullptr; } } void Effect::Play() { if (!pChunk_) return; Mix_PlayChannelTimed(-1, pChunk_, 0, -1); } void Effect::SetVolu...
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include <PhysX_precompiled.h> #include "ColliderBoxMode.h" #include <AzToolsFramework/Manipulato...
/* -- MAGMA (version 2.5.4) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date October 2020 @precisions mixed zc -> ds */ #include "magma_internal.h" /***************************************************************************//** ...
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2016-2017 Oracle and/or its affiliates. // Contributed and/or modified by Vissarion Fisikopoulos, on behalf of Oracle // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle // Use, modification and distribution is subject to the Bo...
#include "gtest/gtest.h" #include "MVector.h" TEST(MVectorTest, addition) { MVector a(1, 4, 7), b(2, 5, 8); a = a + b; MVector c(3, 9, 15); ASSERT_TRUE(a == c); } TEST(MVectorTest, subtraction) { MVector a(1, 4, 7), b(2, 5, 8); a = a - b; MVector c(-1, -1, -1); ASSERT_TRUE(a == c); } ...
#include "./Build_VERSION_CODES.hpp" namespace android::os { // Fields jint Build_VERSION_CODES::BASE() { return getStaticField<jint>( "android.os.Build$VERSION_CODES", "BASE" ); } jint Build_VERSION_CODES::BASE_1_1() { return getStaticField<jint>( "android.os.Build$VERSION_CODES", "BASE_1_1" ...
#include<iostream> #include "FIFO.h"; using namespace std; FIFO::FIFO () { cout << "Enter a number of elements: "; cin >> N; array = new int[N]; for (int i = 0; i < N; i++) { array[i] = 0; } temp = -1; } void FIFO::push(int value) { temp ++; if (temp > 0) { for(int j = temp; j > 0; j--) { ar...
#include <tdme/engine/subsystems/rendering/Object3DGroup.h> #include <map> #include <string> #include <vector> #include <tdme/engine/Engine.h> #include <tdme/engine/fileio/textures/Texture.h> #include <tdme/engine/model/Face.h> #include <tdme/engine/model/FacesEntity.h> #include <tdme/engine/model/Group.h> #include <...
/* * Copyright 2004-2006 Intel Corporation * * 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...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpc/blockchain.h" #include "amount.h" #include "chain.h" #include "chainpar...
/* ****************************************************************** ** ** OpenSees - Open System for Earthquake Engineering Simulation ** ** Pacific Earthquake Engineering Research Center ** ** ** ** ...
// Copyright 2019 The Fuchsia Authors // // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT #include <lib/unittest/unittest.h> #include <arch/arch_ops.h> #include <arch/mp.h> #include <fbl/alloc_checker.h> #include <kerne...
// // Created by keega on 9/17/2021. // #include "sim/search/Action.h" #include <functional> using namespace sts; search::Action::Action(std::uint32_t bits) : bits(bits) {} search::Action::Action(search::ActionType actionType) : bits(static_cast<int>(actionType) << 29) {} search::Action::Action(search::ActionType a...
/* Q Light Controller - Unit tests chaserstep_test.cpp Copyright (C) Heikki Junnila 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.txt...
/* * Copyright 2006 Sony Computer Entertainment Inc. * * Licensed under the MIT Open Source License, for details please see license.txt or the website * http://www.opensource.org/licenses/mit-license.php * */ #include <dae.h> #include <dae/daeMetaCMPolicy.h> daeMetaCMPolicy::~daeMetaCMPolicy() { for( size_t i = 0; i...
#include <iostream> #include <functional> class A { public: void fun_3(int k,int m) { std::cout << "print: k = "<< k << ", m = " << m << std::endl; } }; void fun_1(int x,int y,int z) { std::cout << "print: x = " << x << ", y = " << y << ", z = " << z << std::endl; } void fun_2(int &a,int &b) { ++a; ++b...
#include <string.h> #include <Arduino.h> #include <SPI.h> #if not defined (_VARIANT_ARDUINO_DUE_X_) && not defined (_VARIANT_ARDUINO_ZERO_) && not defined(__SAMD51__) #include <SoftwareSerial.h> #endif #include "Adafruit_BLE.h" #include "Adafruit_BluefruitLE_SPI.h" #include "Adafruit_BluefruitLE_UART.h" #define PA...
#include <iostream> #include "./views/occt_view.h" #include <Message.hxx> #include <Message_Messenger.hxx> #include <Message_PrinterSystemLog.hxx> #include <OSD_MemInfo.hxx> #include <OSD_Parallel.hxx> #include <emscripten.h> #include <emscripten/html5.h> #include <emscripten/bind.h> //! Dummy main loop callback fo...
#pragma once class GLFWwindow; class Window { public: Window(const char* title, unsigned int width, unsigned int height); ~Window(); void update(); void close(); void setResizeCallback(void(*cb)(GLFWwindow*, int, int)); GLFWwindow* getWindowPtr(); unsigned int getWidth() const; unsigned int getHeig...
/**************************************************************************** Copyright (c) 2021 pietrofeng Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without l...
//------------------------------------------------------------------------------ // // Copyright 2018-2020 Fetch.AI Limited // // 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 // // ...
/**************************************************************************** * * Copyright (c) 2012-2015 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Red...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/batch/model/DescribeComputeEnvironmentsRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Batch::Model; using namespace Aws::Utils::Json...
// Copyright (c) 2007-2014 Hartmut Kaiser // Copyright (c) 2014 Grant Mercer // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #if !defined(HPX_PARALLEL_MOVE_JUN_28_2014_0827AM) #define HPX_PARALLEL_MOVE_JUN_2...
// 18/03/14 = Wed // Exercise 14.34: Define a function-object class to perform an if-then-else operation: The call operator for this class should take three parameters. It should test its first parameter and if that test succeeds, it should return its second parameter; otherwise, it should return its third parameter. ...
// Copyright (C) 2009-2012 Lorenzo Caminiti // Distributed under the Boost Software License, Version 1.0 // (see accompanying file LICENSE_1_0.txt or a copy at // http://www.boost.org/LICENSE_1_0.txt) // Home at http://www.boost.org/libs/local_function #include <boost/config.hpp> #ifdef BOOST_NO_VARIADIC_MACROS # er...
// Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. #include <vector> #include <utility> #include <functional> #include <unordered_map> #include <cmath> using namespace std; struct Point { int x; int y; Point() : x(0), y(0) { } Point(int a, int b) : ...
#include <cstdlib> #include <sys/types.h> extern "C" { int getrusage(int who, struct rusage* usage) { std::abort(); return 0; } void* mmap(void* addr, size_t length, int prot, int flags, int fd, off_t offset) { std::abort(); return nullptr; } int mlock(const void* ...
#include <myconfig.h> MyConfig g_config; // no need for logBlacklist["all"] as it's virtually set by default // purpose of logBlacklist[...]: if logWhitelist["all"] = true, then logBlacklist[...] disables a particular section MyConfig::MyConfig() { logWhitelist["all"] = false; // special case that enables all loggi...
/* * Copyright (c) 2020, The OpenThread Authors. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright * notice, this ...
// unit-test-rtti.cpp #include "../../source/core/slang-rtti-info.h" #include "tools/unit-test/slang-unit-test.h" using namespace Slang; namespace { // anonymous struct SomeStruct { int a = 0; float b = 2.0f; String s; List<String> list; static const StructRttiInfo g_rttiInfo; }; } // anonym...
// // Created by twome on 30/05/2020. // #include <crystal/io/XmlGuiLoader.h> #include <crystal/components/Button.h> #include <crystal/CrystalUI.h> #include "MainMenuScreen.h" #include "../NextCraft.h" MainMenuScreen::MainMenuScreen() : Screen("mainMenuScreen") { crystal::XmlGuiLoader::load(this, "assets/screens/...
/* * The MIT License (MIT) * * Copyright (c) 2017 Sylko Olzscher * */ #include "reader.h" #include "driver.h" #include <cyng/docscript/parser.h> #include <cyng/parser/bom_parser.h> #include <boost/algorithm/string.hpp> #include <iostream> namespace cyng { namespace docscript { reader::reader(driver...
// // Generated file. Do not edit. // // clang-format off #include "generated_plugin_registrant.h" #include <bitsdojo_window_linux/bitsdojo_window_plugin.h> #include <desktop_drop/desktop_drop_plugin.h> #include <maps_launcher/maps_launcher_plugin.h> #include <objectbox_flutter_libs/objectbox_flutter_libs_plugin.h>...
// Copyright (c) 2019 Ste||ar Group // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #pragma once #include <hpx/config.hpp> #include <hpx/serialization/config/defines.hpp>...
// // Emulator - Simple C64 emulator // Copyright (C) 2003-2016 Michael Fink // /// \file Common.hpp Commonly used functions // #pragma once // includes /// creates a 16-bit word from two bytes, in little endian order WORD LE2WORD(BYTE bLow, BYTE bHigh); /// returns bit from value inline bool GetBit(BYTE value, BYTE...
#include "s1apContextManager/s1apContextWrapper_c.h" #include "s1apContextManager/s1apContextWrapper.h" extern "C" { uint32_t createControlBlock() { return createControlBlock_cpp(); } uint32_t findControlBlockWithEnbId( uint32_t enbId) { ret...
/* Copyright 2020-2021 The Silkworm Authors 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 by applicable law or agree...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "db.h" #include "net.h" #include "init.h" #include "addrman.h" #include "...
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. // // Copyright (C) 2018 Intel Corporation #ifndef __OPENCV_GAPI_PRECOMP_HPP__ #define __OPENCV_GAPI_PRECOMP_HPP__ #if !def...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/codebuild/model/UpdateProjectRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::CodeBuild::Model; using namespace Aws::Utils::Json; usin...
// Copyright 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can // be found in the LICENSE file. #include "native_client/src/trusted/plugin/nexe_arch.h" namespace { // The list of supported ISA strings for ARM. See issue: // http://code.google.com...
/* Sirikata * JSInvokableUtil.cpp * * Copyright (c) 2011, Ewen Cheslack-Postava * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistributions of source code must retain th...
// // ssl/detail/openssl_types.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2011 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef ASI...
// Copyright (c) 2016 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "brave/utility/importer/chrome_importer.h" #include <memory> #include <string> #include "brave/utility/importer/brave_external_process_importer_bridge.h" #include "base/file...
/** * @file log.cpp * @brief implement about log */ #include "cc/silo/include/log.h" namespace ccbench { void Log::LogHeader::init() { checksum_ = 0; log_rec_num_ = 0; } void Log::LogHeader::compute_two_complement_of_checksum() { checksum_ ^= mask_full_bits_uint; ++checksum_; } unsigned int Log:...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "alert.h" #include "checkpoints.h" #include "db.h" #include "txdb.h" #inc...
// // VisionFeaturePrintValidator.cpp // mlmodel // // Created by Tao Jia on 4/3/18. // Copyright © 2018 Apple Inc. All rights reserved. // #include "../Result.hpp" #include "Validators.hpp" #include "ValidatorUtils-inl.hpp" #include "../../build/format/Model.pb.h" namespace CoreML { template <> Result v...
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
/************************************************************************* * * REALM CONFIDENTIAL * __________________ * * [2011] - [2012] Realm Inc * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of Realm Incorporated and its suppliers, * if any. The int...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/appmesh/model/WeightedTarget.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namesp...
version https://git-lfs.github.com/spec/v1 oid sha256:94e17affa900dbf9a5c2052a8abc868a9d47fd2e0b580411e7541c4d6db2c0ca size 1854
#include "../include/Player.h" #include <stdio.h> /* "Copyright [2018] <Pedro>" */ extern Jogo* jogo; /**Construtor da classe Player * ------------------------- * Seta todos os atributos para os valores inciais, e os pontos para 0 */ Player::Player() { pedregulho = RECURSO_INICIAL; celulose = RECURSO_INICI...
// ====================================================================== // \title TestTlm/test/ut/TesterBase.cpp // \author Auto-generated // \brief cpp file for TestTlm component test harness base class // // \copyright // Copyright 2009-2016, by the California Institute of Technology. // ALL RIGHTS RESERVED. Uni...
/* Copyright © 2016, The Pennsylvania State University All rights reserved. Copyright © 2016 Forschungszentrum Jülich GmbH All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted under the GNU General Public License v3 and provided that the following conditi...
// Geometric Tools, LLC // Copyright (c) 1998-2010 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // // File Version: 4.10.0 (2009/11/18) //-------------------------------------------------------------...
/* ************************************************************************ * Copyright 2013 Advanced Micro Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www...
// // Created by Rabenda on 2018/8/6. //
/* * (C) 2021 MEAN00 fixounet@free.fr * See license file */ #include "lnArduino.h" #include "lnRCU.h" #include "lnIRQ.h" #include "lnIRQ_arm_priv.h" #include "lnSCB_arm_priv.h" #include "lnNVIC_arm_priv.h" #include "lnIRQ_arm.h" /** * */ #define LN_NB_INTERRUPT 68 #define LN_VECTOR_OFFSET 16 LN_SCB_Registe...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
#ifndef BOOST_MPL_AUX_STATIC_CAST_HPP_INCLUDED #define BOOST_MPL_AUX_STATIC_CAST_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2001-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // See http://www.boo...
/*============================================================================= Copyright (c) 2011-2019 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==...
#include <algorithm> #include <cstdio> #include <cstring> #include <deque> using namespace std; #define MAXLEN 1000 #define Zero(v) memset(v, 0, sizeof(v)) typedef deque<char> CD; // dp[i][j] will have the minimal number of characters to add to the word // formed by the letters from the ith to the jth position, so ...
/* * libjingle * Copyright 2004--2005, Google Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and...
// Copyright 2018 The SwiftShader Authors. 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 b...