text
stringlengths
7
961k
#include "signalflow/core/graph.h" #include "signalflow/node/processors/filters/moog.h" #include <stdlib.h> namespace signalflow { MoogVCF::MoogVCF(NodeRef input, NodeRef cutoff, NodeRef resonance) : UnaryOpNode(input), cutoff(cutoff), resonance(resonance) { this->name = "moog"; this->create_input("cutof...
#ifndef FACTORIAL_HPP #define FACTORIAL_HPP // POST: returns n! unsigned int factorial(const unsigned int n); #endif // FACTORIAL_HPP
/* 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 "ray.h" #include "../../../utility/glm_vecio.h" #include <iostream> namespace minecraft { namespace ent { Ray::Ray(const glm::vec3& direction, const glm::vec3& position) : m_position(position), m_d(6.0f), m_endPosition(position) { m_directionScaled = glm::normalize(direction) * m_d; } const gl...
#include "RtspPusher.h" #include "RtspConnection.h" #include "net/Logger.h" #include "net/TcpSocket.h" #include "net/Timestamp.h" #include <memory> using namespace xop; RtspPusher::RtspPusher(xop::EventLoop *event_loop) : event_loop_(event_loop) { } RtspPusher::~RtspPusher() { this->Close(); } std::shared_ptr<R...
#include <QtGui> #include <QString> #include "task.h" MyWidget::MyWidget ( QWidget *parent ) : QWidget( parent ) { thisWidgetLayout = new QVBoxLayout ( this ) ; instruction = new QLabel ; instruction->setText( "Enter a number between 1 and 10 ! Numbers above 10 are decremented, below 0 incremented!" ) ; ...
// -*- C++ -*- // // ---------------------------------------------------------------------- // // Brad T. Aagaard, U.S. Geological Survey // // This code was developed as part of the Computational Infrastructure // for Geodynamics (http://geodynamics.org). // // Copyright (c) 2010-2017 University of California, Davis /...
// Copyright (c) 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 "init.h" #include "util.h" #include "sync.h" #include "ui_interface.h" #includ...
// Copyright (c) 2014 The Bitcoin Core developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2018 The Myce developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-lice...
//============================================================================== // // PLEASE DO NOT EDIT; THIS FILE WAS AUTOMATICALLY GENERATED BY GENMOD 1.0.7 // //============================================================================== #include <cimple/cimple.h> #include "DualNamespace1_Provider.h" #include "...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "errorhandler.h" #include "leakdetector.h" #include "logger.h" #include <QApplication> namespace { Erro...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-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...
#include <math.h> #include <stdio.h> #include <cstring> #include <iostream> #include <list> using namespace std; #define INF 1073741824 // ------------------------------- FIBONACCI HEAP ------------------------------- // template<class T> class FibHeap { public: class FibNode { public: T key; ...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2011-2012, John Haddon. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Re...
/** * Copyright 2020 Huawei Technologies 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...
// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*- // we only include RcppArmadillo.h which pulls Rcpp.h in for us #include "RcppArmadillo.h" // via the depends attribute we tell Rcpp to create hooks for // RcppArmadillo so that the build process will know what to do // // [[Rcpp::depe...
/* file: cross_entropy_loss_dense_default_batch_fpt_cpu.cpp */ /******************************************************************************* * Copyright 2014 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ...
/*************************************************************************** * Copyright 1998-2017 by authors (see AUTHORS.txt) * * * * This file is part of LuxRender. * * ...
// Copyright 2013 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/android/content_uri_utils.h" #include "base/android/context_utils.h" #include "base/android/jni_android.h" #include "base/android/jni_stri...
// Copyright 2014 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 <cryptohi.h> #include <keyhi.h> #include <pk11pub.h> #include <secerr.h> #include <sechash.h> #include "base/stl_util.h" #include "content/child...
#pragma once #include <ctime> #include <string> enum class DayTimeType { Day, Night, PolarDay, PolarNight }; std::string DebugPrint(DayTimeType type); /// Helpers which calculates 'is day time' without a time calculation error. /// @param timeUtc - utc time /// @param latitude - latutude, -90...+90 degrees ...
/* * Copyright 2015 David A. Boyuka II * * 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 "DSCCommandArgs.h" #include "ServiceManager.h" using namespace deltix; using namespace deltix::dsc; int DSCCreateService(ServiceManager &dsm, const DSCCommandArgs &args); int DSCDeleteService(ServiceManager &dsm, const DSCCommandArgs &args); int DSCStartService(ServiceManager &dsm, const DSCCommandArgs &args...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "bookmaker.h" #include "SkOSFile.h" #include "SkOSPath.h" #define FPRINTF(...) \ if (fDebugOut) { \ SkDebugf(__VA_ARGS__);...
#include "pch-cpp.hpp" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <limits> #include <stdint.h> // System.Char[] struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34; // System.AttributeUsageAttribute struct AttributeUsageAttribute_tBB0BAAA82036E6FCDD80A688BBD039F6FFD8...
/** * Project Explore * Chunk Class * File: Chunk.cpp * Date: Feb 12 2021 */ #include "Chunk.h" Chunk::Chunk(int x, int y): x(x), y(y) { for (int j = 0; j < CHUNKSIZE; j++) { for (int i = 0; i < CHUNKSIZE; i++) { _tiles.push_back(new Tile(i, j)); ...
/*************************************************************************** * Copyright (c) 2016, Johan Mabille and Sylvain Corlay * * * * Distributed under the terms of the BSD 3-Clause License. * * ...
/** * @file rdmdeviceresponder.cpp * */ /* Copyright (C) 2018-2020 by Arjan van Vught mailto:info@orangepi-dmx.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,...
/**************************************************************************************** * @author: kzvd4729# created: Jan/09/2018 18:31 * solution_verdict: Accepted language: GNU C++14 * run...
#include <iostream> #include <string> #include <map> #include "Society.h" bool City::IsBig() const { if (population_ > 100000) { return true; } return false; } void City::Grow(int const num_people) { if (num_people >= 0) { percent_change_ = (1.0 * num_people) / population_; p...
// 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 // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-li...
#ifndef TEST_100_CC #define TEST_100_CC #include <iostream> #include <vector> #include <string> #include "PDBServer.h" #include "DistributionManagerServer.h" #include "DistributionManagerClient.h" #include "InterfaceFunctions.h" #include "NodeInfo.h" typedef vector<string> CommandLineStringArgs; using namespace pd...
/* ** License Applicability. Except to the extent portions of this file are ** made subject to an alternative license as permitted in the SGI Free ** Software License B, Version 1.1 (the "License"), the contents of this ** file are subject only to the provisions of the License. You may not use ** this file except in co...
#include <bits/stdc++.h> using namespace std; /* Given a linked list, rearrange the node values such that they appear in alternating low -> high -> low -> high ... form. For example, given 1 -> 2 -> 3 -> 4 -> 5, you should return 1 -> 3 -> 2 -> 5 -> 4. */ struct node{ int data; node *next; }; node* newNode(int dat...
// // This example is a demonstration of Semi-grand Density of States Sampling // // of a Lebwhol-Lasher binary mixture // // Include header files // #include "../src/Ensembles/ParallelDOSEnsemble.h" // #include "../src/Ensembles/SemiGrandDOSEnsemble.h" // #include "../src/Models/LebwohlLasherModel.h" // #include "../...
/* * Copyright (c) 2013 Matt Fichman * * 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, publis...
/* * Copyright (C) 2019-2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ namespace L0 { } // namespace L0
#include "GpGpu/GpGpu.h" int main() { return 0;//Main_UnitTest_Memoire(); }
class Solution { public: int maxSubArray(vector<int>& nums) { if (nums.size() == 0) { return 0; } int result = nums[0]; int tmp = nums[0]; for (int i = 1; i < nums.size(); i++) { tmp = max(nums[i], tmp + nums[i]); result = max(result, tmp);...
/*************************************************************************** * * Project _____ __ ____ _ _ * ( _ ) /__\ (_ _)_| |_ _| |_ * )(_)( /(__)\ )( (_ _)(_ _) * (_____)(__)(__)(__) |_| |_| * * * Copyright 2018-present, Leoni...
/** * Copyright (c) 2000-2001 Aaron D. Gifford * Copyright (c) 2013-2014 Pavol Rusnak * 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 ...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
/******************************************************************************* * Copyright 2020 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/l...
/* * Copyright 2019 © Centre Interdisciplinaire de développement en Cartographie des Océans (CIDCO), Tous droits réservés */ /* * \author Christian Bouchard,glm */ #include <QDebug> #include "workerdetection.h" WorkerDetection::WorkerDetection(Project & project, DetectionWindow & detectionWindow, Detector & de...
//================================================================================================== /* Copyright 2012 - 2015 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ //===============================...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
/******************************** Copyright © 2020 Authors: Venkat Ragavan S, Garima Dave, Akash Manish Lad, Tarun A H, Dr.Mohana N Organization: VIT Chennai Email: mail2venkat21@gmail.com, garimadave628@gmail.com, akashlad4000@gmail.com, tarun.ambili123@gmail.com, mohana.n@vit.ac.in This toolbox integrates the func...
#include "Application.h" namespace VoidEngine { Application::Application() { } Application::~Application() { } void Application::Run() { while (true); } }
/*========================================================================= Program: Visualization Toolkit Module: vtkPeriodicTable.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is...
// // Copyright 2019 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
// Copyright (C) 2015 - 2016 Deutsche Telekom AG. // // Author: Razvan Becheriu <razvan.becheriu@qualitance.com> // // 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...
#include <iostream> #include "Poco/Net/SocketAddress.h" #include "Poco/Net/DatagramSocket.h" int main(int argc, char** argv) { Poco::Net::SocketAddress address("127.0.0.1", 32451); Poco::Net::DatagramSocket socket(address); std::cout << "Udp Echo Client\n\n"; try { while (true) { std::cout << "> "; ch...
/* * Copyright 2003-2008, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. * * Authors: * Andrew Bachmann */ #include <CharacterSet.h> #include <CharacterSetRoster.h> #include <UTF8.h> #include <errno.h> #include <iconv.h> #include <stdio.h> //#define DEBUG_CONV 1 #ifdef D...
#include <QtGui> #include <QtSql> #include "employeeform.h" #include "mainform.h" MainForm::MainForm() { createDepartmentPanel(); createEmployeePanel(); splitter = new QSplitter(Qt::Vertical); splitter->setFrameStyle(QFrame::StyledPanel); splitter->addWidget(departmentPanel); splitter->addWid...
#include <iostream> #include <sstream> #include <string> #include <algorithm> #include <functional> #include <vector> #include <deque> #include <queue> #include <map> #include <set> #include <stack> #include <list> #include <unordered_map> #include <unordered_set> #include <iterator> #include <bitset> #include <limits>...
/*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...
class Solution { public: int findMaxLength(vector<int>& a) { int f=0, ans=0; unordered_map<int,int>mp; mp[0] = -1; for(int i=0; i<a.size(); i++){ f += a[i]==1 ? 1 : -1; if(mp.find(f) == mp.end()) mp[ f ] = i; else ans = ...
// 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: UnityEngine.jvalue #i...
/* 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 disclaimer. * Redistributions in binary form ...
#include <bits/stdc++.h> #define FR(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; typedef vector<int> vi; typedef pair<int, int> ii; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); string S; cin >> S; string last = S; for (int i = (int)S.length() / ...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2016 ArangoDB GmbH, Cologne, Germany /// /// 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...
//Write a macro that swaps two numbers.WAP to use it. #include<iostream> using namespace std; #define swap(a,b) {a=a+b; b=a-b; a=a-b;} int main() { int x, y; cout << "Enter two numbers:" << endl; cin >> x >> y; cout << endl << "Numbers before swapping:" << endl; cout << x << "\t" << y; swap(x, y); cout << endl <...
////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2016-20, Lawrence Livermore National Security, LLC and Umpire // project contributors. See the COPYRIGHT file for details. // // SPDX-License-Identifier: (MIT) ////////////////////////////////////////////////////////////////...
#define BOOST_TEST_MODULE pcraster old_calc manual_examples #include <boost/test/unit_test.hpp> #include <vector> #include <iostream> #include "com_pathinfo.h" #include "com_exception.h" #include "calc_manualexampletester.h" struct Fixture { Fixture() { } ~Fixture() { com::changeWorkingDi...
#include <sstream> #include "gcut3.h" namespace c3 { std::string cCut::text() { std::stringstream ss; ss << "c " << myStock->ID() << " " << myDirection <<" "<< myLocation <<" " << myLevelHeight; return ss.str(); } }
#include <gtest/gtest.h> #include <nano/core_test/testutil.hpp> #include <nano/node/testing.hpp> using namespace std::chrono_literals; TEST (gap_cache, add_new) { nano::system system (24000, 1); nano::gap_cache cache (*system.nodes[0]); auto block1 (std::make_shared<nano::send_block> (0, 1, 2, nano::keypair ().prv...
#include "SystemInfosView.h" using namespace Page; #define ITEM_HEIGHT_MIN 100 #define ITEM_PAD ((LV_VER_RES - ITEM_HEIGHT_MIN) / 2) void SystemInfosView::Create(lv_obj_t* root) { lv_obj_remove_style_all(root); lv_obj_set_size(root, LV_HOR_RES, LV_VER_RES); lv_obj_set_style_bg_color(root, lv_c...
/* Copyright 2016 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...
// Copyright (c) 2012-2019 The Geranium Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <interfaces/chain.h> #include <node/context.h> #include <optional.h> #include <test/util/m...
#include "components/Momentum.hpp" Momentum::Momentum(const Velocity& velocity, const Dumping& dumping): velocity{velocity}, dumping{dumping} {} void Momentum::move(const float angle, const float deltaTime) { const auto a = angle * M_PI / 180.0f + M_PI / 2.0f; velocity.linear += Vector2f(cos(a), sin(a)) * deltaTim...
/* * channel.cxx * * I/O channel classes implementation * * Portable Windows Library * * Copyright (c) 1993-1998 Equivalence Pty. Ltd. * * The contents of this file are subject to the Mozilla Public License * Version 1.0 (the "License"); you may not use this file except in * compliance with the License. You ...
/* * Copyright (c) 2014, Oculus VR, 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. * */ #include ...
// 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. // GalleryWatchStateTracker implementation. #include "chrome/browser/extensions/api/media_galleries_private/gallery_watch_state_tracker.h" #include ...
#include <GPS.hpp> #include <iostream> #include <vector> #include <csignal> #include <unistd.h> #include <algorithm> volatile bool flag = true; GPS gps; void sig_handler(int signum) { if (signum == SIGINT) { gps.close(); exit(EXIT_SUCCESS); } } int main(int argc, const char *argv[]) { if...
#include <algorithm> #include <iostream> #include <random> const int kNumberCount = 10000; const int kChooseCount = 1000; int main() { std::random_device random_device; auto random = std::default_random_engine{random_device()}; std::uniform_int_distribution<int> distribution{0, 200000}; std::cout << kNumberC...
/** Copyright (c) 2015 <wataro> This software is released under the MIT License. http://opensource.org/licenses/mit-license.php */ #include "midso/layer/max_pool_layer.h" namespace midso { MaxPoolLayer::MaxPoolLayer(const Size & pool_size_row, const Size & pool_size_col, const Size &...
// A - Red or Not // IO #include <iostream> #include <string> using namespace std; int main() { int a; string s; cin >> a >> s; if(a < 3200) cout << "red" << endl; else cout << s << endl; return 0; }
#include "frpch.h" #include "opengl_buffer.h" #include "glad/glad.h" namespace Forge { OpenGLVertexBuffer::OpenGLVertexBuffer(float* vertices, uint32_t size) { glCreateBuffers(1, &m_rendererID); glBindBuffer(GL_ARRAY_BUFFER, m_rendererID); glBufferData(GL_ARRAY_BUFFER, size, vertices, GL_STATIC_DRAW); } Ope...
// PhoeniX OS Kernel library printf functions // Copyright © 2017 Yury Popov a.k.a. PhoeniX #include "rand.hpp" static inline bool check_rdrand() { uint32_t cpuid; asm volatile("cpuid":"=c"(cpuid):"a"(uint32_t(1)), "c"(uint32_t(0)):"ebx", "edx"); return (cpuid & (1 << 30)) != 0; } static inline bool chec...
//----------------------------------------------------------------------- // Copyright 2011 Ciaran McHale. // // 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...
// // Copyright 2013 The ANGLE 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. // // SystemInfo.cpp: implementation of the system-agnostic parts of SystemInfo.h #include "gpu_info_util/SystemInfo.h" #include <cstring> #incl...
#include<iostream> #define size 5 using namespace std; class queueCircularArray { public: int queue[size]; int front, rear; int ch; queueCircularArray(); ~queueCircularArray(); void options(); int choice(); void choiceCalling(int); void enqueue(int); int dequeue(); int frontEle(); vo...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_struct_calloc_67a.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml Template File: sources-sinks-67a.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Routines...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "test/providers/compare_provider_test_utils.h" using namespace std; namespace onnxruntime { namespace test { #if USE_CUDA constexpr const char* kGpuExecutionProvider = kCudaExecutionProvider; #elif USE_ROCM cons...
/**************************************************************************************** * @author: kzvd4729 created: Oct/29/2019 18:19 * solution_verdict: Wrong answer on test 44 language: GNU C++14 * run...
// Copyright (c) 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 <test/test_ebou.h> #include <utilstrencodings.h> #include <wallet/crypter.h> #include <vector> #include <boost/test/uni...
// Copyright (C) 2002-2012 Nikolaus Gebhardt / Thomas Alten // This file is part of the "Irrlicht Engine". // For conditions of distribution and use, see copyright notice in irrlicht.h #include "IrrCompileConfig.h" #include "IBurningShader.h" #ifdef _IRR_COMPILE_WITH_BURNINGSVIDEO_ // compile flag for this file #und...
#include "../headers/window_size.h" const int ORIGINAL_WINDOWS_WIDTH=600; const int ORIGINAL_WINDOWS_HEIGHT=600; int WINDOWS_WIDTH=ORIGINAL_WINDOWS_WIDTH; int WINDOWS_HEIGHT=ORIGINAL_WINDOWS_HEIGHT;
// Copyright (c) 2020 The aRIA Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <httpserver.h> #include <netaddress.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/...
//******************************************************************* // Copyright (C) 2000 ImageLinks Inc. // // License: LGPL // // See LICENSE.txt file in the top level directory for more details. // // Author: Garrett Potts // //************************************************************************* // $Id: os...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
// // detail/win_iocp_file_service.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 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) // #if...
// Copyright 2020 Makani Technologies 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
// RUN: %clang_cc1 -fsyntax-only -verify %s // C++98 [class.friend]p7: // C++11 [class.friend]p9: // A name nominated by a friend declaration shall be accessible in // the scope of the class containing the friend declaration. // PR12328 // Simple, non-templated case. namespace test0 { class X { void f(); //...
// survival-criteria.cpp #include <cassert> #include <utility> #include "simulator.h" namespace BS { // Returns true and a score 0.0..1.0 if passed, false if failed std::pair<bool, float> passedSurvivalCriterion(const Indiv &indiv, unsigned challenge) { if (!indiv.alive) { return { false, 0.0 }; } ...
// Copyright 2019 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/frame/web_footer_experiment_view.h" #include "base/logging.h" #include "chrome/browser/profiles/profile.h" #include "ch...
/* Copyright 2007-2015 QReal Research Group * * 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 "libutil_private.h" #include "Lights.h" #include <iostream> #include <glm/gtc/type_ptr.hpp> namespace { } CAbstractLightSource::CAbstractLightSource(unsigned index) : m_index(index) { } CAbstractLightSource::~CAbstractLightSource() { } glm::vec4 CAbstractLightSource::GetUniformPosition() const { re...
#include <torch/torch.h> #include "torchvisionlib/torchvisionlib_types.h" #include <torchvisionlib/torchvisionlib.h> #include <lantern/types.h> namespace make_raw { void* TensorPair (const tensor_pair& x) { return make_ptr<tensor_pair>(x); } } namespace from_raw { tensor_pair& TensorPair (void* x) { return *rein...
/** * @file FileReader.cpp * @version 1.0 * @author Alonso Loaiza Pereira * @e-mail aloaizapereira@gmail.com * @university Tecnológico de Costa Rica (TEC) */ #include "FileReader.hpp" //Libraries #include <fstream> /* ifstream object to open and read text files*/ #include <iostream> /* cout, cerr, end...