text
stringlengths
7
961k
/* * Copyright 2018 OmniSci, 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...
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2015 Thema Consulting SA This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it...
// Copyright (c) 2012-2016 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 "bloom.h" #include "hash.h" #include "primitives/transaction.h" #include "random.h" #include "script/script.h" #inc...
/////////////////////////////////////////////////////////////////////////////// // // CoinQ_vault_sync.cpp // // Copyright (c) 2013 Eric Lombrozo // // All Rights Reserved. #include "CoinQ_vault_sync.h" #include "CoinQ_vault.h" #include "CoinQ_netsync.h" using namespace CoinQ; VaultSync::VaultSync(Vault* vault, Net...
#include "overviewpage.h" #include "ui_overviewpage.h" #include "util.h" #include "walletmodel.h" #include "bitcoinunits.h" #include "cookiejar.h" #include "optionsmodel.h" #include "transactiontablemodel.h" #include "transactionfilterproxy.h" #include "guiutil.h" #include "guiconstants.h" #include "bitcoingui.h" #inc...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "base58.h" #include "chai...
#include "util.hpp" int util::gcd(const int &x, const int &y) { if (y == 0) return x; if (y > x) return gcd(y, x); return gcd(y, x % y); }
#include "stdafx.h" #include "build.h" #include <MxStdModel.h> #include <MxQSlim.h> #pragma comment (lib,"xrQSlim.lib") #define MAX_DECIMATE_ERROR 0.0005f #define COMPACTNESS_RATIO 0.001f void SaveAsSMF (LPCSTR fname, CDB::CollectorPacked& CL) { IWriter* W = FS.w_open(fname); string256 tmp; // vertices for ...
// Automatically generated C for E:\BBP_new./runModel.hoc #include <stdio.h> #include <stdlib.h> #include <math.h> #include "AllModels.h" // Universals: #define PI (3.1415927f) #define R (8.31441f) #define FARADAY (96485.309f) #define ktf (1000.*8.3134*(celsius + 273.15)/FARADAY) // Reversals: #define ek (-85.0f) #de...
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #include "TextureEditorPrivatePCH.h" #define LOCTEXT_NAMESPACE "STextureEditorViewportToolbar" /* STextureEditorViewportToolbar interface *****************************************************************************/ void STextureEditorViewportToolbar:...
/* * 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...
#ifndef SEARCH_TAB_H #define SEARCH_TAB_H #include "flowlayout.hpp" class SearchTab : QObject { public: SearchTab(QLabel *search_query); QHBoxLayout *centralLayout; FlowLayout *flowLayout; QLabel *search_query; void hide(); void show(); void update(std::vector<std::wstring> &emojis); vo...
#include "iitracer.h" #include <atomic> #include <thread> #include <vector> #include <algorithm> #include <iostream> #include <unistd.h> #define SAVE_TRACE_ON_EXIT // #define SLEEP_UNTIL_SIGNAL using namespace std; class A { public: void TestMethod() { //printf("%s called\n", __PRETTY_FUNCTION__); }...
#include "Disciplina.hpp" #include<iostream> #include "SalaAula.hpp" Disciplina::Disciplina(std::string nome) :nome{nome}, cargaHoraria{0}, salaAula{nullptr}, professor{nullptr} { } void Disciplina::adicionarAluno(Pessoa* aluno){ this->alunos.push_back(aluno); } void Disciplina::removerAluno(Pessoa* aluno){ thi...
//-------------------------------------------------------------------------------- // This file is a portion of the Hieroglyph 3 Rendering Engine. It is distributed // under the MIT License, available in the root of this distribution and // at the following URL: // // http://www.opensource.org/licenses/mit-license.ph...
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2011 Bryce Lelbach & Katelyn Kufahl // Copyright (c) 2007-2015 Hartmut Kaiser // Copyright (c) 2015 Anton Bikineev // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0...
#include <chrono> #include <cstdint> #include <functional> #include <string> #include "envoy/config/core/v3/base.pb.h" #include "envoy/extensions/transport_sockets/tls/v3/cert.pb.h" #include "envoy/extensions/upstreams/http/http/v3/http_connection_pool.pb.h" #include "envoy/extensions/upstreams/http/tcp/v3/tcp_connect...
#include "braincloud/internal/URLLoader.h" namespace BrainCloud { URLLoader::URLLoader() { } URLLoader::~URLLoader() { } }
/*========================================================================= Program: ParaView Module: vtkSMSourceProxy.cxx Copyright (c) Kitware, Inc. All rights reserved. See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details. This software is distributed WITHOUT ANY WARRAN...
/* * Copyright (c) 2015, 2016, 2017, 2018, 2019, 2020, Intel Corporation * SPDX-License-Identifier: BSD-3-Clause */ #ifndef LEVELZEROIOGROUP_HPP_INCLUDE #define LEVELZEROIOGROUP_HPP_INCLUDE #include <map> #include <vector> #include <string> #include <memory> #include <functional> #include "geopm/IOGroup.hpp" #inc...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/cloudfront/model/CachePolicyHeaderBehavior.h> #include <aws/core/utils/HashingUtils.h> #include <aws/core/Globals.h> #include <aws/core/utils/EnumParseOverflowContainer.h> using namespa...
// // Copyright (c) 2017 The Khronos Group 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...
#include "PluginProcessor.h" #include "PluginEditor.h" AudioProcessorValueTreeState::ParameterLayout createParameters(){ NormalisableRange<float> cutoffRange (20.f, 20000.f, 1.f); cutoffRange.setSkewForCentre(3000.f); auto const waveformChoices = juce::StringArray {"Sine", "Saw", "Square", "Trian...
// Fill out your copyright notice in the Description page of Project Settings. #include "FPSChasingAICharacter.h" // Sets default values AFPSChasingAICharacter::AFPSChasingAICharacter() { // Set this character to call Tick() every frame. You can turn this off to improve performance if you don't need it. PrimaryA...
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #ifndef SPDLOG_COMPILED_LIB #error Please define SPDLOG_COMPILED_LIB to compile this file. #endif #include <spdlog/async.h> #include <spdlog/async_logger-inl.h> #include <spdlog/d...
#pragma once #include <nano/lib/numbers.hpp> #include <nano/node/ipc/flatbuffers_handler.hpp> #include <nano/node/wallet.hpp> #include <nano/rpc/rpc.hpp> #include <boost/property_tree/ptree.hpp> #include <functional> #include <string> namespace nano { namespace ipc { class ipc_server; } class node; class node_rpc_...
/* Copyright (c) 2021 Skyward Experimental Rocketry * Author: Riccardo Musso * * 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 right...
/************************************************************************************ ** * @copyright (c) 2013-2100, ChengDu Duyer Technology Co., LTD. All Right Reserved. * *************************************************************************************/ /** * @file duye_sys_process.cpp * @version * @b...
#include "stdafx.h" #include "ElkPhysics/Data/Colliders/BoxColliderData.h" using namespace ElkPhysics::Data::Colliders; BoxColliderData::BoxColliderData() : AColliderData(ColliderType::BOX) {}
/* * Copyright (C) 2015-2016 Open Source Robotics Foundation * * 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...
/**************************************************************************** * Copyright (C) from 2009 to Present EPAM Systems. * * This file is part of Indigo toolkit. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
// auto-generated file by import_utm.pl #include "CondFormats/L1TObjects/interface/L1TUtmObject.h" #include "FWCore/Utilities/interface/typelookup.h" TYPELOOKUP_DATA_REG(L1TUtmObject);
// https://www.urionlinejudge.com.br/judge/pt/problems/view/2482 #include <iostream> #include <string> #include <map> using namespace std; int main() { int N, M; string language, merry, name; map<string, string> languages; cin >> N; while (N--) { cin >> language; cin.ignore(); getline(cin, me...
/* Copyright 2021 Austrian Institute of Technology GmbH 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...
// Copyright (c) the JPEG XL 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 <stdint.h> #include <stdio.h> #include <array> #include <string> #include <utility> #include <vector> #include "gtest/gtest.h" #includ...
// The following example demonstrates using the ForEach method. // <Snippet1> using namespace System; public ref class SamplesArray { public: static void Main() { // create a three element array of integers array<int>^ intArray = gcnew array<int> {2, 3, 4}; // set a delegate for the S...
/* This file is part of utils-lib. Copyright (c) 2020, 2021, 2022 Bernardo Fichera <bernardo.fichera@gmail.com> 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 restric...
#include "LightProtocol.h" #include <iostream> class TestLights { public: TestLights() :mNumLights(0) { } void begin() { std::cout<<"begin()"<<std::endl; } void setPixelColor(uint16_t id, uint8_t r, uint8_t g, uint8_t b) { std::cout<<"setPixelColor() "<<id<< " "<< (int)r << " " << (int)g << " " << (in...
// Copyright (c) 2019-2020 The PIVX developers // Copyright (c) 2020 The EROS developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "qt/eros/qtutils.h" #include "guiconstants.h" #include "qrencode.h" #include "qt/...
// Copyright (C) 2019-2020 Zilliz. 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 l...
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <memory> #include <string> #include "base/macros.h" #include "base/memory/ptr_util.h" #include "base/values.h" #include "chrome/browser/chromeos...
// Copyright 2014 Marco Guazzone (marco.guazzone@gmail.com). // // 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) // #include <algorithm> #include <boost/math/tools/test.hpp> #in...
#include <iostream> using namespace std; int main() { unsigned short ejercicio; cout << "ingrese el numero del ejercicio a ejecutar:"; cin >> ejercicio; switch (ejercicio){ case 1: { char caracter; cout << "Ingrese caracter" << endl; cin>>caracter; if( caract...
/*========================================================================* * * * Distributed by Whiteley Research Inc., Sunnyvale, California, USA * * http://wrcad.com * * Copyright (C...
#include "envoy/network/address.h" #include "source/common/buffer/buffer_impl.h" #include "source/common/common/basic_resource_impl.h" #include "source/common/event/dispatcher_impl.h" #include "source/common/network/connection_balancer_impl.h" #include "source/common/network/listen_socket_impl.h" #include "source/exte...
#include "stdafx.h" #include "Spellchecker.h" #include "Spellchecker_p.h" #include "SpellcheckUtils.h" #include "../utils/utils.h" #include "../utils/features.h" #include "../utils/async/AsyncTask.h" namespace { size_t maxSuggestsCount() { return Features::spellCheckMaxSuggestCount(); } } namesp...
/* wren_manager.cpp */ #include "wren_manager.h" #include "foreign_classes/foreign_vector2.h" #include "foreign_classes/foreign_node.h" #include "foreign_classes/foreign_node2d.h" #include "wrapper_classes/wrapper_node.h" Node* WrenManager::self_ref = nullptr; void WrenManager::_notification(int p_notification) { ...
/********************************************************************* * * Software License Agreement (BSD License) * * Copyright (c) 2013, Dave Coleman, CU Boulder; Jeremy Zoss, SwRI; David Butterworth, KAIST; Mathias Lüdtke, Fraunhofer IPA * All rights reserved. * * Redistribution and use in source and binary...
/* * * alignment.cu * Soap3(gpu) * * Copyright (C) 2011, HKU * * 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 optio...
/* ************************************************************************** Copyright (c): 2013 Hericus Software, Inc. License: The MIT License (MIT) Authors: Steven M. Cherry ************************************************************************** */ #include "TheMain.h" #include "OdbcObj.h" using na...
#include <Static/MeshLoader.h> #include <fstream> #include <Utility/Timer.h> #include <Elements/Vector.h> using namespace Ti; using namespace std; Mesh *MeshLoader::LoadMesh(std::string _filePath, std::string _meshName) { Mesh* mesh = new Mesh; mesh->filePath = _filePath; Timer timer; timer.start(); // Cod...
/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * * 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 sou...
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html #include "test_precomp.hpp" #ifdef HAVE_MFX namespace opencv_test { namespace { TEST(Videoio_MFX, read_invalid) { Video...
/********************************************************************** * Copyright (c) 2008-2013, Alliance for Sustainable Energy. * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
#define CATCH_CONFIG_MAIN // Defines catch2::main() #include <catch2/catch.hpp>
#include <iostream> #include <vector> #include <string> #include <cstdlib> #include <unistd.h> #include "Dr3D_gnuplot_api.hh" #include "MacierzOb.hh" #include "Wektor3D.hh" #include "Dron.hh" using std::vector; using std::string; using drawNS::Point3D; using drawNS::APIGnuPlot3D; using std::cout; using std::endl; vo...
/*============================================================================= Copyright (c) 2011-2017 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout 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) ==...
/* * 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...
/* * AMD64Assembler.cpp * * This file is part of the "LLGL" project (Copyright (c) 2015-2018 by Lukas Hermanns) * See "LICENSE.txt" for license information. */ #include "AMD64Assembler.h" #include "AMD64Opcode.h" #include <limits.h> #include <fstream>//!!! #include <iomanip> namespace LLGL { namespace JIT { ...
#include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/EventSetup.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "SimDataFormats/CaloTest/interface/ParticleFlux.h" #include "SimG4Core/Notification/interface/Begi...
#pragma once #include "../../../JObject.hpp" namespace android::os { class Parcel; } namespace android::app::usage { class ExternalStorageStats : public JObject { public: // Fields static JObject CREATOR(); // QJniObject forward template<typename ...Ts> explicit ExternalStorageStats(const char *classN...
#include "envoy/server/lifecycle_notifier.h" #include "source/common/common/hex.h" #include "source/common/event/dispatcher_impl.h" #include "source/common/stats/isolated_store_impl.h" #include "source/extensions/common/wasm/wasm.h" #include "test/extensions/common/wasm/wasm_runtime.h" #include "test/mocks/server/moc...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2020-2021 Couchbase, 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 * * ...
//============================================================================= // // Adventure Game Studio (AGS) // // Copyright (C) 1999-2011 Chris Jones and 2011-20xx others // The full list of copyright holders can be found in the Copyright.txt // file, which is part of this source code distribution. // // The AGS ...
#include "Extrude.hpp" #include <range/v3/view/reverse.hpp> namespace meshlib { std::vector<VertexHandle> extrude(Mesh &mesh, const std::vector<VertexHandle> &vertices, bool addFlipFace) { std::vector<VertexHandle> newVertices; std::unordered_map<VertexHandle, UVPointHandle> vertexToUV; std::unordered_map...
//--------------------------------------------------------------------------- // File: SortedList.cpp // Author: Snehal Jogdand // Date: 10/23/2019 // Program 2: Merge Sorted List // // DESCRIPTION: // The program creates a Doubly-Linked List that implements the Carrano and // Henry sorted list interface as presented ...
#include "mdns.hpp" #include "mdns_utils.hpp" #include "txt_record_ref.hpp" using namespace v8; using namespace node; namespace node_mdns { NAN_METHOD(TXTRecordDeallocate) { if (argumentCountMismatch(info, 1)) { return throwArgumentCountMismatchException(info, 1); } if ( ! info[0]->IsObject() || !...
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Christian Schulte <schulte@gecode.org> * * Copyright: * Christian Schulte, 2002 * * Last modified: * $Date$ by $Author$ * $Revision$ * * This file is part of Gecode, the generic constraint * developme...
/* overloaded opreator new */ #include<iostream> #include<vector> #include<string> int call_new = 0; void *operator new(std::size_t size) { std::cout << "Allocated: " << size << " at " << "test" << "\n"; ++call_new; return std::malloc(size); } void operator delete(void *p) noexcept { std::cout << "D...
// This file was automatically generated on Fri Dec 03 18:04:01 2004 // by libs/config/tools/generate.cpp // Copyright John Maddock 2002-4. // 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/LIC...
#include "joystick.h" #if defined(_USING_HID) static const uint8_t _hidReportDescriptorJoystick[] PROGMEM = { //32 buttons, 2 8-way hats, and 8 axes. 0x05, 0x01, //USAGE_PAGE (Generic Desktop) 0x09, 0x05, //USAGE (Game Pad) 0xa1, 0x01, //COLLECTION (Application) 0x85, 0x03, // REPORT_ID (3) ...
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/** * pugixml parser - version 1.9 * -------------------------------------------------------- * Copyright (C) 2006-2018, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com) * Report bugs and download new versions at http://pugixml.org/ * * This library is distributed under the MIT License. See notice at the end *...
#include <iostream> #include <vector> #include <string> #include <utility> #include <sstream> #include <algorithm> #include <ranges> #include <stack> #include <numeric> extern char const* pTest; extern char const* pData; using Result = size_t; using Answers = std::vector<std::pair<std::string,Result>>; using Stack =...
// Copyright 2006 Tobias Sargeant (toby@permuted.net). // All rights reserved. #pragma once #include <string> #include <sstream> namespace gloop { namespace str { class format { mutable std::ostringstream accum; public: template<typename T> format &operator<<(const T &t) { accum ...
/************************************************************ * * OPEN TRANSACTIONS * * Financial Cryptography and Digital Cash * Library, Protocol, API, Server, CLI, GUI * * -- Anonymous Numbered Accounts. * -- Untraceable Digital Cash. * -- Triple-Signed Receipts...
//***************************************************************************** // Copyright 2017-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://w...
// 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: System.MulticastDeleg...
// stdafx.cpp : source file that includes just the standard includes // SLS2012.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
/* * 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 ma...
// // Copyright (c) 2016-2018 CNRS // #ifndef __pinocchio_default_check_hpp__ #define __pinocchio_default_check_hpp__ #include <pinocchio/algorithm/check.hpp> #include <pinocchio/algorithm/aba.hpp> #include <pinocchio/algorithm/crba.hpp> namespace pinocchio { /// Default checker-list, used as the default argument ...
#include <vector> #include <iostream> using namespace std; struct A { double x; }; const A* a; decltype(a->x) y; // y 的类型是 double(其声明类型) decltype((a->x)) z = y; // z 的类型是 const double&(左值表达式) template<typename T, typename U> auto add(T t, U u) -> decltype(t + u) // 返回类型依赖于模板形参 { ...
// 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 "components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.h" #include "base/prefs/pref_registry_simple.h" #include "base/prefs/pr...
#include "defs.h" #include "FaceInfo.h" // the following eyes, nose, chin ratios worked for a test face (i.e. mine) // but they may need slight tweaks for other faces const int iris_roi_div = 3; FaceInfo::FaceInfo() : is_face_found(false), is_eyes_detect_enabled(true), is_grin_detect_enabled(true), ...
#pragma once #include <ivorium.hpp> namespace comp { /** \ingroup Simulation */ class SimulationState { public: enum State { Empty, ///< No game was run before. Running, ///< Game is actively running. Paused, ///< Game was started and then paused. Ended /...
/* * * Copyright 2017 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...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__int_min_multiply_82_goodG2B.cpp Label Definition File: CWE191_Integer_Underflow__int.label.xml Template File: sources-sinks-82_goodG2B.tmpl.cpp */ /* * @description * CWE: 191 Integer Underflow * BadSource: min Set data to the minimum value for ...
/* Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
#include <string> #include <string.h> #include <iostream> #include <vector> #include <fstream> /* Панасенко Александр Андреевич +380-99-256-46-41 Терентьев Михаил Павлович 22-505 Сергеев Сергей Сергеевич +380-99-999-49-99 */ const char* filename = "../data/15/data"; void write_file(const char* filename) { std::o...
// Copyright (c) 2018 The Open-Transactions developers // 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 "stdafx.hpp" #include "PayDividendVisitor.hpp" #inc...
/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "SkCanvas.h" #include "SkGradientShader.h" class AlphaGradientsGM : public skiagm::GM { public: AlphaGradientsGM() {} protected: SkString on...
/*This file is part of the FEBio source code and is licensed under the MIT license listed below. See Copyright-FEBio.txt for details. Copyright (c) 2020 University of Utah, The Trustees of Columbia University in the City of New York, and others. Permission is hereby granted, free of charge, to any person obtaining ...
#ifndef XGBOOST_TREE_UPDATER_HISTMAKER_INL_HPP_ #define XGBOOST_TREE_UPDATER_HISTMAKER_INL_HPP_ /*! * \file updater_histmaker-inl.hpp * \brief use histogram counting to construct a tree * \author Tianqi Chen */ #include <vector> #include <algorithm> #include "../sync/sync.h" #include "../utils/quantile.h" #include ...
#include<iostream> using namespace std; int main() { int u_input,amount = 0,count = 0,r = 0,c = 0,b = 0 ; cout<<"Welcome to Shaaf Car Parking System\n"; cout<<"Choose your vehicle type from given list\n"; while(true) { cout<<"Choose one option fromt he following"<<endl; cout<<"1) Rickshaw. "<<endl; cout<<"2)...
#ifndef APPLICATION_RENDERER_HPP #define APPLICATION_RENDERER_HPP #include "geometry.hpp" #include "wrap/render_pass.hpp" #include "wrap/frame_buffer.hpp" #include "ren/application_instance.hpp" #include "ren/model_loader.hpp" #include "ren/renderer.hpp" #include "scenegraph.hpp" #include "navigation.hpp" class Surfa...
/*========================================================================= Program: Visualization Toolkit Module: TestOrientationMarkerWidget2.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 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand /// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI /// /// Distributed under the Boost Software License, Version 1.0 /// ...
// 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 2017 The Abseil 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 agre...
/* ----------------------------------------------------------------------------- * Rule_sctpmap_attr.cpp * ----------------------------------------------------------------------------- * * Producer : com.parse2.aparse.Parser 2.5 * Produced : Mon Jan 08 13:30:55 CET 2018 * * --------------------------------------...