text
stringlengths
7
961k
// vim: set sw=2 expandtab : #include "art/Framework/Services/FileServiceInterfaces/FileTransfer.h" #include "art/Framework/Services/FileServiceInterfaces/FileTransferStatus.h" #include "art/Framework/Services/Registry/ServiceDeclarationMacros.h" #include "art/Framework/Services/Registry/ServiceDefinitionMacros.h" #in...
// utility.cpp -- by Thatcher Ulrich <tu@tulrich.com> // This source code has been donated to the Public Domain. Do // whatever you want with it. // Various little utility functions, macros & typedefs. #include "engine/utility.h" #include "engine/dlmalloc.h" #ifdef _WIN32 #ifndef NDEBUG int tu_testbed_assert_br...
/* BSD 3-Clause License Copyright (c) 2017, Alibaba Cloud 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 conditi...
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
/* Copyright (c) 1992-2008 The University of Tennessee. All rights reserved. Copyright (c) 2009-2015, Jack Poulson All rights reserved. This file is loosely based upon the LAPACK routines dlarfg.f and zlarfg.f. This file is part of Elemental and is under the BSD 2-Clause License, which can be ...
/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkTypes.h" #if defined(SK_BUILD_FOR_WIN) #include "SkAdvancedTypefaceMetrics.h" #include "SkBase64.h" #include "SkColorData.h" #include "SkData....
#include <AMReX.H> #include <AMReX_MultiFab.H> #include <AMReX_ArrayLim.H> #include <AMReX_BC_TYPES.H> #include <TimeIntegration.H> #include <utils.H> using namespace amrex; // TODO: Check if the order of applying BC on cell-centered state or face-centered mom makes any difference void erf_advance(int level, ...
#include <string> #include <vector> #include <algorithm> #include <iostream> #include <fstream> /* Sales_data.h */ class Sales_data; std::istream &read(std::istream &, Sales_data &); class Sales_data { friend Sales_data add(const Sales_data &, const Sales_data &); friend std::istream &read(std::istream &, Sales_d...
// 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 "base/strings/utf_string_conversions.h" #include "chrome/test/base/chrome_render_view_test.h" #include "components/autofill/content/common/au...
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2005-2009. 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.boost.org/libs/interpr...
/* Copyright 2017 Google 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 agreed to in ...
#include "CppUnitTest.h" #include <memory> #include <Core/Layers/ApplicationLayer.h> #include <Systems/System.h> #include <Input/Input.h> #include <Log/Logging.h> #include <memory> using namespace Microsoft::VisualStudio::CppUnitTestFramework; using namespace Bel; namespace BelugaTest { TEST_CLASS(ComponentUnitTe...
/** * Copyright (c) 2017 Melown Technologies SE * * 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 f...
// Copyright (c) 2011-2015 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 <boost/test/unit_test.hpp> #include <stdint.h> #include <sstream> #include <iomanip> #include <limits> #include <cma...
#include <gtest/gtest.h> #include "simple.h" bool compare(const int (&grid)[N][N], const int (&expected)[N][N]) { for (int i = 0; i < N; i++) { for (int j = 0; j < N; j++) { if(grid[i][j] != expected[i][j]) { return false; } } } return true; } TEST(test_case, example_test) { // 0 means unassig...
/*! * \file rpmsg_env_linux_sim.c * \author Dave Anderson (danderson@presonus.com) * \brief * * Copyright (c)2021 PreSonus Audio Electronics * */ #include "rpmsg_env.h" #include "rpmsg_env_linux.h" #include "rpmsg_platform.h" #include "virtqueue.h" #include "rpmsg_compiler.h" #include "threadsafequeue.h" #d...
#include "CppUTest/MemoryLeakDetectorMallocMacros.h" #include "CppUTest/MemoryLeakDetectorNewMacros.h" #include "CppUTest/TestHarness.h" #include "CppUTestExt/MockSupport.h" extern "C" { #include <limits.h> #include <stdbool.h> #include <stddef.h> #include <string.h> #include "memfault/core/math.h" #inclu...
/** * %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% * * Copyright (c) 2016 LIBSCAPI (http://crypto.biu.ac.il/SCAPI) * This file is part of the SCAPI project. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Permission is hereby granted, free of charge, to any person o...
//================================================================================================= /*! // \file src/mathtest/smatsmatschur/UCbSCb.cpp // \brief Source file for the UCbSCb sparse matrix/sparse matrix Schur product math test // // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // Th...
/* * * Copyright (c) 2021 Project CHIP 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...
// BSD 2-Clause License // // Copyright (c) 2021, Antton Jokinen // 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,...
/** * Template for Contests * * @author Sanjeev */ #include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int t, n; cin >>t; while(t--){ cin >>n; if(n == 2010 || n == 2015 || n == 2016 || n == 2017 || n ==...
/* GRChombo * Copyright 2012 The GRChombo collaboration. * Please refer to LICENSE in GRChombo's root directory. */ #ifndef SIMULATIONPARAMETERS_HPP_ #define SIMULATIONPARAMETERS_HPP_ // General includes #include "ParmParse.H" class SimulationParameters { public: // For the Interpolator test we don't need a...
//===--- MoveForwardingReferenceCheck.cpp - clang-tidy --------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/* $Id: DBGPlugInDarwin.cpp 73460 2018-08-02 21:06:59Z vboxsync $ */ /** @file * DBGPlugInDarwin - Debugger and Guest OS Digger Plugin For Darwin / OS X. */ /* * Copyright (C) 2008-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org...
/** * Copyright (c) 2018 Horizon Robotics. All rights reserved. * @brief provides xstream image Cropper implement * @author hangjun.yang * @email hangjun.yang@horizon.ai * @version 0.0.0.1 * @date 2018.12.14 */ #include <string.h> #include <cmath> #include "hobotxstream/imagetools/cropper.h" #i...
#include <iostream> #include <cmath> using namespace std; int main() { unsigned long long n = 2, countt = 0, temp, largest = 0, num; for(n = 2; n <= 1000000; n++){ countt = 0; temp = n; //cout << "Entered for " << temp << endl; while(temp != 1){ if(temp % 2 == 0){ ...
#include "random.h" #include <iostream> #include "../params.h" int main(int, char **argv) { long long seed = atoll(argv[1]); auto gen = Random(seed); int n = N_AND_Q_MAX; int q = N_AND_Q_MAX; printf("%d %d\n", n, q); std::vector<int> a(n); for (auto &i : a) i = gen.uniform<int>(0, MOD - 1); for (int i = ...
/* * Copyright (c) 2021, Ben Wiederhake <BenWiederhake.GitHub@gmx.de> * 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 n...
// 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 "main.h" #include "wallet.h" #include "walletdb.h" #include "crypter.h" #...
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Christian Schulte <schulte@gecode.org> * * Copyright: * Christian Schulte, 2016 * * Last modified: * $Date: 2016-06-27 14:37:04 +0200 (Mon, 27 Jun 2016) $ by $Author: schulte $ * $Revision: 15129 $ * * ...
hk_QTransform::hk_QTransform() { } hk_QTransform::hk_QTransform(const hk_Vector3 &axis, hk_real angle, const hk_Vector3 &translate) : m_rotation(axis, angle), m_translation(translate) { } void hk_QTransform::set_identity() { m_rotation.set_identity(); m_translation.set_zer...
/** * The MIT License (MIT) * * Copyright (c) 2018 Igor Zinken - https://www.igorski.nl * * 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 limitat...
#include "TrainArmyGoal.h" #include "PlayerAttributeExist.h" #include "And.h" #include "Message.h" #include "DataMessage.h" #include "GameEntity.h" #include "DataMessage.h" #include "GameEntity.h" #include "GamePlayer.h" #include "GameType.h" #include "GoalFactory.h" using namespace IStrategizer; using namespace std; ...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "transactionrecord.h" ...
// Copyright 2015 Open Source Robotics Foundation, 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 appli...
// // StaticModule.cpp // MNN // // Created by MNN on b'2020/09/10'. // Copyright © 2018, Alibaba Group Holding Limited // #include "StaticModule.hpp" #include <MNN/AutoTime.hpp> #include <MNN/expr/Executor.hpp> #include <MNN/expr/ExecutorScope.hpp> #include <MNN/expr/ExprCreator.hpp> #include "Utils.hpp" #include...
/**************************************************************************** * * Copyright (c) 2014 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...
// // threadutil_locker.hpp // thread-util // // Created by matsushita sena on 2020/04/21. // Copyright © 2020年 matsushita sena. All rights reserved. // #include "threadutil_locker.hpp" namespace thread_util { locker::locker( void ) { if( pthread_mutex_init( &m_mutex, NULL ) != 0 ) { perror( "pt...
#ifndef FORM_HPP # define FORM_HPP # include <exception> # include <iostream> # include "Bureaucrat.hpp" class Bureaucrat; class Form { public: Form( void ); Form( std::string name, const int grade, const int gradeExec ); Form( const Form& src ); Form& operator=( const Form& rhs ); ~Form( void ); const...
// stdafx.cpp : source file that includes just the standard includes // first.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h"
/** * Copyright (C) 2019-2022 polistern * * This file is part of pboted and licensed under BSD3 * * See full license text in LICENSE file at top of project tree */ #include <netinet/in.h> #include <utility> #include "Packet.h" #include "RelayWorker.h" namespace pbote { namespace relay { RelayWorker relay_work...
/* * * Copyright 2015, Google Inc. * 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 condi...
#include "types.h" #include "mmu.h" #include "kernel.hh" #include "spinlock.hh" #include "condvar.hh" #include "proc.hh" #include "fs.h" #include "file.hh" #include "cpu.hh" #include "uk/unistd.h" #include <fcntl.h> #include "vm.hh" #define PIPESIZE (16*4096) struct pipe { struct spinlock lock; struct spinlock lo...
//===--- SemaDecl.cpp - Semantic Analysis for Declarations ----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/*************************************************************************/ /* rid_owner.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
/***************************************************************************** Project: CEDAR Logic Simulator Copyright 2006 Cedarville University, Benjamin Sprague, Matt Lewellyn, and David Knierim All rights reserved. For license information see license.txt included with distribution....
#include <QCoreApplication> #include <QDir> #include <iostream> enum StatusCodes { OK = 0, NoDirs = 1, CantFind = 2, CantRemove = 4 }; bool clear(QDir& dir) { bool ok = true; auto files = dir.entryList(QDir::Filter::Files); for (const auto& x : qAsConst(files)) ok &= dir.re...
#include <vector> #include <list> #include <map> #include <set> #include <deque> #include<queue> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <cmath> #include <cstd...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2015 Facebook, Inc. (http://www.facebook.com) | +---------...
/** * Autogenerated by Thrift Compiler (0.13.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ #include "TTrendingService.h" namespace gen { TTrendingService_process_post_args::~TTrendingService_process_post_args() noexcept { } uint32_t TTrendingService_process_post_args...
#include "caffe/util/hdf5.hpp" #include "caffe/util/math_functions.hpp" #include <string> #include <vector> namespace caffe { // Verifies format of data stored in HDF5 file and reshapes blob accordingly. void hdf5_load_nd_dataset_helper( hid_t file_id, const char* dataset_name_, int min_dim, int max_dim, Blo...
//------------------------------------------------------------------------------ /* This file is part of rippled: https://github.com/ripple/rippled Copyright (c) 2012, 2013 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby ...
/* * Camera.cpp * * Created on: Feb 3, 2017 * Author: zxi */ #include <three/cameras/Camera.h> namespace three { Camera::Camera() { this->type_ = "Camera"; this->isCamera_ = true; } Camera::~Camera() { } Camera& Camera::lookAt(const Vector3& target) { Matrix4 m; m.lookAt(this->position, target...
//===--- UnnecessaryCopyInitialization.cpp - clang-tidy--------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
/* * Software License Agreement (BSD License) * * Copyright (c) 2021, Delft Robotics Institute * 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 r...
/*! * \file SickLMS2xx.hh * \brief Definition of class SickLMS2xx. * Code by Jason C. Derenick and Thomas H. Miller. * Contact derenick(at)lehigh(dot)edu * * The Sick LIDAR Matlab/C++ Toolbox * Copyright (c) 2008, Jason C. Derenick and Thomas H. Miller * All rights reserved. * * This software is released unde...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__new_array_delete_struct_61b.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_array_delete.label.xml Template File: sources-sinks-61b.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Manage...
/* Copyright 2020 The OneFlow 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 agre...
// parameters.cpp /** * Copyright (C) 2012 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it wi...
// Autogenerated from CppHeaderCreator on 7/27/2020 3:09:42 PM // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "utils/typedefs.h" // Including type: System.Attribute #include "System/Attribute.hpp" #include "u...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XX ...
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. #ifndef ROCKSDB_LITE #...
/****************************************************************************** * * Project: Hierarchical Data Format Release 5 (HDF5) * Purpose: Read BAG datasets. * Author: Frank Warmerdam <warmerdam@pobox.com> * ****************************************************************************** * Copyright (c)...
/* * 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/EditContext.h> #include <AzCore/Serialization/SerializeContext.h> #...
/*************************************************************************/ /* image_loader_hdr.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2019 The PIVX developers // Copyright (c) 2019 The CryptoDev developers // Copyright (c) 2019 The peony developers // Distributed under the MIT software lice...
/* * Copyright 2019 The Android Open Source Project * * 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 2016 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 "content/browser/renderer_host/media/media_devices_dispatcher_host.h" #include <stddef.h> #include <utility> #include <vector> #include "base/...
/* $Id: ComHostUtils.cpp $ */ /** @file * ComHostUtils.cpp */ /* * Copyright (C) 2013-2015 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it and/or modify it under the terms of th...
// -*- C++ -*- // // Package: FWCore/Framework // Class : OutputModuleBase // // Implementation: // [Notes on implementation] // // // system include files #include <cassert> // user include files #include "FWCore/Framework/interface/limited/OutputModuleBase.h" #include "DataFormats/Common/interface/Han...
// Instrument.cpp // Copyright (c) 1996-1999 Microsoft Corporation. All Rights Reserved. // #include "common.h" HRESULT GetRegDlsFileName(PCWSTR lpSubKey, PCWSTR lpValueName, PWSTR lpszString, DWORD cbSize) { ASSERT(lpSubKey); ASSERT(lpValueName); ASSERT(lpszString); ASSERT(cbSize); ...
#pragma once #include <glad/glad.h> #include <GLFW/glfw3.h> #include <imgui/imgui.h> #include <imgui/imgui_impl_glfw.h> #include <imgui/imgui_impl_opengl3.h> #include <opencv2/opencv.hpp> #include "app.hpp" #include "mat_viewer.hpp" namespace gui { /*Sets the look-and-feel of the UI */ void setStyle(); /* This...
class Solution { public: double angleClock(int hour, int minutes) { double hourAngle = ((hour == 12) ? 0 : hour) * 30 + minutes/2.0; double minutesAngle = minutes * 6.0; double diff = abs(hourAngle - minutesAngle); return min(diff, 360 - diff); } };
#include<iostream> #include<math.h> using namespace std; int main(){ int n; cin>>n; int sum = 0; int originaln = n; while(n>0){ int lastdigit = n % 10; sum += pow(lastdigit,3); n = n/10; //Remove the last digit cout<<sum<<endl; } if(sum == originaln){ ...
// cudamatrix/cuda-matrix-test.cc // Copyright 2010 Karel Vesely // 2013 Lucas Ondel // 2013 Johns Hopkins University (author: Daniel Povey) // 2013 Hainan Xu // 2013 Xiaohui Zhang // 2013 Johns Hopkins University (author: Guoguo Chen) // See ../../COPYING for c...
#include <iostream> #include "Adapter/CLI/Command/ShowHelp.h" #include "Foundation/System/Application.h" namespace Consumer { namespace CLI { ShowHelp::ShowHelp(std::vector<std::string> commandList) : availableCommands(std::move(commandList)) {} void ShowHelp::showHelp() { using name...
// Copyright (c) 2011-2014 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 "bitcoinamountfield.h" #include "bitcoinunits.h" #include "guiconstants.h" #include "guiutil.h" #include "qvaluecomb...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. #pragma once // cpp headers #include <utility> #include <functional> // os headers #include <excpt.h> #include <Windows.h> #include <winsock2.h> // ntl headers #...
/********************************************************************** Audacity: A Digital Audio Editor Echo.cpp Dominic Mazzoni Vaughan Johnson (dialog) *******************************************************************//** \class EffectEcho \brief An Effect that causes an echo, variable delay and volum...
#include <Processors/Transforms/AddingSelectorTransform.h> #include <Processors/Transforms/SelectorInfo.h> namespace DB { namespace ErrorCodes { extern const int LOGICAL_ERROR; } AddingSelectorTransform::AddingSelectorTransform( const Block & header, size_t num_outputs_, ColumnNumbers key_columns_) : ISi...
#include "Audio.h" #include "Debug.h" #include <iostream> #include <irrKlang/irrKlang.h> #include <thread> typedef std::basic_string<char> string; using namespace irrklang; //declare static fields std::unordered_map<string, string> Audio::audioClips; //the reason we define and declare engine here and not in the head...
// Used to cause an LLVM crash with Haswell/Broadwell. // See https://github.com/pocl/pocl/issues/231 #define CL_HPP_ENABLE_EXCEPTIONS #define CL_HPP_MINIMUM_OPENCL_VERSION 120 #define CL_HPP_TARGET_OPENCL_VERSION 120 #include <CL/cl2.hpp> #include <iostream> using namespace std; const char *SOURCE = R"RAW( #define ...
#include "Widgets/ClickableLabel.hpp" ClickableLabel::ClickableLabel(QString txt, QWidget* p) : QLabel(txt) { this->setParent(p); } ClickableLabel::~ClickableLabel() {} void ClickableLabel::mousePressEvent(QMouseEvent* event) { Q_EMIT clicked(); }
/* * Copyright 2019, FZI Forschungszentrum Informatik (refactor) * * Copyright 2017, 2018 Jarek Potiuk (low bandwidth trajectory follower) * * Copyright 2017, 2018 Simon Rasmussen (refactor) * * Copyright 2015, 2016 Thomas Timm Andersen (original version) * * Licensed under the Apache License, Version 2.0 (the...
#include <iostream> using namespace std; #include "tporo.h" #include "vector.h" int main(void) { vector<TPoro> v(2); v.emplace_back(1, 2, 3, (char *)"rojo"); v.emplace_back(1, 2, 3, (char *)"rojo"); v.emplace_back(1, 2, 3, (char *)"rojo"); v.emplace_back(1, 2, 3, (char *)"rojo"); v.emplace_back(1, 2, ...
/* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "visitor/ExtractPropExprVisitor.h" namespace nebula { namespace graph { ExtractPropExprVisitor::ExtractPropEx...
//================================================================================================== /* EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT */ //================================================================================================== #pr...
// 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 <map> #include "base/basictypes.h" #include "chrome/browser/automation/automation_tab_helper.h" #include "chrome/browser/automation/mock_tab...
// --- // id : 1015 // title : Reversible Primes // difficulty : Easy // score : 20 // tag : TODO // keyword : TODO // status : AC // from : PAT (Advanced Level) Practice // --- #include <cmath> #include <iostream> bool is_prime(int n) { if (n <= 1) return false; int boun...
// Copyright (c) 2018 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "zpxcchain.h" #include "invalid.h" #include "main.h" #include "txdb.h" #include "ui_interface.h" // 6 comes from OPCODE (1) + vc...
// Copyright (c) 2012-2015 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 "key.h" #include "keystore.h" #include "validation.h" #include "policy/policy.h" #include "script/script.h" #include...
/*---------------------------------------------------------------------------*\ Copyright (C) 2012-2018 OpenFOAM Foundation ------------------------------------------------------------------------------- License This file is part of Caelus. Caelus is free software: you can redistribute it and/or modify it ...
// ----------------------------------------------------------------------- // RTToolbox - DKFZ radiotherapy quantitative evaluation library // // Copyright (c) German Cancer Research Center (DKFZ), // Software development for Integrated Diagnostics and Therapy (SIDT). // ALL RIGHTS RESERVED. // See rttbCopyright.txt or...
// $Id$ #include "ace/Basic_Types.h"
/*---------------------------------- File : data.cpp Contents : data set management ----------------------------------*/ #include <string.h> #pragma warning (disable:4996) #include "data.h" Data* gpdata; Data::Data(char *filename) { in = fopen(filename,"rt"); if(in==NULL) { printf("Error: cannot open f...
// nanorange/views/split.hpp // // Copyright (c) 2019 Tristan Brindle (tcbrindle at gmail 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 NANORANGE_VIEWS_SPLIT_HPP_INCLUDED #define NANORANGE_VIEWS_...
/* * Copyright 2019 Xilinx, 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 agreed to...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_listen_socket_w32spawnl_74a.cpp Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-74a.tmpl.cpp */ /* * @description * CWE: 78 OS Command Injection * BadSource: listen_socket Read data using...
// -*- C++ -*- //============================================================================= /** * @file PG_Properties_Encoder.inl * * $Id: PG_Properties_Encoder.inl 69353 2005-11-14 22:03:50Z ossama $ * * @author Dale Wilson <wilson_d@ociweb.com> */ //====================================================...