text
stringlengths
7
961k
/* Copyright 2020 The TensorFlow 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 by applicable law or a...
#include "GLMatrixf.h" #include <iostream> namespace GLMatrixf { GLMatrixf::GLMatrixf() { for (int i = 0; i < 4; i++) for (int j = 0; j < 4; j++) m[i][j] = 0; m[0][0] = 1; m[1][1] = 1; m[2][2] = 1; m[3][3] = 1; } void GLMatrixf::translate(float dx, float dy, float dz) { GLMatrixf t; t.m[0][...
// Fill out your copyright notice in the Description page of Project Settings. #include "BTTask_MoveToPlayer.h" #include "EnemyAIController.h" #include "GameFramework/Character.h" #include "BehaviorTree/Blackboard/BlackboardKeyType_Object.h" EBTNodeResult::Type UBTTask_MoveToPlayer::ExecuteTask(UBehaviorTreeComponent...
/* Copyright (c) 2019, IBM Copyright (c) 2013, Dan VerWeire <dverweire@gmail.com> Copyright (c) 2010, Lee Smith<notwink@gmail.com> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permis...
// // ssl.hpp // ~~~~~~~ // // Copyright (c) 2003-2010 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 BOOST_ASIO_SSL_HPP #define BOOST_ASIO_SSL_HPP...
/** * This program is free software: you can redistribute it and/or modify * it under the terms of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT WARRANTY OF ANY KIND; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See th...
/** * Reaver Library Licence * * Copyright © 2016 Michał "Griwes" Dominiak * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this softw...
/** * @file text_file_test.cpp * * @author Tobias Anker <tobias.anker@kitsunemimi.moe> * * @copyright MIT License */ #include "text_file_test.h" #include <libKitsunemimiCommon/files/text_file.h> namespace Kitsunemimi { TextFile_Test::TextFile_Test() : Kitsunemimi::CompareTestHelper("TextFile_Test")...
/** * Copyright 2015-2021 IQRF Tech s.r.o. * Copyright 2019-2021 MICRORISC s.r.o. * * 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 *...
///////////////////////////////////////////////////////////////////////////// // CurrGenSettings.cpp : implementation file ///////////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "resource.h" #include "CurrGenSettings.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THI...
// Copyright (c) 2011-2013 Thomas Heller // Copyright (c) 2011-2013 Hartmut Kaiser // Copyright (c) 2013-2015 Agustin Berge // Copyright (c) 2019 Mikael Simberg // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or c...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the plugins of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid commercial Q...
#include "framework.h" #include "MidiList.h" #include "MidiWriter.h" #define TICKS_PER_BEAT 96 #define BEATS_PER_MINUTE 120 //////////////////////////////////////////////////////////////////////////////// MidiWriter::MidiWriter() { file = NULL; } ////////////////////////////////////////////////////////////////...
# include <LEDA/geo/circle.h> # include <LEDA/geo/point.h> # include <iostream> # include <stdio.h> # include <vector> # include <ctime> # include <cfloat> # include <cstdlib> # include <algorithm> using namespace std ; using leda :: circle ; using leda :: point; leda::circle cir2(vector<leda::point> &P,int k,int j){...
// (C) Copyright Gennadiy Rozental 2005. // Use, modification, and distribution are subject to 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.boost.org/libs/test for the library home page. // // File ...
// Copyright (c) 2012 Pieter Wuille // Copyright (c) 2012-2014 The Bitcoin developers // Copyright (c) 2017 The PIVX developers // Copyright (c) 2018 The BITALLEY developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #inclu...
// Copyright (c) 2014-2017, The Monero Project // Copyright (c) 2017, SUMOKOIN // // 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 ...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; vector<string> P; int n; int dp[15][10][1<<15]; int go(int owner, int p, int mask) { int &ret = dp[owner][p][mask]; if (ret != -1) { ...
// // OpenGLObj.hpp // SpectralBRDFExplorer // // Created by Fabrizio Duroni on 30/05/16. // // #ifndef OpenGLObj_hpp #define OpenGLObj_hpp #include <OpenGLESHeaders.h> #include <iostream> #include <vector> #include <glm/glm.hpp> #include "lodepng.h" #define VERTEX_POS_SIZE 3 #define VERTEX_NORMAL...
// Copyright (c) 2013-2016 The Readercoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "hash.h" #include "utilstrencodings.h" #include "test/test_readercoin.h" #include <vector> #include <boost/test...
// Copyright (C) 2019 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <vector> #include "single_layer_tests/broadcast.hpp" #include "common_test_utils/test_constants.hpp" using namespace LayerTestsDefinitions; namespace { const std::vector<InferenceEngine::Precision> inputPrecisions = { ...
/** * @file * @copyright defined in ultrain/LICENSE.txt */ #pragma once #include <ultrainio/chain/chain_config.hpp> #include <ultrainio/chain/types.hpp> #include <fc/crypto/sha256.hpp> #include <string> #include <vector> namespace ultrainio { namespace chain { struct genesis_state { genesis_state(); st...
// Copyright 2019 The Fuchsia 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 "logger_options.h" #include <src/lib/fxl/strings/string_printf.h> namespace netemul { namespace config { static const char* kEnabled = "enabled...
/** Copyright (c) 2015, tsky 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 the above copyright notice, this list of conditions and the following di...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_src_char_cpy_06.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_src.label.xml Template File: sources-sink-06.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Initialize data as a la...
// The MIT License (MIT) // // Copyright (c) 2016-2020 Artur Troian // // 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 limitation the rights // to us...
/* * Copyright (c) [2019-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * ...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com) | +---------...
//cmp_state_machine.cpp #include "cmp_state_machine.h" using namespace std; StateMachineComponent::StateMachineComponent(Entity* p) : _current_state(nullptr), Component(p) { } void StateMachineComponent::update(double dt) { if (_current_state != nullptr) { _current_state->execute(_parent, dt); } } v...
/**************************************************************************** * * Copyright (c) 2013 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. Redistri...
// // Copyright (C) 2015 Tokyo Institute of Technology // // 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 applica...
// Copyright Contributors to the Open Shading Language project. // SPDX-License-Identifier: BSD-3-Clause // https://github.com/AcademySoftwareFoundation/OpenShadingLanguage ///////////////////////////////////////////////////////////////////////// /// \file /// /// Shader interpreter implementation of spline /// operat...
#include "native_stack.h" #include "../../platform/platform.h" namespace xprofiler { void SetNativeStack(JSONWriter* writer) { PrintNativeStack(writer); } } // namespace xprofiler
// This file is part of KWIVER, and is distributed under the // OSI-approved BSD 3-Clause License. See top-level LICENSE file or // https://github.com/Kitware/kwiver/blob/master/LICENSE for details. #include <python/kwiver/vital/config/config.h> #include <vital/types/geo_polygon.h> #include <pybind11/pybind11.h> #in...
// DEMOII8_3.CPP - Alpha blending demo // to compile make sure to include DDRAW.LIB, DSOUND.LIB, // DINPUT.LIB, WINMM.LIB, and of course // T3DLIB1.CPP,T3DLIB2.CPP,T3DLIB3.CPP..T3DLIB6.CPP // and only run app if desktop is in 16-bit color mode // INCLUDES /////////////////////////////////////////////// #define INIT...
/** Function to compute the temporal connections between subsequent frames % % Copyright (C) 2013 Anestis Papazoglou % % You can redistribute and/or modify this software for non-commercial use % under the terms of the GNU General Public License as published by % the Free Software Foundation, either version...
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2014, Oracle and/or its affiliates. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle // Licensed under the Boost Software License version 1.0. // http://www.boost.org/users/license.html #ifndef BOOST_GEOMETRY_GEOMETRIES_...
/*############################################################################## HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®. 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...
#include <boost/test/unit_test.hpp> #include <string> #include <vector> #include "key.h" #include "base58.h" #include "uint256.h" #include "util.h" using namespace std; static const string strSecret1 ("5HxWvvfubhXpYYpS3tJkw6fq9jE9j18THftkZjHHfmFiWtmAbrj"); static const string strSecret2 ("5KC4ejrDjv152FGwP3...
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #ifndef IROHA_CRYPTOPROVIDER_HPP #define IROHA_CRYPTOPROVIDER_HPP #include "cryptography/keypair.hpp" #include "cryptography/seed.hpp" #include "cryptography/signed.hpp" namespace shared_model { namespace crypto { ...
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2008 Erwin Coumans http://continuousphysics.com/Bullet/ This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permiss...
// Copyright 2014 Georgia Institute of Technology // // 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 ...
#pragma once #include "../base_op.hpp" #include <functional> #include "../def/ClubInvite.hpp" namespace lol { template<typename T> inline Result<std::vector<ClubInvite>> GetLolClubsV1ClubsInvitations(T& _client) { try { return ToResult<std::vector<ClubInvite>>(_client.https.request("get", "/lol-clubs/v...
/** * Copyright (c) 2011-2016 by Andrew Mustun. All rights reserved. * * This file is part of the QCAD project. * * QCAD is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License,...
// This code is in the public domain -- castanyo@yahoo.es #pragma once #ifndef NV_MATH_MATRIX_INL #define NV_MATH_MATRIX_INL #include "Matrix.h" namespace nv { inline Matrix2::Matrix2() {} inline Matrix2::Matrix2(float f) { for(int i = 0; i < 4; i++) { m_data[i] = f; } ...
//+------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation, 1992 - 1993. // // File: metapenm.cxx // // Contents: Meta property enumerator // // History: 12-Dec-96 SitaramR Created // //---------------------------------------------------...
// Copyright 2018 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 "chrome/browser/vr/elements/controller.h" #include "base/numerics/math_constants.h" #include "base/stl_util.h" #include "base/trace_event/trace_...
/* Copyright (c) 2014, Google Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS...
#include "Manager/ExplosionManager.h" ExplosionManager::ExplosionManager(SDL_Texture* texture, unsigned int tile_size) : DisplayElement(texture), m_tile_size(tile_size) { } ExplosionManager::~ExplosionManager() { for(auto i = m_explosions.begin(); i != m_explosions.end(); ++i) { delete (*i); ...
/* * 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 <AzCore/Serialization/SerializeContext.h> #include <AzCore/Serialization/EditContext.h> #...
// Copyright (c) 2011-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 "blockencodings.h" #include "chainparams.h" #include "config.h" #include "consensus/merkle.h" #include "random.h" #...
//===- ASTWriter.cpp - AST File Writer ------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <bits/stdc++.h> using namespace std; int main(){ printf("Ho Va Ten: Nguyen Quang Huy\n"); printf("MSSV: 20183554\n\n"); int n; cin >> n; bool found = false; while(n--){ int a; cin >> a; if ((a % 4 == 0 && a % 100 != 0) || (a % 400 == 0)){ found = tru...
#include<stdio.h> int main() { int T, n, P, Q, wt[32], t, i, j, m; while(scanf("%d",&T) == 1) { for(i=0;i<T;i++) { t=0; scanf("%d %d %d",&n,&P,&Q); for(j=0;j<n;j++) { scanf("%d",&wt[j]); t= t+wt[j]; }...
/* UserAction.cpp */ //---------------------------------------------------------------------------------------- // // Project: CCore 2.00 // // Tag: Desktop // // License: Boost Software License - Version 1.0 - August 17th, 2003 // // see http://www.boost.org/LICENSE_1_0.txt or the local copy // // Copyr...
#ifndef _DRINK_SHOP_RECEPTIONIST_H_ #define _DRINK_SHOP_RECEPTIONIST_H_ #include <string> #include <memory> #include <mutex> #include <functional> #include <boost/asio/ip/tcp.hpp> #include <boost/asio/connect.hpp> #include <boost/asio/socket_base.hpp> #include "drink_shop_transaction.hpp" #include "drink_shop_handler.h...
/******************************************************************************* * Project: Nebula * @file SessionDataReport.hpp * @brief 数据上报 * @author Bwar * @date: 2019-12-22 * @note * Modify history: ******************************************************************************/ #ifndef ACTOR_S...
/* Copyright (c) 2005-2017, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in source and binary forms...
class Solution { public: bool isPowerOfTwo(int n) { // (n>0) means that the number is not zero // a number which is power of two has one set bit so !x&(x-1) return 1 if the number is power of two return (n>0)&&(n&&!(n&(n-1))); // 8- 1000 // 7- 0111 //& !0000 = 1111 ...
// Copyright (c) 2009-2014 Bitcoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "init.h" // for pwalletMain #include "bitcoinrpc.h" #include "ui_interface.h" #include "base58.h" #include <boost/lexica...
// Copyright © 2021 Peter Cerno. All rights reserved. #include "base/account.h" namespace trader { namespace { float Floor(float amount, float unit) { return unit > 0 ? unit * std::floor(amount / unit) : amount; } float Ceil(float amount, float unit) { return unit > 0 ? unit * std::ceil(amount / unit) : amount; ...
#include "stdafx.h" #include "TestManager.h" #include "WiFi_11AC_Test.h" #include "WiFi_11AC_Test_Internal.h" #include "IQmeasure.h" #include "StringUtil.h" // This global variable is declared in WiFi_Test_Internal.cpp extern TM_ID g_WiFi_11ac_Test_ID; extern int g_Tester_Type; extern int g_Tester_Number; ext...
#include <Access/EnabledQuota.h> #include <Access/QuotaCache.h> #include <Access/QuotaUsage.h> #include <Access/AccessControlManager.h> #include <Common/Exception.h> #include <Common/thread_local_rng.h> #include <base/range.h> #include <boost/range/adaptor/map.hpp> #include <boost/range/algorithm/copy.hpp> #include <bo...
#include "GameObject.h" // Stores a tag in our set of tags. void GameObject::assignTag(std::string tag) { tags_.emplace(tag); } // Returns true if we have the provided tag. bool GameObject::hasTag(std::string tag) { return tags_.find(tag) != tags_.end(); } // Returns true if the game object is "dead" (should be re...
// Copyright 2010-2014 Google // 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 agreed to in wri...
//===----------------------------------------------------------------------===// // DuckDB // // duckdb/execution/index/art/art_key.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "duckdb/common/common.hpp" #include "duckdb/commo...
#include "CommonTools/PileupAlgos/interface/PuppiContainer.h" #include "DataFormats/Math/interface/deltaR.h" #include "Math/ProbFunc.h" #include "TMath.h" #include <iostream> #include <cmath> #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/Utilities/interface/isFinite.h" using namespace std;...
#include <boost/test/unit_test.hpp> #include <string> #include <vector> #include "netbase.h" using namespace std; BOOST_AUTO_TEST_SUITE(netbase_tests) BOOST_AUTO_TEST_CASE(netbase_networks) { BOOST_CHECK(CNetAddr("127.0.0.1").GetNetwork() == NET_UNROUTABLE); BOOST_CHECK(CNetAdd...
#include "stdafx.h" #include "Hooks.h" Hooks::Hooks() : hhkCallWndProc(NULL) , hhkGetMessage(NULL) , hhkCallKeyboardMsg(NULL) { // } Hooks::~Hooks() { Uninstall(); } BOOL Hooks::Install() { // Load hook DLL HMODULE hModDLL = LoadLibrary(BUILD(MT_DLL_NAME)); if (!hModDLL) { return FALSE; } // CallWndPro...
/* * Copyright Andrey Semashev 2007 - 2014. * 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) */ /*! * \file is_debugger_present.hpp * \author Andrey Semashev * \date 05.12.2012 * * ...
#include "game/math.h" bool Math::intersect_segments(float p0_x, float p0_y, float p1_x, float p1_y, float p2_x, float p2_y, float p3_x, float p3_y) { const float s1_x = p1_x - p0_x; const float s1_y = p1_y - p0_y; const float s2_x = p3_x - p2_x; const float s2_y = p3_y - p...
/** * @brief * fsa_renderer * * @copyright * Copyright (c) 2020 Fangjun Kuang (csukuangfj@gmail.com) * Xiaomi Corporation (authors: Haowen Qiu) * * @copyright * See LICENSE for clarification regarding multiple authors */ #include "k2/csrc/host/fsa_renderer.h" #include <iomanip> #inclu...
// 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. #ifndef __OPENCV_TRACKING_KUHN_MUNKRES_HPP__ #define __OPENCV_TRACKING_KUHN_MUNKRES_HPP__ #include "opencv2/core.hpp" #incl...
#include <iostream> #include "Exstar/Physics/TestCollider.h" exstar::physics::TestCollider::TestCollider(){} exstar::physics::TestCollider::TestCollider(float w, float h, float x, float y){ this->w = w; this->h = h; this->x = x; this->y = y; } bool exstar::physics::TestCollider::CheckCollision(exstar::physics::...
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without m...
/* Copyright (c) 2018 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 by applicable law or...
#include <limits> #include <stan/io/array_var_context.hpp> #include <gtest/gtest.h> #include <boost/math/special_functions/fpclassify.hpp> TEST(array_var_context, ctor_int) { std::vector<int> v; for (size_t i = 0; i < 16; i++) v.push_back(i); std::vector<std::vector<size_t> > dims; std::vector<size_t> scalar_d...
#ifndef BOOST_ARCHIVE_DETAIL_COMMON_OARCHIVE_HPP #define BOOST_ARCHIVE_DETAIL_COMMON_OARCHIVE_HPP // MS compatible compilers support #pragma once #if defined(_MSC_VER) # pragma once #endif /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // common_oarchive.hpp // (C) Copyright 2002 Ro...
/*========================================================================= Program: GDCM (Grassroots DICOM). A DICOM library Module: $URL$ Copyright (c) 2006-2010 Mathieu Malaterre All rights reserved. See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details. This software is dist...
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2006 Tatsuhiro Tsujikawa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lice...
// Autogenerated from KST: please remove this line if doing any edits by hand! #include <boost/test/unit_test.hpp> #include "str_combine.h" #include <iostream> #include <fstream> #include <vector> BOOST_AUTO_TEST_CASE(test_str_combine) { std::ifstream ifs("src/term_strz.bin", std::ifstream::binary); kaitai::k...
/* eransaction(backend->ssdb->binlogs); Copyright (c) 2012-2014 The SSDB 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 <pthread.h> #include <assert.h> #include <errno.h> #include <string> #include "backend_sync.h" #include "u...
/* ============================================================================== PerformView.cpp Created: 27 Sep 2020 5:53:58pm Author: Tal Aviram ============================================================================== */ #include "PerformView.h" #include "LookAndFeel.h" #include "EditBeatV...
#include "AssetManager.h" #include "WICTextureLoader.h" #include "DDSTextureLoader.h" #include "assimp/Importer.hpp" #include "assimp/scene.h" #include "assimp/postprocess.h" //$(ProjectDir)include\assimp //lib\assimp\x64 AssetManager::AssetManager(ID3D11Device* dev, ID3D11DeviceContext* con) { device = dev; cont...
/* Copyright 2013 Stanford University. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions vd* are met: * * - Redistributions of source code must retain the above copyright * notice, this list of con...
/**************************************************************************************** * @author: kzvd4729 created: May/05/2020 20:50 * solution_verdict: Wrong answer on test 7 language: GNU C++14 * run...
// 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 "chrome/browser/ui/webui/omnibox/omnibox_ui_handler.h" #include <string> #include "base/auto_reset.h" #include "base/bind.h" #include "base...
// sol2 // The MIT License (MIT) // Copyright (c) 2013-2021 Rapptz, ThePhD and contributors // 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 limita...
#include <catch2/catch.hpp> #include <string> #include <vector> #include <sanelli/tokenizer/tokenizer.hpp> SCENARIO("Tokenizer", "[tokenizer]"){ sanelli::tokenizer<unsigned int> tokenizer; GIVEN("A set of rules"){ tokenizer.add(1, "a", true, true); tokenizer.add(2, "b", true, true); ...
// Copyright 2017 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 "ash/login/ui/login_pin_view.h" #include <memory> #include "ash/login/ui/login_button.h" #include "ash/login/ui/views_utils.h" #include "ash/pu...
/******************************************************************************************* * * Shade Player App main.cpp * * Entry point wrapper for the shader player app * * ********************************************************************************************/ #include "ShadePlayerApp.hpp" using namespace s...
#include<iostream> using namespace std; int main () { int a , b, n ; cin>>n; for(int i=0;i<n;i++) { cin>>a>>b; int sum=a+b; cout<<sum<<endl; } return 0; }
// Copyright 2018 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
#include <Common/config.h> #if USE_SSL #include "MySQLHandler.h" #include <limits> #include <ext/scope_guard.h> #include <Columns/ColumnVector.h> #include <Common/config_version.h> #include <Common/NetException.h> #include <Common/OpenSSLHelpers.h> #include <Core/MySQLProtocol.h> #include <Core/NamesAndTypes.h> #inclu...
// Copyright (c) 2017, SUMOKOIN // // 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 list of // conditions...
// // Created by Admin on 4/29/2021. // #include "expression.h" expression::expression(const std::string &str) { if (is_digits(str)) { value = stod(str); is_calculated = true; } else { if (str.size() < 4) { // min looks like '=1+1' throw std::run...
// Supported with union (c) 2020 Union team // User API for zCAccount // Add your methods here
/* * ---------------------------------------------------------------------------- * Copyright (c) 2014-2015 BigObject Inc. * All Rights Reserved. * * Use of, copying, modifications to, and distribution of this software * and its documentation without BigObject's written permission can * result in the violation o...
/* * ofxSoundStream.cpp * * v 0.02 March 2010 * Arturo Castro & Eduard Prats Molner */ #include "ofxSoundStream.h" //------------------------------------------------------------------------------ // rtAudio callback int ofxSoundStreamCallback(void *outputBuffer, void *inputBuffer, unsigned int buf...