text
stringlengths
7
961k
/* * Copyright 2017 WebAssembly Community Group participants * * 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...
#include "stdafx.h" // Include #include "ParticleSystem.h" // General #include "ParticleEmitters.h" mat4 CalcSpreadMatrix(float Spread1, float Spread2, float w, float l) { Random random; int i, j; float a[2], c[2], s[2]; mat4 Temp; mat4 SpreadMat = mat4(1.0f); a[0] = random.Range(-Spread1, Spread1) / 2.0...
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. // // Copyright 2015 Heiko Fink, All Rights Reserved. // // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. // // Description: // This code implements the blueprint functions that...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/sagemaker/model/DescribeModelPackageResult.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/StringUtils.h> #includ...
/* * Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
#include<iostream> using namespace std; int cost[10][10],i,j,k,n,qu[10],front,rare,v,visit[10],visited[10]; int main() { int m; cout <<"Enter no of nodes(max 9):"; cin >> n; cout <<"Enter no of edges:"; cin >> m; cout <<"\nEnter edges starting from source node: \n"; for(k=1; k<=m; k++) {...
#include <rmc++.h> void lol(int n); void nus(rmc::atomic<int*> &a, int *p) { // A -> B -*-> B, needs dmb XEDGE_HERE(a, b); int *q = L(a, a); while (1) { int n = L(b, *q); q = p; lol(n); } } // this one *shouldn't* require a dmb!! void nus2(rmc::atomic<int*> &a) { // A ...
/*************************************************************************** * Copyright (C) 2009 by Markus Bader * * bader@acin.tuwien.ac.at * * * * This pr...
/* * 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...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
//============================================================================= // // OpenMesh // Copyright (C) 2003 by Computer Graphics Group, RWTH Aachen // ...
/******************************************************************************* * Copyright 2016 -- 2021 IBM 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:/...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. #include "pch.h" #include "Media.Capture.MrcVideoEffect.h" #include "Media.Capture.MrcVideoEffect.g.cpp" using namespace winrt; using namespace CameraCapture::Media...
// // socket_base.hpp // ~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2013 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 ASIO_SOCKET_BASE_HPP #define ...
//----------------------------------------------------------------------------- // Copyright (c) 2013 GarageGames, LLC // // 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 restrictio...
// SPDX-License-Identifier: MIT // Copyright contributors to the gecko project. #include "png_reader.h" #include <base/contract.h> #include <base/scope_guard.h> #include <png.h> #include <vector> //////////////////////////////////////// imgproc::buffer<float, 2> png_read( const char *file_name ) { FILE *fp = fo...
/** Copyright 2009-2017 National Technology and Engineering Solutions of Sandia, LLC (NTESS). Under the terms of Contract DE-NA-0003525, the U.S. Government retains certain rights in this software. Sandia National Laboratories is a multimission laboratory managed and operated by National Technology and Engineering...
#include "rando.hpp" #include "Stiffness.hpp" #include <iostream> #include <fstream> #include <iomanip> #include <unistd.h> #include <limits.h> #include <cmath> #include <chrono> using namespace std; using namespace std::chrono; // Clock! class Mtime { high_resolution_clock::time_point t1 ; public: // Initializ...
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 %s -emit-llvm -o - | FileCheck %s struct Member { int x; Member(); Member(int); Member(const Member &); }; struct VBase { int x; VBase(); VBase(int); VBase(const VBase &); }; struct ValueClass { ValueClass(int x, int y) : x(x), y(y) {} int x; int y; }; // subject...
/* This file is part of Jellyfish. Jellyfish 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, or (at your option) any later version. Jellyfish is distributed ...
// Copyright Carl Philipp Reh 2006 - 2019. // 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 SGE_OPENCL_SINGLE_DEVICE_SYSTEM_OPTIONAL_RENDERER_HPP_INCLUDED #define SGE_OPENCL_SINGLE_DE...
/*************************************************************************************************** LICENSE: 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/l...
// Copyright (c) 2014 bushido // Copyright (c) 2014 The Vertcoin developers // Copyright (c) 2014 https://github.com/spesmilo/sx // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "stealth.h" #include <boost/algorithm/...
#pragma once //------------------------------------------------------------------------------ // // 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 Licen...
#include "eyes/EyesMainScene.h" #include "main_menu/BackgroundNode.h" using namespace eyes; #include "SixCatsLogger.h" #include "SixCatsLoggerMacro.h" #include <sstream> USING_NS_CC; using namespace std; #include <cmath> #include <ctgmath> enum ZOrderValues { kSceneBackgroundZOrder = 10, kSpaceShipZOrder, }; s...
// Copyright 2016 the V8 project 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 "src/ic/accessor-assembler.h" #include "src/ast/ast.h" #include "src/code-factory.h" #include "src/code-stubs.h" #include "src/counters.h" #in...
// Copyright 2003-2004 The Apache Software Foundation. // (c) Copyright IBM Corp. 2004, 2005 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....
/** * @file Slice.hpp * * A simple matrix template library. * * @author Julian Kent < julian@auterion.com > */ #pragma once #include "math.hpp" namespace matrix { template<typename Type, size_t M, size_t N> class Matrix; template<typename Type, size_t M> class Vector; template <typename Type, size_t P, siz...
// Copyright 2022 FastSense, Samsung Research #include "mppic/critics/obstacles_critic.hpp" #include <xtensor/xaxis_slice_iterator.hpp> namespace mppi::critics { void ObstaclesCritic::initialize() { auto node = parent_.lock(); auto getParam = utils::getParamGetter(node, name_); getParam(consider_footprint_, "c...
// Copyright 2004-2009 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 ...
/******************************************************* * Copyright (C) 2018 Michael Jobst <mjobst@tecratech.de> * * This file is part of Dimaqs. * * Dimaqs can not be copied and/or distributed without the express * permission of Michael Jobst *******************************************************/ #include "...
#pragma once #include "shell/arguments.hh" #include "shell/command.hh" #include "shell/date.hh" #include "shell/grid.hh" #include "shell/ipc.hh" #include "shell/shell.hh" #include "shell/shell-canvas.hh" #include "shell/shell-drawable.hh" #include "shell/shell-scene.hh" #include "shell/shell-sprite.hh" #include "shell...
/* * * Copyright 2018 gRPC 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) 2019 by Contributors * \file array/array.cc * \brief DGL array utilities implementation */ #include <dgl/array.h> #include <dgl/graph_traversal.h> #include <dgl/packed_func_ext.h> #include <dgl/runtime/container.h> #include <dgl/runtime/shared_mem.h> #include <dgl/runtime/device_api.h> #include...
#ifndef ARR_TEMP_TEMPLATE_HPP #define ARR_TEMP_TEMPLATE_HPP // // Copyright (c) 2013, 2021 // Kyle Markley. 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 cod...
// Fill out your copyright notice in the Description page of Project Settings. #include "QuickStart.h" IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, QuickStart, "QuickStart" );
#include "TransportStopsInAreaSearch.h" #include "ObfDataInterface.h" #include "TransportStop.h" OsmAnd::TransportStopsInAreaSearch::TransportStopsInAreaSearch(const std::shared_ptr<const IObfsCollection>& obfsCollection_) : BaseSearch(obfsCollection_) { } OsmAnd::TransportStopsInAreaSearch::~TransportStopsInAre...
//------------------------------------------------------------------------------ // // 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 // // ...
#include "GameCamera.hpp" #include <stdlib.h> #include <engine/rendering/rendering.hpp> #include <settings.hpp> #include <logging/logging.hpp> GameCamera::GameCamera(): Camera(Vector3f{0,0,3}, 0, 0, 0) { } void GameCamera::setup() { glfwGetWindowSize(window, &windowWidth, &windowHeight); this->updateProject...
//-------------------- svmObjCam.cpp ----------------------- //----------------------------------------------------------- #include "precHeader.h" #include <commdlg.h> #include <stdio.h> #include <stdlib.h> //----------------------------------------------------------- #include "resource.h" #include "p_File.h" #include ...
//===-- ASTReader.cpp - AST File Reader ----------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===--------------------------------------------------------...
// Copyright (c) 2019 Intel Corporation // // 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 use, copy, modify, merge, publ...
//===- TableGen.cpp - Top-Level TableGen implementation for LLVM ----------===// // // 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 Vladimir Prus 2002-2004. // 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) #include <hpx/program_options/config.hpp> #include <hpx/debugging/environ.hpp> #include ...
// Copyright 2019 DeepMind Technologies Ltd. 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 require...
// ArduinoJson - arduinojson.org // Copyright Benoit Blanchon 2014-2020 // MIT License #include <ArduinoJson.h> #include <catch.hpp> using namespace Catch::Matchers; TEST_CASE("JsonObject::begin()/end()") { StaticJsonDocument<JSON_OBJECT_SIZE(2)> doc; JsonObject obj = doc.to<JsonObject>(); obj["ab"] = 12; ob...
// I2Cdev library collection - MPU6050 I2C device class // Based on InvenSense MPU-6050 register map document rev. 2.0, 5/19/2011 (RM-MPU-6000A-00) // 8/24/2011 by Jeff Rowberg <jeff@rowberg.net> // Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib // // Changelog: // ... - ong...
/* Copyright [2011] [Chris McClanahan] 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 ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int MAXSIZE=10000020; int bufpos; char buf[MAXSIZE]; #define NEG 0 void init(){ #ifdef LOCAL freopen("2090.txt","r",stdin); #endif buf[fread(buf,1,MAXSIZE,stdin)]='\0'; bufpos=0; } #if NEG int readint(){ bool isneg; int val=0; for(;!isdi...
/* * * Copyright (c) 2020 Project CHIP 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 requir...
// Local #include <config/peer/HbGeneralConfig.h> using namespace hb::network; HbGeneralConfig::HbGeneralConfig() { mAppName = ""; mProtocolVersion = 0; } HbGeneralConfig::HbGeneralConfig(const HbGeneralConfig& config) { if (this != &config) { mAppName = config.mAppName; mProtocolVersion ...
/*++ Copyright (c) 1994 Microsoft Corporation Module Name: OctetString.cpp Abstract: This module implements the COctetString class, providing simple manipulation of binary data. Author: Doug Barlow (dbarlow) 9/29/1994 Environment: Notes: --*/ #include <windows.h> #include <memory.h> #inc...
/** * Copyright (C) 2014 MongoDB 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 will be usef...
#include <GRUT.h> #include "GUI.h" #include <imgui.cpp> #include <imgui_draw.cpp> #include <imgui_widgets.cpp> #include <imgui_demo.cpp> #include <examples/imgui_impl_opengl3.cpp> #include <examples/imgui_impl_glfw.cpp> void GUI::Initialize(RenderManager& p_renderManager) { std::shared_ptr<IWindow> window = p_re...
#pragma once #include "JsonEncoder.h" #include <assert.h> #include <type_traits> /* {{{ JsonPack implementation */ template <class Strm, class T> inline void JsonPack(Strm &strm, const T &t); template <class Strm, class T> inline void JsonPack(Strm &strm, const T &t) { if (std::is_arithmetic<T>::value) strm << t; ...
#ifndef MIGRAPHX_GUARD_OPERATORS_SQUEEZE_HPP #define MIGRAPHX_GUARD_OPERATORS_SQUEEZE_HPP #include <array> #include <migraphx/check_shapes.hpp> #include <migraphx/stringutils.hpp> #include <migraphx/streamutils.hpp> #include <migraphx/literal.hpp> #include <migraphx/shape_for_each.hpp> #include <migraphx/config.hpp> #...
// // ssl/impl/context.ipp // ~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2005 Voipster / Indrek dot Juhani at voipster dot com // Copyright (c) 2005-2012 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 a...
// Copyright (c) 2019, QuantStack and Mamba Contributors // // Distributed under the terms of the BSD 3-Clause License. // // The full license is in the file LICENSE, distributed with this software. #include "mamba/core/mamba_fs.hpp" #include "mamba/core/url.hpp" #include "mamba/core/util.hpp" #include "openssl/evp.h...
#include "stdafx.h" #include "UITalkWnd.h" #include "UITradeWnd.h" #include "UITalkDialogWnd.h" #include "../actor.h" #include "../HUDManager.h" #include "../UIGameSP.h" #include "../PDA.h" #include "../character_info.h" #include "../level.h" #include "../PhraseDialog.h" #include "../PhraseDialogManager.h" #include...
/* Rathin Bhargava IIIT Bangalore */ #include<bits/stdc++.h> #define mt make_tuple #define mp make_pair #define pu push_back #define INF 1000000001 #define MOD 1000000007 #define EPS 1e-6 #define ll long long int #define ld long double #define fi first #define se second #define all(v) v.begin(),v.end() #define pr(v) {...
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: int findSecondMinimumValue(TreeNode* root) { if (!root) return -1; return minva...
#include <iostream> #include "DeepMimicCore.h" #include "util/FileUtil.h" #include "render/DrawUtil.h" #include "render/TextureDesc.h" // Dimensions of the window we are drawing into. int gWinWidth = 800; int gWinHeight = static_cast<int>(gWinWidth * 9.0 / 16.0); //int gWinWidth = 1055; //int gWinHeight = 450; bool...
#include "DeviceOpenMP.h" #include "Debug.h" #include "Kernel.h" #include "LoaderOpenMP.h" #include "Mem.h" #include "Task.h" #include "Utils.h" #include <dlfcn.h> #include <stdlib.h> namespace brisbane { namespace rt { DeviceOpenMP::DeviceOpenMP(LoaderOpenMP* ld, int devno, int platform) : Device(devno, platform) { ...
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "platform/globals.h" #if defined(DART_HOST_OS_LINUX) #include "bin/fdutils.h" #include <errn...
//********************************************************************** // File name: IOIPAO.CPP // // Implementation file for the CClassFactory Class // // Functions: // // See ioipao.h for a list of member functions. // // Copyright (c) 1993 Microsoft Corporation. All rights reserved. //***********************...
#include "gtest/gtest.h" import CuDnn.Utils; using namespace Mila::Dnn::CuDnn; namespace Mila::Test::Dnn { TEST( CuDnn, Utils_GetVersion ) { auto ver = GetCudnnVersion(); std::cout << "CuDnn: Version: " << ver.ToString() << std::endl; EXPECT_TRUE( ver.getMajor() == 8); EXPECT...
// Copyright (C) 2015 The Regents of the University of California (Regents). // 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...
// (C) Copyright John Maddock 2001 - 2003. // (C) Copyright Darin Adler 2001. // (C) Copyright Jens Maurer 2001 - 2003. // 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) ...
// Problem generator for realistic cooling // C++ headers #include <algorithm> // min() #include <cmath> // abs(), pow(), sqrt() #include <sstream> // stringstream #include <stdexcept> // runtime_error #include <string> // string #include <fstream> // Athena++ headers #include "../mesh/mesh.hpp" #includ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 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 "main.h" #include "addrman.h" #include "alert.h" #include "uint256.h" #...
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2013 Ben Vanik. All rights reserved. ...
// _ _____ __________ // | | / / _ | / __/_ __/ Visibility // | |/ / __ |_\ \ / / Across // |___/_/ |_/___/ /_/ Space and Time // // SPDX-FileCopyrightText: (c) 2019 The VAST Contributors // SPDX-License-Identifier: BSD-3-Clause #pragma once #include "vast/fwd.hpp" #include "vast/sy...
#include "services/network/TracingConnectionMbedTls.hpp" #include "mbedtls/debug.h" #include "mbedtls/error.h" namespace services { TracingConnectionMbedTls::TracingConnectionMbedTls(infra::AutoResetFunction<void(infra::SharedPtr<services::ConnectionObserver> connectionObserver)>&& createdObserver, Certifi...
#include "gtest/gtest.h" #include "TBTK/TBTK.h" #include "TBTK/Test/Solver/ArnoldiIterator.h" int main(int argc, char **argv){ TBTK::Initialize(); ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // test_unregistered.cpp // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http...
#include <gtest/gtest.h> #include <stddef.h> #include "LexicalAnalyzer.hh" #include <iostream> TEST(LexicalAnalyzer, test1) { Token::e token; LexicalAnalyzer lexer; lexer.load("float"); token = lexer.getToken(); EXPECT_EQ(Token::Float, token ); token = lexer.nextToken(); EXPECT_EQ(Token:...
#pragma once #include <chrono> #include <iostream> #include <string> // Warning: In the past, magic_enum has led to problems with TSan. See #2154 for details. #include <magic_enum.hpp> #include "types.hpp" #include "utils/format_duration.hpp" namespace opossum { struct AbstractOperatorPerformanceData : public Nonco...
//===--- ASTWriterStmt.cpp - Statement and Expression Serialization -------===// // // 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) 1999 Antti Koivisto (koivisto@kde.org) * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundat...
/// @file /// /// Copyright Matus Chochlik. /// 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 EAGINE_LOGGING_ROOT_LOGGER_HPP #define EAGINE_LOGGING_ROOT_LOGGER_HPP #include "../program_args.hpp" #in...
/** * @file * @copyright This code is licensed under the 3-clause BSD license.\n * Copyright ETH Zurich, Laboratory for Physical Chemistry, Reiher Group.\n * See LICENSE.txt for details. */ #include "Utils/Bonds/BondDetector.h" #include "Utils/Bonds/BondDetectorRadii.h" #include "Utils/Bonds/...
/* * Copyright (c) 2012-2019 SoftBank Robotics. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the COPYING file. */ enum E { a, b, c }; void func ( E e ) { switch(e) { case a: break; case b: break; } } int main() { }
// Copyright 2020 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 "src/storage/volume_image/utils/fd_test_helper.h" #include <fcntl.h> #include <lib/fit/result.h> #include <unistd.h> #include <array> #include <...
// Copyright (C) 2016-2018 Jonathan Müller <jonathanmueller.dev@gmail.com> // This file is subject to the license terms in the LICENSE file // found in the top-level directory of this distribution. #ifndef TYPE_SAFE_DETAIL_ALL_OF_HPP_INCLUDED #define TYPE_SAFE_DETAIL_ALL_OF_HPP_INCLUDED #include <type_traits> namesp...
/**************************************************************************** * * Copyright (c) 2018 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 2018-present MongoDB 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 t...
#ifdef _USE_VULKAN #include <string.h> #include "revArray.h" #include "VulkanSwapChain.h" #include "Log.h" #include "Window.h" VulkanSwapChain::VulkanSwapChain() { memset(&swapChain, 0, sizeof(swapChain)); } VulkanSwapChain::~VulkanSwapChain() { memset(&swapChain, 0, sizeof(swapChain)); } bool VulkanSwapCha...
/*******************************************************************\ Module: Replace bodies of goto functions Author: Diffblue Ltd. \*******************************************************************/ #include "generate_function_bodies.h" #include <ansi-c/c_nondet_symbol_factory.h> #include <goto-programs/goto_...
// Copyright 2020 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 "sandbox/linux/syscall_broker/remote_syscall_arg_handler.h" #include <string.h> #include <sys/ioctl.h> #include <sys/syscall.h> #include <sys/ty...
//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------...
#include <string> #include <sstream> #include <tuple> #include <vector> #include <algorithm> // For External Library #include <torch/torch.h> #include <opencv2/opencv.hpp> #include <boost/filesystem.hpp> #include <boost/range/iterator_range.hpp> #include <png++/png.hpp> // For Original Header #include "transforms.hpp" ...
// **************************************************************************** // This file is part of the Integrating Vision Toolkit (IVT). // // The IVT is maintained by the Karlsruhe Institute of Technology (KIT) // (www.kit.edu) in cooperation with the company Keyetech (www.keyetech.de). // // Copyright (C) 2014 K...
//===-- runtime/type-info.cpp ---------------------------------------------===// // // 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 // //===---------------------------...
#include "ofMain.h" #include "ofApp.h" #include "ofVec2f.h" //======================================================================== int main( ){ ofVec2f size = ofVec2f(1920,1080); ofSetupOpenGL(size.x,size.y,OF_FULLSCREEN); // <-------- setup the GL context // this kicks off the running of my app // can be O...
/* ; Project: Open Vehicle Monitor System ; Date: 21th January 2019 ; ; (C) 2019 Geir Øyvind Vælidalo <geir@validalo.net> ; (C) 2021 Marko Savela <marko.savela@gmail.com> ; ; Permission is hereby granted, free of charge, to any person obtaining a copy ; of this software and associ...
#include "TaskManager.h" #include "Task.h" #include "TaskShell.h" #include "TaskCpp.h" #include "PredefinedCppTasks.h" #include "assert.h" #include <vector> #include <unordered_map> #include <iostream> #include <sstream> void TaskManager::killAllTasks() { /* Delete tasks. As the destructor of Task is called, ...
#include "ImplementTrie_PrefixTree/implementTrie_PrefixTree.h" #include "gtest/gtest.h" using namespace std; class implementTrie_PrefixTree_MultipleParamsTests : public ::testing::TestWithParam<tuple<int,int>>{ }; TEST_P(implementTrie_PrefixTree_MultipleParamsTests, CheckAns){ int n = get<0>(GetParam()); ...
#include<stdio.h> #include<stdlib.h> int main() { int a,absolute; printf("?????????????"); scanf("%d",&a); if(a>0) { absolute=a; } else{ absolute=-a; } printf("%d???????:%d\n",a,absolute); system("pause"); return 0; }
// [Fog-G2d] // // [License] // MIT, See COPYING file in package // [Dependencies] #include <Fog/Core/Memory/MemMgr.h> #include <Fog/Core/Memory/MemOps.h> #include <Fog/Core/Tools/Logger.h> #include <Fog/G2d/Text/OpenType/OTEnum.h> #include <Fog/G2d/Text/OpenType/OTHHea.h> namespace Fog { // ========================...
/** * Copyright (c) 2012-2014 Microsoft Mobile and/or its subsidiary(-ies). * All rights reserved. * * For the applicable distribution terms see the license text file included in * the distribution. */ #include "CCCommon.h" #include "ccMacros.h" #include "CCFileUtils.h" #include "CCString.h" #include <QFile> NS_CC_...