text
stringlengths
5
1.04M
/** * @file mean_split_impl.hpp * @author Yash Vadalia * @author Ryan Curtin * * Implementation of class(MeanSplit) to split a binary space partition tree. * * mlpack is free software; you may redistribute it and/or modify it under the * terms of the 3-clause BSD license. You should have received a copy of the...
// Copyright (c) 2017-2018 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 <wallet/coinselection.h> #include <util.h> #include <utilmoneystr.h> // Descending order comparator struct { bo...
/* * @Date: 2021-05-06 10:51:55 * @Author: Mengsen Wang * @LastEditors: Mengsen Wang * @LastEditTime: 2021-05-06 10:56:43 */ #include <algorithm> #include <cassert> #include <vector> using namespace std; int rob(vector<int> &nums) { int size = nums.size(); if (size == 1) { return nums[0]; } int first...
/* Copyright 2003-2008 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. */ #ifndef BOOST_MULTI_INDEX_SAFE_MODE_ERRORS...
// // posix/descriptor_base.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2016 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_POSI...
// // branch-and-bound.cpp // SofaBounds Version 1.0 // // This source file is part of the SofaBounds software package // SofaBounds is a program that proves upper bounds in the moving sofa problem, // as described in the paper "Improved upper bounds in the moving sofa problem", // by Yoav Kallus and Dan Romik //...
#include "../../includes/linux/InotifyService.h" InotifyService::InotifyService(std::shared_ptr<EventQueue> queue, std::string path): mEventLoop(NULL), mQueue(queue), mTree(NULL) { mInotifyInstance = inotify_init(); if (mInotifyInstance == -1) { return; } mTree = new InotifyTree(mInotifyInstance, p...
/** * @copyright Copyright 2016 The J-PET Framework 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 find a copy of the License in the LICENCE file. * * Unless required by applicable la...
// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <lib/async-loop/cpp/loop.h> #include <lib/async-loop/default.h> #include <lib/fdio/directory.h> #include <lib/fdio/fd.h> #include <lib/fdio/fdio.h...
/* * Copyright (c) 2015 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, p...
#include <math.h> double computeDistance(const double* feat1,const double* feat2,const int f1, const int f2,const int size) { int nbBins = 8; double descd = 0; unsigned int index [] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46...
// // mc.cpp // // manage c++ code // // Created by Daniel Kozitza // #include <csignal> #include <cstdlib> #include <dirent.h> #include <fstream> #include <iomanip> #include <iostream> #include <sys/ioctl.h> #include <omp.h> #include "commands.hpp" #include "tools.hpp" #include "sorters.hpp" using namespace tools; ...
// Copyright 2014 The Cockroach 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 ag...
//======================================================================= // Copyright Baptiste Wicht 2011-2016. // Distributed under the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //======================================================================= #include ...
// IssuerAndSerialNumber.cpp: implementation of the CIssuerAndSerialNumber class. // ////////////////////////////////////////////////////////////////////// #include "IssuerAndSerialNumber.h" #include "ASN1OptionalField.h" ////////////////////////////////////////////////////////////////////// // Construction...
#include <iostream> #include <deque> using namespace std; int main(){ system("Color 02"); deque<int> deff; int n; cout<<"N="; cin>>n; for(int i=1; i<=n; i++){ if(i%2==0) deff.push_front(i); else deff.push_back(i); } for(int i=0; i<deff.size(); i++){ cout<<deff.at(i)<<"\t"; } cout...
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkTypes.h" #include "Test.h" #include "GrClip.h" #include "GrContext.h" #include "GrContextPriv.h" #include "GrGpuResource.h" #include "GrMemoryPool.h" #include "Gr...
// // Copyright (c) 2012-2020 Kris Jusiak (kris at jusiak dot net) // // 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 "boost/di/extension/providers/runtime_provider.hpp" #include <cassert> #include <str...
#include <stdio.h> #include <stack> using namespace std; int main(void){ int n, p, cnt = 0; stack<int> s[7]; scanf("%d %d", &n, &p); for(int i=0;i<n;i++){ int a, b; scanf("%d %d", &a, &b); L:; if(s[a].empty() || s[a].top() < b){ s[a].push(b); cnt...
#include "oniguruma.h" // Must be first. #include "transcoder.h" #include "regenc.h" #include "builtin/string.hpp" #include "builtin/array.hpp" #include "builtin/bytearray.hpp" #include "builtin/class.hpp" #include "builtin/encoding.hpp" #include "builtin/exception.hpp" #include "builtin/fixnum.hpp" #include "builtin/...
#include <stdio.h> #include <component586/lib1.h> int component586_1 () { printf("Hello world!\n"); return 0; }
/* BulletSprite Continuous Collision Detection and Physics Library Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/BulletSprite/ This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this softw...
/* file: pca_result_v2_fpt.cpp */ /******************************************************************************* * Copyright 2014-2019 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...
/*! @file */ /* Copyright (C) 2018-2021, Sakura Editor Organization This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose,...
// // 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 // #include <boost/conf...
// Copyright (c) 2001-2008 Hartmut Kaiser // Copyright (c) 2001-2007 Joel de Guzman // // 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(BOOST_SPIRIT_LEX_TERMINAL_DIRECTOR_MAR_22_2007_0846PM) #define...
/** * 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: inline TreeNode* clone(TreeNode* origin){ if(NULL == origin) return NULL; TreeN...
// 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/metrics/browser_window_histogram_helper.h" #include "components/startup_metric_utils/browser/startup_metric_utils.h" #include "u...
// cFile.cpp // Implements the cFile class providing an OS-independent abstraction of a file. #include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules #include "File.h" #include <fstream> #ifdef _WIN32 #include <share.h> // for _SH_DENYWRITE #endif // _WIN32 cFile::cFil...
#include "memorymodule.h" MemoryModule::~MemoryModule() { }
/* * RegisterIO.cpp * * Created on: Jul 29, 2015 * Author: Scott */ #include "RegisterIO.h" #include "../include/IMURegisters.h" #include "delay.h" RegisterIO::RegisterIO( IRegisterIO *io_provider, uint8_t update_rate_hz, IIOCompleteNotification *notify_sink, IBoardCapabilities *boa...
#include <ruckig/ruckig.hpp> #include <ruckig/roots.hpp> namespace ruckig { PositionStep1::PositionStep1(double p0, double v0, double a0, double pf, double vf, double af, double vMax, double vMin, double aMax, double aMin, double jMax): v0(v0), a0(a0), vf(vf), af(af), _vMax(vMax), _vMin(vMin), _aMax(aMax), _aMin(aMi...
#include <QtGlobal> // Automatically generated by extract_strings.py #ifdef __GNUC__ #define UNUSED __attribute__((unused)) #else #define UNUSED #endif static const char UNUSED *testcurrency_strings[] = { QT_TRANSLATE_NOOP("testcurrency-core", " mints deleted\n"), QT_TRANSLATE_NOOP("testcurrency-core", " mints updat...
/**************************************************************************** ** ** This file is part of the Ponder library, formerly CAMP. ** ** The MIT License (MIT) ** ** Copyright (C) 2009-2014 TEGESO/TEGESOFT and/or its subsidiary(-ies) and mother company. ** Copyright (C) 2015-2018 Nick Trout. ** ** Permission is...
#include <stan/math/mix/scal.hpp> #include <gtest/gtest.h> #include <test/unit/math/rev/scal/fun/util.hpp> #include <test/unit/math/mix/scal/fun/nan_util.hpp> TEST(AgradFwdRisingFactorial, FvarVar_1stDeriv) { using stan::math::digamma; using stan::math::fvar; using stan::math::rising_factorial; using stan::mat...
#ifndef STAN_MATH_OPENCL_PRIM_FUN_CROSSPROD_HPP #define STAN_MATH_OPENCL_PRIM_FUN_CROSSPROD_HPP #ifdef STAN_OPENCL #include <stan/math/opencl/matrix_cl.hpp> #include <stan/math/opencl/prim/multiply.hpp> #include <stan/math/opencl/kernel_generator.hpp> namespace stan { namespace math { /** * Returns the result of pre...
/******************************************************************************/ /* Mednafen - Multi-system Emulator */ /******************************************************************************/ /* nnx.h: ** Copyright (C) 2005-2016 Mednafen Team ** ** This program is fre...
//$Id: Publisher.cpp 9876 2011-09-16 20:58:50Z lindajun $ //------------------------------------------------------------------------------ // Publisher //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool // // Copyright (c) 2...
/** * @file * @copyright defined in oac/LICENSE.txt */ #include <oac/chain/block.hpp> #include <oac/chain/merkle.hpp> #include <fc/io/raw.hpp> #include <fc/bitutil.hpp> #include <algorithm> namespace oac { namespace chain { digest_type block_header::digest()const { return digest_type::hash(*this); ...
/* ========================================================================= * * * * SMPL++ * * Copyright (c) 2018, Chongyi Zheng. * * ...
/* =================================================== * This is the main function to act as the interface * to the roman numeral converter * * Created on: Nov 6, 2016 * Author: Aisha Steege *===================================================*/ #include <iostream> #include <sstream> #include <string> #in...
#include "rutil/Subsystem.hxx" using namespace resip; Subsystem Subsystem::APP("RESIP:APP"); Subsystem Subsystem::CONTENTS("RESIP:CONTENTS"); Subsystem Subsystem::DNS("RESIP:DNS"); Subsystem Subsystem::DUM("RESIP:DUM"); Subsystem Subsystem::PRESENCE("RESIP:PRESENCE"); Subsystem Subsystem::SDP("RESIP:SDP"); Subsystem ...
/* * 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 <iostream> #include "../annoy/src/kissrandom.h" #include "../annoy/src/annoylib.h" #include <cstdio> #include <cstdlib> #include <cmath> #include <map> #define N 555555 using namespace std; std::vector<int> knn_id[N]; std::vector<double> knn_dis[N]; int n_pc, n_candidates; double average_nn_dis = 0; map<pair<...
/* * Copyright (C) 2005, 2006, 2012 Apple Inc. All rights reserved. * Copyright (C) 2006 Alexey Proskuryakov * * 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 a...
// Copyright (c) 2015 Elements of Programming Interviews. All rights reserved. #include <algorithm> #include <cassert> #include <iostream> #include <limits> #include <random> #include <vector> using std::cout; using std::default_random_engine; using std::endl; using std::max; using std::min; using std::numeric_limits...
//$Id: RunSimulator.hpp 1398 2011-04-21 20:39:37Z $ //------------------------------------------------------------------------------ // ClassName //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool // // Copyright (c) 2002 - 20...
#include <fstream> #include <streambuf> #include "Fireworks/Geometry/interface/FWRecoGeometryESProducer.h" #include "Fireworks/Geometry/interface/FWRecoGeometry.h" #include "Fireworks/Geometry/interface/FWTGeoRecoGeometry.h" #include "Fireworks/Geometry/interface/FWRecoGeometryRecord.h" #include "DataFormats/Geometry...
/* * sys_beos.cpp - System dependent routines, BeOS implementation * * Basilisk II (C) 1997-2008 Christian Bauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of...
// Tenchi wo Kurau #include "cps.h" static struct BurnInputInfo DrvInputList[] = { {"P1 Coin" , BIT_DIGITAL, CpsInp018+0, "p1 coin"}, {"P1 Start" , BIT_DIGITAL, CpsInp018+4, "p1 start"}, {"P1 Up" , BIT_DIGITAL, CpsInp001+3, "p1 up"}, {"P1 Down" , BIT_DIGITAL, CpsInp00...
// Copyright (c) 2013-2014 The Bitcoin developers // Copyright (c) 2017 The PIVX developers // Copyright (c) 2018 The nint developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "hash.h" #include "crypto/hmac_sha512...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" #include "beatsaber-hook/shared/utils/typedefs-string....
#include "./include/AFSArchive.h" void AFSArchive::readHeader() { std::streampos back = r->tell(); r->seek(5); header = new awbHeader; header->offsetSize = r->readUInt8(); r->seek(8); header->fileCount = r->readUInt32LE(); header->alignment = r->readUInt32LE(); header->ids = new unsigned short[header-...
#include <bits/stdc++.h> #define ll long long #define pb push_back #define pii pair<int,int> #define vi vector<int> #define vii vector<pii> #define mi map<int,int> #define mii map<pii,int> #define all(a) (a).begin(),(a).end() #define ff first #d...
#include "neuron_utils.h" #include "bp_neuron_net.h" /************************************************************************ * bp neuron net ************************************************************************/ bpNeuronNet::bpNeuronNet(int numInputs, double learningRate) :mNumInputs(numInputs), mNumOutp...
/** * @file * @brief Potion and potion-like effects. **/ #include "AppHdr.h" #include "potion.h" #include <cstdio> #include <cstring> #include "cloud.h" #include "food.h" #include "godconduct.h" #include "hints.h" #include "itemname.h" #include "itemprop.h" #include "item_use.h" #include "message.h" #include "mis...
// -*- C++ -*- // // $Id$ // **** Code generated by the The ACE ORB (TAO) IDL Compiler **** // TAO and the TAO IDL Compiler have been developed by: // Center for Distributed Object Computing // Washington University // St. Louis, MO // USA // http://www.cs.wustl.edu/~schmidt/doc-center.h...
//==-------- kernel_info.cpp - SYCL kernel info methods --------------------==// // // 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) Microsoft Corporation Licensed under the MIT license. Module Name: - IConsoleInputThread.hpp Abstract: - Defines methods that wrap the thread that reads input from the keyboard and feeds it into the console's input buffer. Author(s): - Hernan Gatta (HeGatta) 29-Mar-2017 --*/ #pra...
/********************************************************************** Audacity: A Digital Audio Editor Track.cpp Dominic Mazzoni *******************************************************************//** \class Track \brief Fundamental data object of Audacity, placed in the TrackPanel. Classes derived form it...
/* Copyright 2017 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...
//================================================================================================= /*! // \file src/mathtest/operations/smatdmatkron/DCaDDb.cpp // \brief Source file for the DCaDDb sparse matrix/dense matrix Kronecker product math test // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reser...
// Copyright (c) 2013-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 <consensus/tx_check.h> #include <consensus/validation.h> #include <test/data/sighash.json.h> #include <hash.h> #incl...
#include "glow.hpp" #include "../valve_sdk/csgostructs.hpp" #include "../options.hpp" Glow::Glow() { } Glow::~Glow() { // We cannot call shutdown here unfortunately. // Reason is not very straightforward but anyways: // - This destructor will be called when the dll unloads // but it cannot distingu...
/*=========================================================================== * * File: Srprogressdlg.CPP * Author: Dave Humphrey (dave@uesp.net) * Created On: 26 November 2011 * * Description * *=========================================================================*/ /* Include Files */ #incl...
// Copyright (c) 2016-2020 The thecoffeecoins Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <qt/modaloverlay.h> #include <qt/forms/ui_modaloverlay.h> #include <chainparams.h> #include <qt/guiutil.h> ...
/****************************************************************************** * Copyright 2019 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 ...
// {{{ MIT License // Copyright 2017 Roland Kaminski // 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,...
#include "Cow.h" #include <iostream> Cow::Cow(unsigned age): Animal(age) { std::cout<<"Cow"<<std::endl; } void Cow::saySomething() const { std::cout<<"Cow: Muuu..."<<std::endl; } void Cow::print() const { std::cout<<"Animal with age "<<m_age<<", Cow"<<std::endl; } Cow::~Cow() { std::cout<<"Bye Cow"<<std:...
/* * ***** BEGIN GPL LICENSE BLOCK ***** * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is d...
#include "Point.h" /** * @brief Constructor initializes an empty Point. */ Point::Point() { _xyz = new double[3]; _xyz[0] = 0.0; _xyz[1] = 0.0; _xyz[2] = 0.0; } /** * @brief Destructor */ Point::~Point() { delete [] _xyz; } /** * @brief Converts this Point to a character representation of its attri...
/* * Copyright (c) 2004-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. * */ #inc...
#include "renderer/context/dynamic_functions.h" #include "renderer/context/device.h" #include <string> namespace { template <class Func> Func GetProcedure(const char *const name) { const auto func = reinterpret_cast<Func>(vkGetDeviceProcAddr(estun::DeviceLocator::GetLogicalDevice(), name)); ...
// Copyright (c) 2017-2019, The Monero Project // // 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 o...
#include <iostream> #include <string> class Base { protected: int ID; std::string name; int wage; public: Base(int id, std::string n, int w) { ID = id; name = n; wage = w; } virtual void print() { printf("ID: %d\n", ID); printf("name: %s\n", name.c_str())...
//===- StackProtector.cpp - Stack Protector Insertion ---------------------===// // // 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 "../utility/String.hpp" #include "RETypeDB.hpp" #include "RETypeDefinition.hpp" #include "MurmurHash.hpp" namespace sdk::murmur_hash { sdk::RETypeDefinition* type() { static auto t = sdk::RETypeDB::get()->find_type("via.murmur_hash"); return t; } uint32_t calc32(std::wstring_view str) { static ...
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int* a = new int[n+1]; a[0] = 0; a[1] =1; a[2] = 1; a[3] = 1; for(int i=4;i<=n;i++){ a[i] = 1 + min(a[i-1],min(a[i-2],a[i-3])); } cout<<a[n]; return 0; }
#include <vector> #include <boost/test/unit_test.hpp> #include <boost/foreach.hpp> #include "main.h" #include "wallet.h" #include "util.h" using namespace std; BOOST_AUTO_TEST_SUITE(util_tests) BOOST_AUTO_TEST_CASE(util_criticalsection) { CCriticalSection cs; do { LOCK(cs); break; ...
#include "pch.h" #include "graphics/staticmeshcomponent.h" #include "graphics/renderer.h" namespace engine { void StaticMeshComponent::registerObject() { Context::getInstance()->registerObject<StaticMeshComponent>(); } StaticMeshComponent::StaticMeshComponent() { } StaticMeshComponent::~S...
// Copyright (c) 2014-2019, The ByteRub Project // // 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 ...
// // _IND_PASS_TEST16_CPP_ // // Copyright (C) 2017-2020 Tactical Computing Laboratories, LLC // All Rights Reserved // contact@tactcomplabs.com // // See LICENSE in the top level directory for licensing details // // #include <iostream> #include "CoreGen/CoreGenBackend/CoreGenBackend.h" std::string PROJNAME = "TES...
// ======================================================================== // // Copyright 2009-2018 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
#include "duckdb/execution/operator/aggregate/physical_hash_aggregate.hpp" #include "duckdb/execution/operator/aggregate/physical_simple_aggregate.hpp" #include "duckdb/execution/operator/aggregate/physical_window.hpp" #include "duckdb/execution/operator/filter/physical_filter.hpp" #include "duckdb/execution/operator/h...
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2014-2020 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2017 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...
#include "deco-layout.hpp" #include "deco-theme.hpp" #include <wayfire/core.hpp> #include <wayfire/nonstd/reverse.hpp> #include <wayfire/nonstd/wlroots-full.hpp> #define BUTTON_ASPECT_RATIO (25.0 / 16.0) #define BUTTON_HEIGHT_PC 0.8 namespace wf { namespace decor { /** * Represents an area of the decoration which re...
#include <eosio/chain/webassembly/interface.hpp> #include <eosio/chain/apply_context.hpp> namespace eosio { namespace chain { namespace webassembly { void interface::require_auth( account_name account ) const { context.require_authorization( account ); } bool interface::has_auth( account_name account )...
/* ///////////////////////////////////////////////////////////////////////// * File: test/scratch/test.scratch.util.onbailout/implicit_link.cpp * * Purpose: Implicit link file for the test.scratch.util.onbailout project. * * Created: 1st March 2008 * Updated: 21st September 2015 * * Status: ...
// dear imgui, v1.71 WIP // (drawing and font code) /* Index of this file: // [SECTION] STB libraries implementation // [SECTION] Style functions // [SECTION] ImDrawList // [SECTION] ImDrawListSplitter // [SECTION] ImDrawData // [SECTION] Helpers ShadeVertsXXX functions // [SECTION] ImFontConfig // [SE...
#include "stdafx.h" #include "g72x.h" static short qtab_721[7] = { -124, 80, 178, 246, 300, 349, 400}; /* * Maps G.721 code word to reconstructed scale factor normalized log * magnitude values. */ static short _dqlntab[16] = { -2048, 4, 135, 213, 273, 323, 373, 425, 425, 373, 323, 273,...
/* Copyright 2019-2021 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 in writing, software...
#ifndef SERWIS_SPRZETU_KOMPUTEROWEGO_LAPTOP_HPP #define SERWIS_SPRZETU_KOMPUTEROWEGO_LAPTOP_HPP #include "Device.hpp" class Laptop : public Device { bool hasACdReader; public: Laptop(double price, const std::string &brand, double weight, int memorySizeInMb, int batteryCapacityInMAh, bool hasACdRe...
/* * MIT License * * Copyright (c) 2018 Kalate Hexanome, 4IF, INSA Lyon * * 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 ...
#include <ros/ros.h> #include "CameraLidarTransformer.hpp" int main (int argc, char** argv) { ros::init (argc, argv, "camera_lidar_transformer"); CameraLidarTransformer transformer; ros::spin (); }
/* ------------------------------------------------------------------------------- This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software ...
// 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 "cc/surfaces/display.h" #include <utility> #include "base/memory/ptr_util.h" #include "base/test/null_task_runner.h" #include "cc/output/compos...
/* Copyright 2018 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...
//===--- PlaygroundTransform.cpp - Playground Transform -------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
//myfirst.cpp --displays a message #include <iostream> // a PREPROCESSOR directive int main() // function header { // start of function body using namespace std; // make defin...