text
stringlengths
5
1.04M
// REDMOND\glennha // <Snippet1> using namespace System; using namespace System::Collections::Generic; void main() { List<String^>^ dinosaurs = gcnew List<String^>(); dinosaurs->Add("Pachycephalosaurus"); dinosaurs->Add("Amargasaurus"); dinosaurs->Add("Mamenchisaurus"); dinosaurs->Add("Deinonychus...
/* Copyright 2019, Gurobi Optimization, LLC */ /* This example considers the following separable, convex problem: minimize f(x) - y + g(z) subject to x + 2 y + 3 z <= 4 x + y >= 1 x, y, z <= 1 where f(u) = exp(-u) and g(u) = 2 u^2 - 4 u, for all real u...
// // msgf_audio_buffer.cpp // // Musical Sound Generator Framework // // Created by Hasebe Masahiko on 2012/10/23. // Copyright (c) 2012 Hasebe Masahiko. All rights reserved. // #include "msgf_audio_buffer.h" using namespace msgf; //--------------------------------------------------------- // Mix And Check //---...
/* //@HEADER // ************************************************************************ // // KokkosKernels 0.9: Linear Algebra and Graph Kernels // Copyright 2017 Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, // the U.S. Government retain...
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/Handle.hpp> #include <RED4ext/Scripting/Natives/Generated/red/Event.hpp> namespace RED4ext { namespace ent { struct Entity; } namespace game::targeting { struct SystemEntityTarg...
/* * Copyright (C) 2010 El proyecto de código abierto de Android * * Concedido bajo la licencia de Apache, versión 2.0 (la "Licencia"); * solo podrá usar este archivo en cumplimiento con la Licencia. * Puede obtener una copia de la Licencia en * * http://www.apache.org/licenses/LICENSE-2.0 * * A menos que lo exij...
// Copyright 2005, 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 conditions ...
#include "basic.hpp" #include <string> #include <iostream> using namespace std; static inline void printTestSeparator(const string& title = "", bool isfirstTest = false) { printf("%s------ %s ------\n", !isfirstTest ? "\n\n" : "", title.c_str()); } void runAllTests() { printTestSeparator("ROLL 1 <Die>", true); ...
/****************************************************************************** * * Project: TIGER/Line Translator * Purpose: Implements TigerPoint class. * Author: Mark Phillips, mbp@geomtech.com * ****************************************************************************** * Copyright (c) 2002, Mark Phil...
#include "PluginProcessor.h" #include "PluginEditor.h" #include "util/util.h" const double SpeedOfSound = 340.0; // m/s at 15C, normal pressure const auto bgColor = Colour{48, 48, 48}, textColor = Colour{200, 200, 200}; inline double msToCm(double ms) { static const double cmPerMs = SpeedOfSound * 100.0 /...
// // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco 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) // // Official repository: https://github.com/boostorg/beast // #ifndef BOOST_BEAST_...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE36_Absolute_Path_Traversal__char_connect_socket_open_34.cpp Label Definition File: CWE36_Absolute_Path_Traversal.label.xml Template File: sources-sink-34.tmpl.cpp */ /* * @description * CWE: 36 Absolute Path Traversal * BadSource: connect_socket Read data usin...
#include "editaddressdialog.h" #include "ui_editaddressdialog.h" #include "addresstablemodel.h" #include "guiutil.h" #include <QDataWidgetMapper> #include <QMessageBox> EditAddressDialog::EditAddressDialog(Mode mode, QWidget *parent) : QDialog(parent), ui(new Ui::EditAddressDialog), mapper(0), mode(mode), mo...
/**************************************************************************** ** Meta object code from reading C++ file 'charitydialog.h' ** ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "qt/charitydialog.h" #include <...
#include <bits/stdc++.h> #define x first #define y second #define pb push_back #define all(v) v.begin(),v.end() #pragma gcc optimize("O3") #pragma gcc optimize("Ofast") #pragma gcc optimize("unroll-loops") using namespace std; const int INF = 1e9; const int TMX = 1 << 18; const long long llINF = 1e18+10; const long lo...
#include "pseudo_barrier.h" #include "thread.h" #include <chrono> #include <cinttypes> #include <csignal> #include <cstdio> #include <cstdlib> #include <cstring> #include <thread> #include <unistd.h> #include <vector> pseudo_barrier_t barrier; static void sigusr1_handler(int signo) { char buf[100]; std::snprintf(...
//********************************************************* // Factor_Service.cpp - modify the number of runs //********************************************************* #include "Reschedule.hpp" //--------------------------------------------------------- // Factor_Service //------------------------------------------...
//===--- SemaInit.cpp - Semantic Analysis for Initializers ----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2020 Ben Vanik. All rights reserved. ...
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited JUCE is an open source library subject to commercial or open-source licensing. By using JUCE, you agree to the terms of both the...
/** * @author Moe_Sakiya sakiya@tun.moe * @date 2019-08-04 15:04:16 * */ #include <iostream> #include <string> #include <algorithm> #include <set> #include <map> #include <vector> #include <stack> #include <queue> #include <cstdio> #include <cstring> #include <cstdlib> #include <cmath> using namespace std; ...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
// 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 "third_party/arcore-android-sdk/src/libraries/include/arcore_c_api.h" #include <dlfcn.h> #include "base/logging.h" namespace { // Run CALL ma...
/********************************************************************** * Online Judge : POJ * Problem Title : Cows * ID : 2481 * Date : 11/28/2008 * Time : 22:16:38 * Computer Name : EVERLASTING-PC *************************************************...
#include <cstdio> #include <cstdlib> #include <cstring> #include <wchar.h> #include "Assert.hpp" #include "lib.hpp" #include <axl.util/WString.hpp> int main(int argc, char *argv[]) { bool verbose = argc > 1 && (0 == strcmp(argv[1], "-v") || 0 == strcmp(argv[1], "--verbose")); using namespace axl; usin...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2013 The SeedcoinX developer // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "util.h" #include "sync.h" #include "strlcpy.h" #include "version.h" #includ...
// Computes the average image pixel intensity for the whole training // set and stores the value in binaryproto file #include <gflags/gflags.h> #include <glog/logging.h> #include <google/protobuf/text_format.h> #include <stdint.h> #include <sys/stat.h> #include <fstream> // NOLINT(readability/streams) #include <stri...
#include "defs.inc" #include <cmath> #include <vector> #include <atomic> #include <thread> double mylog2(double value) { constexpr int mantissa_bits = 52, exponent_bias = 1022; const double half = 0.5; std::uint64_t half_bits = reinterpret_cast<const std::uint64_t&>(half); int e,lt; uin...
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2014-2018 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
/* NiuTrans.NMT - an open-source neural machine translation system. * Copyright (C) 2020 NiuTrans Research. 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 * * h...
/** * @file * @copyright defined in eos/LICENSE.txt */ // #include <stdlib.h> #include <eosio/rabbitmq_plugin/rabbitmq_producer.hpp> #include <eosio/rabbitmq_plugin/rabbitmq_plugin.hpp> #include <eosio/chain/eosio_contract.hpp> #include <eosio/chain/config.hpp> #include <eosio/chain/exceptions.hpp> #include <eosi...
#pragma once #include <wrtstat/separator_options.hpp> #include <wrtstat/types.hpp> namespace wrtstat { struct aggregator_options : separator_options { size_type outgoing_reduced_size = 128; }; }
/* ; Project: Open Vehicle Monitor System ; Date: 14th March 2017 ; ; Changes: ; 1.0 Initial release ; ; (C) 2011 Michael Stegen / Stegen Electronics ; (C) 2011-2017 Mark Webb-Johnson ; (C) 2011 Sonny Chen @ EPRO/DX ; ; Permission is hereby granted, free of charge, to ...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Including type: PlatformAchiev...
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
/************************************************************************* > File Name: CountMember.cpp > Author: Netcan > Descripton: CountMember > Blog: https://netcan.github.io/ > Mail: 1469709759@qq.com > Created Time: 2020-11-09 22:23 ********************************************************...
//===- ClangAttrEmitter.cpp - Generate Clang attribute handling =-*- C++ -*--=// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <float.h> #include <sys/stat.h> #include "perf.h" #include "SeisppError.h" #include "TimeSeries.h" #include "ensemble.h" #include "GenericFileHandle.h" using namespace std; using namespace SEISPP; namespace SEISPP { /* This is a small (private) helper function common to both of the following constru...
#include <bits/stdc++.h> #include <omp.h> #include <sys/time.h> using namespace std; // namespace { static const int MAXN = 8; static int Cn[MAXN], CnBase[MAXN][MAXN]; struct T { char v[MAXN][MAXN]; } _mem[1<<16]; static T *LCA[MAXN]; void printTidInfo(int l, int i) { int lsz, rsz, lid, rid; { int sum = ...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-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 <boost/assign/list_of.hpp> #include "wallet.h" #include "walletdb.h" #include...
//===--- SemaChecking.cpp - Extra Semantic Checking -----------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "rpcconsole.h" #include "ui_rpcconsole.h" #include "clientmodel.h" #include "bitcoinrpc.h" #include "guiutil.h" #include <QTime> #include <QTimer> #include <QThread> #include <QTextEdit> #include <QKeyEvent> #include <QUrl> #include <QScrollBar> #include <openssl/crypto.h> // TODO: make it possible to filt...
/* DefinitionalRepresentation.cpp * BRL-CAD * * Copyright (c) 1994-2021 United States Government as represented by * the U.S. Army Research Laboratory. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version...
// Time-stamp: <2021-02-19 17:42:33 anup> // Units: All SI units - seconds, Volts, Ampere, Meters, Simenes, Farads // Description: This file will contain all the codes which will modify the variables or parameters at run time // This script will implement the call to dynamic parameters and external currents #include <...
// See the file "COPYING" in the main distribution directory for copyright. #include "zeek-config.h" #include "zeek/DFA.h" #include "zeek/EquivClass.h" #include "zeek/Desc.h" #include "zeek/Hash.h" namespace zeek::detail { unsigned int DFA_State::transition_counter = 0; DFA_State::DFA_State(int arg_state_num, cons...
// Copyright (c) 2011-2016 The Cryptonote developers // Copyright (c) 2014-2017 XDN-project developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "StdInputStream.h" namespace Common { StdInputStream::StdInput...
/* Copyright (c) 2013, Philipp Krähenbühl 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 lis...
#include "Parser.h" #include <stdexcept> #include <iomanip> #include <iostream> #include <string> #include <sstream> #include <vector> #include <utility> using namespace std; /* vector with each flag and their corresponding description */ vector<pair<string, string>> const options{ {"-h, --help", "Show this mess...
// ReDucTor is an awesome guy who helped me a lot #include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules #include "Server.h" #include "ClientHandle.h" #include "Mobs/Monster.h" #include "Root.h" #include "World.h" #include "Bindings/PluginManager.h" #include "ChatColor.h" #incl...
//WAp to find cube of a number using function #include <stdio.h> int cube (int); // Function declaration int main() { int n, c; printf("Enter any number: "); scanf("%d", &n); //Inputting number from user c = cube(n); printf("Cube of %d is %d", n, c); } cube(int n) ...
#include "Sortings.hpp" void main() { int a[] = { 1, 3, 4 }; Sortings::MergeSort<int>(a, 3); }
// 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 "ui/compositor/layer_animation_element.h" #include "base/compiler_specific.h" #include "cc/animation/animation.h" #include "cc/animation/ani...
 /* Copyright (c) 2009-2012 Maximus5 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 and the followin...
// SPDX-License-Identifier: Apache-2.0 /* * Copyright (C) 2019 Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> */ #include <iostream> #include <stdexcept> #include "device.hpp" using namespace std; Device::Device(Jtag *jtag, string filename, const string &file_type, bool verify, int8_t verbose): ...
// Copyright (c) 2011-2018 The Earthcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <qt/transactiondescdialog.h> #include <qt/forms/ui_transactiondescdialog.h> #include <qt/transactiontablemodel.h>...
/****************************************************************************** * Copyright 2018 The Apollo 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 ...
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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 ...
/* Copyright 2003-2013 Joaquin M Lopez Munoz. * 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/multi_index for library home page. */ #pragma once #include <brigand/...
// Copyright (c) 2018 The PIVX developers // Copyright (c) 2018 The Midas developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "multisigdialog.h" #include "forms/ui_multisigdialog.h" #include "askpassphrasedi...
/* * utils.cc * Copyright (C) 2019 Marc Kirchner * * Distributed under terms of the MIT license. */ #include "utils.h" Vec3 reflect(const Vec3& v, const Vec3& n) { return v - 2*Vec3::dot(v, n)*n; } bool refract(const Vec3& v, const Vec3& n, float nRatio, Vec3& refracted) { // nRatio is the ratio of ref...
/* * Copyright 2019-2020 Hewlett Packard Enterprise Development LP. * * 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 * copyrigh...
#include "Precomp.h" #include "CPPBuild.h" #include <iostream> int main(int argc, char** argv) { try { std::vector<std::string> args; for (int i = 0; i < argc; i++) args.push_back(argv[i]); CPPBuild app; if (args.size() == 2 && args[1] == "generate") { app.generate(); return 0; } else if (ar...
#include <eosiolib/chain.h> #include <eosiolib/dispatcher.hpp> #include <eosiolib/singleton.hpp> #include <eosiolib/table.hpp> #include <eosiolib/vector.hpp> #include <identity/identity.hpp> namespace identity_test { using eosio::action_meta; using eosio::singleton; using std::string; using std::vecto...
/* iPIC3D was originally developed by Stefano Markidis and Giovanni Lapenta. * This release was contributed by Alec Johnson and Ivy Bo Peng. * Publications that use results from iPIC3D need to properly cite * 'S. Markidis, G. Lapenta, and Rizwan-uddin. "Multi-scale simulations of * plasma with iPIC3D." Mathemat...
#include <bits/stdc++.h> using namespace std; /** * Suffix Array * * Source: https://cp-algorithms.com/string/suffix-array.html */ /** * Construction O(n log n) * * Idea: Order by cyclic shift * * String: dabbb * 1: abbb$d abbb * 4: b$dabb b * 3: bb$dab bb * 2: bbb$...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__dest_wchar_t_alloca_cpy_82a.cpp Label Definition File: CWE121_Stack_Based_Buffer_Overflow__dest.label.xml Template File: sources-sink-82a.tmpl.cpp */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Set data point...
// 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 "chrome/browser/ui/views/try_chrome_dialog_win/button_layout.h" #include "base/check_op.h" #include "ui/gfx/geometry/rect.h" #include "ui/views/...
extern int global; /* OUTPUT: { "includes": [], "skipped_by_preprocessor": [], "types": [{ "id": 0, "usr": 17, "detailed_name": "", "short_name": "", "kind": 0, "declarations": [], "bases": [], "derived": [], "types": [], "funcs": [], ...
// --------------------------------------------------------------------------- // IMLAB // --------------------------------------------------------------------------- #include "imlab/buffer_manage/buffer_manager.h" #include <gtest/gtest.h> #include <algorithm> #include <atomic> #include <cstring> #include <memory> #inc...
/* A string can be abbreviated by replacing any number of non-adjacent, non-empty substrings with their lengths. The lengths should not have leading zeros. For example, a string such as "substitution" could be abbreviated as (but not limited to): "s10n" ("s ubstitutio n") "sub4u4" ("sub stit u tion") "12" ("substitut...
//========= Copyright Valve Corporation, All rights reserved. ============// #include "stdafx.h" #include "msgprotobuf.h" #include "smartptr.h" #include "rtime.h" #include "gcsdk/gcreportprinter.h" #include <winsock.h> // memdbgon must be the last include file in a .cpp file!!! #include "tier0/memdbgon.h" namespace ...
// The MIT License (MIT) // // Copyright (c) 2015 Jason Shipman // // 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, ...
/* Copyright 2005-2015 Intel Corporation. All Rights Reserved. This file is part of Threading Building Blocks. Threading Building Blocks is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundat...
#include <geodesuka/core/hid/mouse.h> #include <geodesuka/core/math.h> namespace geodesuka { namespace core { namespace hid { mouse::mouse() { Mode = MODE_NORMAL; } mouse::~mouse() { } math::boolean mouse::operator[](math::integer buttonID) { if ((Action[buttonID] == BUTTON_PRESS) || (Ac...
/*************************************************************************/ /* gd_mono_class.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
/****************************************************************************** * Copyright 2018 The Baidu 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...
#include "PbbamInternalConfig.h" #include <pbbam/ZmwTypeMap.h> namespace PacBio { namespace BAM { // clang-format off std::map<char, ZmwType> ZmwTypeMap::ParseChar { { 'C' , ZmwType::CONTROL }, { 'M' , ZmwType::MALFORMED }, { 'N' , ZmwType::NORMAL }, { 'S' , ZmwType::SENTINEL } }; // clang-form...
#include <Hazel.h> class Sandbox : public Hazel::Application { public: Sandbox() { } ~Sandbox() { } private: }; Hazel::Application* Hazel::CreateApplication() { return new Sandbox(); }
#include "stream.h" #include <library/unittest/registar.h> #include <util/stream/zlib.h> Y_UNIT_TEST_SUITE(THttpTestMedium) { Y_UNIT_TEST(TestCodings2) { TStringBuf data = "aaaaaaaaaaaaaaaaaaaaaaa"; for (auto codec : SupportedCodings()) { if (codec == AsStringBuf("z-zlib-0")) { ...
/* The MIT License (MIT) Copyright (c) 2014 Anatoli Steinmark 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 ...
//-------------------------------------------------------------------------------------- // File: NBodyGravityCS11.cpp // // Demonstrates how to use Compute Shader to do n-body gravity computation // // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------...
#include "pch.h" #include "SharedAdaptiveCard.h" #include "ParseUtil.h" #include "ShowCardAction.h" #include "ParseContext.h" using namespace AdaptiveSharedNamespace; ShowCardAction::ShowCardAction() : BaseActionElement(ActionType::ShowCard) { PopulateKnownPropertiesSet(); } Json::Value ShowCardAction::Serialize...
/* * * 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...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
#include <tesseract_common/macros.h> TESSERACT_COMMON_IGNORE_WARNINGS_PUSH #include <gtest/gtest.h> #include <Eigen/Geometry> TESSERACT_COMMON_IGNORE_WARNINGS_POP #include <tesseract_urdf/cylinder.h> #include <tesseract_geometry/impl/cylinder.h> #include "tesseract_urdf_common_unit.h" TEST(TesseractURDFUnit, parse_cy...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "ProtoNN.h" using namespace EdgeML; using namespace EdgeML::ProtoNN; int main() { ProtoNNModel::ProtoNNHyperParams hyperParam; hyperParam.problem_type = ProblemFormat::multiclass; hyperParam.initializati...
// // Created by Jeromy Black on 12/19/20. // #include "Animation.h" #include "glad.h" #include "GLFW/glfw3.h" #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <iostream> #include "glm/glm.hpp" using namespace std; int Animation::FindKey() { int i = 0; for (; i < keys.size() - 1; i+...
__device__ void builtin_function() {} // Should be __host__ __device__ void device_function() {} // Should be __host__ void uncalled_function() { device_function(); } // Should be __device__, // since __device__ builtin is called void uncalled_builtin_call() { builtin_function(); } template<class Func> __global_...
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of t...
#include <DebugHelper.hpp> #include "GamePacket.hpp" #include <MessageTranslation\FlatbufferTranslator.hpp> #include "..\CallbackProcessor\SharedMemoryDefinitions.hpp" #include "..\CallbackProcessor\CallbackProcessor.hpp" #include <BoostUtilities\BoostUtilities.hpp> #include <BoostUtilities\BoostConstants.hpp> namesp...
/* * Scene_House_Out.cpp * enigma * * Created by Rockford on 22/03/11. * Copyright 2011 Casual Games France. All rights reserved. * */ #include "MyGame.h" #include "EScene.h" #include "Scene_House_Out.h" #include "ESceneDirector.h" #include "EMiniJeuPentagram.h" #include "MusicBank.h" /* Constructeur */ Sc...
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: Frank Dellaert, et al. (see THANKS for the full author list) * See LICENSE for the license information * ---...
// SPDX-License-Identifier: Apache-2.0 #define CATCH_CONFIG_RUNNER #include <catch2/catch_all.hpp> int main(int argc, char const* argv[]) { int const result = Catch::Session().run(argc, argv); // avoid closing extern console to close on VScode/windows // system("pause"); return result; }
#include"Problem_Test.h" Problem_Test::Problem_Test() { printf("Optimization Problem Testing ...\n\n"); //printf("This is not an Optimization Algorithm\n"); //printf("Made to test Optimization Problems!\n"); } Problem_Test::~Problem_Test() { } double Problem_Test::optimize(Optimization_Problem* problem, int nu...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-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 "interpreter.h" #include "primitives/transaction.h" #include "crypto/ri...
// // Created by raver119 on 31.10.2017. // #include <helpers/logger.h> namespace nd4j { #ifdef __CUDACC__ __host__ #endif void Logger::info(const char *format, ...) { va_list args; va_start(args, format); vprintf(format, args); va_end(args); fflush(stdout); } ...
// Copyright (c) 2018 Hartmut Kaiser // Copyright (c) 2018 Bita Hasheminezhad // Copyright (c) 2018 Parsa Amini // // 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(PHYLANX_PLUGINS_MATRIXOPS_SQUEEZE_OPER...
// Copyright 2015 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 <memory> #include <string> #include "base/bind.h" #include "base/macros.h" #include "base/memory/ref_counted.h" #include "base/run_loop.h" #incl...
/*========================================================================= Program: ALBA (Agile Library for Biomedical Applications) Module: albaVMEMeter Authors: Marco Petrone, Paolo Quadrani Copyright (c) BIC All rights reserved. See Copyright.txt or This software is distributed WITHOUT ANY WARRANTY; with...
// Andrei Gaponenko, 2011 #include <string> #include <vector> #include <algorithm> // Mu2e includes. #include "Offline/MCDataProducts/inc/StatusG4.hh" #include "Offline/MCDataProducts/inc/StepPointMC.hh" #include "Offline/Mu2eUtilities/inc/compressSimParticleCollection.hh" // art includes. #include "fhiclcpp/Parame...