text
stringlengths
7
961k
/*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...
// 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 "chrome/common/service_process_util.h" #include "base/basictypes.h" #include "base/bind.h" #include "base/command_line.h" #include "base/fil...
 #ifndef RUIN_CONTAINER_ARRAY_HPP_INCLUDED #define RUIN_CONTAINER_ARRAY_HPP_INCLUDED #include <cstddef> #include <stdexcept> #include "ruin/iterator/reverse_iterator.hpp" #include "ruin/utility/forward.hpp" #include "ruin/utility/move.hpp" #include "ruin/utility/swap.hpp" namespace ruin { namespace container { t...
/* * Copyright (c) 2021, Liav A. <liavalb@hotmail.co.il> * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/JsonObjectSerializer.h> #include <AK/UBSanitizer.h> #include <Kernel/Arch/x86/CPU.h> #include <Kernel/Arch/x86/InterruptDisabler.h> #include <Kernel/Arch/x86/ProcessorInfo.h> #include <Kernel/Bus/PCI/...
// Copyright (c) 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 <string> #include "version.h" // Name of client reported in the 'version' message. Report the same name // for both bitco...
// Copyright (c) 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 "chrome/browser/ui/views/omnibox/omnibox_tab_switch_button.h" #include "base/strings/utf_string_conversions.h" #include "chrome/browser/ui/l...
// // Negative test for BOOST_TEST_THROWS // // Copyright (c) 2014 Peter Dimov // // 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/core/lightweight_test.hpp> struct X { }; void f() { throw ...
//===--- FindTarget.cpp - What does an AST node refer to? -----------------===// // // 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 // //===---------------------------...
// ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_BoneModifiersContainer_ChibiWyvern_parameters.hpp" namespace sdk { //--------------------------------------------------------------------------- //Functions //-----------------------------------------------...
#include "ResourceSpineSkeleton.h" #include "Interface/ResourceServiceInterface.h" #include "Kernel/MemoryStreamHelper.h" #include "Kernel/DocumentHelper.h" #include "Kernel/AssertionMemoryPanic.h" #include "Kernel/Logger.h" namespace Mengine { ////////////////////////////////////////////////////////////////////...
/* * * Copyright (c) 2022 Project CHIP Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
// Copyright (C) 2019 - 2020 by Pedro Mendes, Rector and Visitors of the // University of Virginia, University of Heidelberg, and University // of Connecticut School of Medicine. // All rights reserved. // Copyright (C) 2017 - 2018 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., University of Heidelbe...
//! [all] #include <iostream> int main(){ constexpr int age {30}; if constexpr( age < 18 ){ std::cout << "Mineur (mais pas du 60 bvd St. Michel)" << std::endl; } else if( (age >= 18) && (age<=30) ){ std::cout << "Pas encore trop vieux" << std::endl; } else { std::cout ...
/* * * Copyright 2015 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/* Copyright 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...
#include "diablo.h" #include "../3rdParty/Storm/Source/storm.h" DEVILUTION_BEGIN_NAMESPACE char gbPixelCol; // automap pixel color 8-bit (palette entry) BOOL gbRotateMap; // flip - if y < x int orgseed; int sgnWidth; int sglGameSeed; static CCritSect sgMemCrit; int SeedCount; BOOL gbNotInView; // valid - if x/y are ...
// REQUIRES: aarch64-registered-target // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -fallow-half-arguments-and-returns -fsyntax-only -verify %s // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -target-feature +sve -fallow-half-arguments-and-returns -fsyntax-only -verif...
// TINData.cpp //////////////////////////////////////////////////////////////// #include "stdafx.h" #include "TINData.h" #include "DrawUtil.h" #include "ContourApp.h" #include "DwgParamObj.h" #include "ImportPts.h" #include "TIN.h" ACRX_DXF_DEFINE_MEMBERS(CTINData, AcDbObject, 0, ContourData, Contour ARX Application)...
/** * eZmax API Definition * This API expose all the functionnalities for the eZmax and eZsign applications. * * The version of the OpenAPI document: 1.1.3 * Contact: support-api@ezmax.ca * * NOTE: This class is auto generated by OpenAPI-Generator 5.3.1-SNAPSHOT. * https://openapi-generator.tech * Do not edit ...
//========================================================================= // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE...
// Copyright (c) 2019 The Llamacoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // #include <txmempool.h> #include <validation.h> #include <sync.h> #include <test/util/setup_common.h> #include <boost/test/uni...
// Copyright 2021 The IREE Authors // // Licensed 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> #include "iree/compiler/Dialect/Stream/IR/StreamDialect.h" #include "iree/com...
/*========================================================================= * * Copyright RTK Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apa...
// This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited. #include "exec/vectorized/aggregate/aggregate_base_node.h" #include "exprs/anyval_util.h" #include "gutil/strings/substitute.h" namespace starrocks::vectorized { AggregateBaseNode::AggregateBaseNode(ObjectPool* pool, ...
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/core/SkCanvas.h" #include "include/core/SkClipOp.h" #include "include/core/SkImageInfo.h" #include "include/core/SkMatrix.h" #include "include/core/SkPath.h"...
// // database_result.cpp // ~~~~~~~~~~~~~~~~~~~ // // Author: Joseph Adomatis // Copyright (c) 2020 Joseph R Adomatis (joseph dot adomatis at gmail dot com) // /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #include <cstring> #include <dewey/dew...
// Copyright (c) 2014-2018, 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 of /...
/* * main.cc * * This program extracts features from a list of images. * * Created on: June 2014 * Author: andrefaraujo */ #include <iostream> #include <fstream> #include <thread> #include <sys/stat.h> #include "sift_extractor.h" #include "../../common/feature_set/feature_set.h" extern "C" { #include "....
// Copyright Epic Games, Inc. All Rights Reserved. // Modified version of Recast/Detour's source file // // Copyright (c) 2009-2010 Mikko Mononen memon@inside.org // // 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...
// 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 "content/common/accessibility_node_data.h" #include <set> #include "base/containers/hash_tables.h" #include "base/strings/string_number_con...
// STL includes #include <algorithm> #include <chrono> #include <iostream> #include <list> #include <string.h> #include <time.h> #include <vector> #include <getopt.h> // root includes #include <TDatabasePDG.h> #include <TFile.h> #include <TH1.h> #include <TMath.h> #include <TTree.h> #include <TVector3.h> // SiFi-Ana...
// Boost.Range library // // Copyright Neil Groves 2014. // // 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). // // For more information, see http://www.boost.org/libs/range/ // #if...
#ifndef CALIBMAT #define CALIBMAT #define _USE_MATH_DEFINES #include <cmath> #include <random> #include <algorithm> #include <vector> #include <complex> #include <iostream> #include <fstream> #include "DataOps.hpp" class CalibMat { public: CalibMat(size_t n,double window); bool print_delays(std::ofstream & out...
//#include <cmake_pch.hxx> #include "Application.hpp" int main(void) { // todo attach this scope gaurd to the api somewhere // anything created in the window must be destroyed before the window. const glengine::scope_guard_expensive end = { []() { ImGui::DestroyContext(nullptr); glfwTerminate(); } }; ...
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #include "SourceEffects/SourceEffectStereoDelay.h" #include "Casts.h" void FSourceEffectStereoDelay::Init(const FSoundEffectSourceInitData& InitData) { bIsActive = true; DelayStereo.Init(InitData.SampleRate); } void FSourceEffectStereoDelay::OnPresetChan...
/********************************************************************** * Copyright (c) 2008-2015, 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 the Fre...
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #include "MpcControlTrackEditorPrivatePCH.h" #include "FloatCurveKeyArea.h" #include "MpcFloatPropertySection.h" #include "MovieSceneMpcFloatSection.h" void FMpcFloatPropertySection::GenerateSectionLayout(class ISectionLayoutBuilder& LayoutBuilder) const {...
/******************************************************************************* * Copyright 2017-2018 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.apa...
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "Benchmark.h" #include "SkRandom.h" #include "SkRegion.h" #include "SkString.h" static bool union_proc(SkRegion& a, SkRegion& b) { SkRegion result; return res...
#include <cassert> #include <utility> #include <vector> #include "../utils/macros.hpp" /** * @brief Lagrange interpolation * @note O(n^2) * @note works on any field * @note the error is very big */ std::vector<long double> lagrange_interpolate(const std::vector<std::pair<long double, long double> > & points) { ...
// Copyright 2019 The Chromium OS 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 <stddef.h> #include <stdint.h> #include <base/files/file_path.h> #include <base/files/file_util.h> #include <base/files/scoped_temp_dir.h> #i...
/*************************************************************************/ /* vg_texture_renderer.cpp */ /*************************************************************************/ #include "vector_graphics_texture_renderer.h" #include "vector_graphics_path.h" static Ref...
#include <algorithm> #include <iostream> #include <vector> using std::cout; using std::endl; using std::vector; class Solution { public: int maxNumberOfApples(vector<int>& arr) { if (arr.empty()) return 0; std::sort(arr.begin(), arr.end()); int sum = 0; int i = 0; while...
// Copyright 2015 Google Inc. 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...
#include "TedKrovetzAesNiWrapperC.h" #ifdef USE_PIPELINED_AES_NI #ifdef _WIN32 #include "StdAfx.h" #endif void AES_128_Key_Expansion(const unsigned char *userkey, AES_KEY *aesKey) { block x0,x1,x2; //block *kp = (block *)&aesKey; aesKey->rd_key[0] = x0 = _mm_loadu_si128((block*)userkey); x2 = _mm_setzero...
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #ifndef IROHA_SHARED_MODEL_INTERFACE_MOCKS_HPP #define IROHA_SHARED_MODEL_INTERFACE_MOCKS_HPP #include <gmock/gmock.h> #include "datetime/time.hpp" #include "interfaces/commands/command.hpp" #include "interfaces/comm...
/*********************************************************************************************************************** ** ** Copyright (c) 2011, 2014 ETH Zurich ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the ** following c...
#include "Commands2/KeyedArchiveCommand.h" #include "Commands2/RECommandIDs.h" #include "FileSystem/KeyedArchive.h" KeyedArchiveAddValueCommand::KeyedArchiveAddValueCommand(DAVA::KeyedArchive* _archive, const DAVA::String& _key, const DAVA::VariantType& _val) : RECommand(CMDID_KEYEDARCHIVE_ADD_KEY, "Add key to ar...
/** * UGENE - Integrated Bioinformatics Tools. * Copyright (C) 2008-2020 UniPro <ugene@unipro.ru> * http://ugene.net * * 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 * ...
/* Copyright (c) 2018–2021 SplineLib 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, publish, distribute, ...
/* * Copyright 2021 Google LLC. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/private/SkSLIRNode.h" #include "include/sksl/DSL.h" #include "src/gpu/GrDirectContextPriv.h" #include "src/gpu/GrGpu.h" #include "src/sksl/SkSLIRGenerator.h"...
#include "ShapeList.hpp" using namespace TMath; ShapeList::ShapeList(unsigned int initial_size){ current_buffer_size = initial_size; current_size = 0; pointer_list = new Shape*[initial_size]; } void ShapeList::Append(Shape *new_shape){ if( (current_size+1) > current_buffer_size){ ExpandBuff...
/* * The MIT License (MIT) * * Copyright (c) 2015 Microsoft Corporation * * -=- Robust Distributed System Nucleus (rDSN) -=- * * 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 witho...
#include "tensorflow_util.h" #include <fstream> #include <sstream> #include <stdexcept> std::unique_ptr<TF_Status> TensorFlowUtil::createStatus() { return std::unique_ptr<TF_Status>(TF_NewStatus()); } std::unique_ptr<TF_Buffer> TensorFlowUtil::createBuffer() { return std::unique_ptr<TF_Buffer>(TF_NewBuffer()...
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> #include <_happen_event_condition_node.hpp> START_ATF_NAMESPACE struct _happen_event_node { int m_bUse; int m_bQuestRepeat; int m_nQuest...
/* * Copyright (C) 2014, Computing Systems Laboratory (CSLab), NTUA. * Copyright (C) 2014, Athena Elafrou * All rights reserved. * * This file is distributed under the BSD License. See LICENSE.txt for details. */ /** * \file Barrier.cpp * \brief A centralized barrier with timeout * * \author Computing System...
// 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 "precomp.hpp" #include "backend.hpp" #include "plugin_api.hpp" #include "opencv2/core/utils/filesystem.hpp" #inclu...
/* * Copyright 2021 WebAssembly Community Group participants * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
#include "pch.h" #include "WADFile.h" #include "Helpers.h" namespace rtdoom { WADFile::WADFile(const std::string& fileName) { std::ifstream infile(fileName, std::ios::binary); if(!infile.good()) { throw std::runtime_error("Unable to open file " + fileName); } Header header; infile.read...
/* * * 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...
// // Alert system // #include <algorithm> #include <boost/algorithm/string/classification.hpp> #include <boost/algorithm/string/replace.hpp> #include <boost/foreach.hpp> #include <map> #include "alert.h" #include "key.h" #include "net.h" #include "sync.h" #include "ui_interface.h" using namespace std; map<uint256,...
#ifndef AUTOBOOST_MPL_DEREF_HPP_INCLUDED #define AUTOBOOST_MPL_DEREF_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2002-2004 // // 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/mp...
/** * Copyright (c) 2013-2019, Timothy Stack * * 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 ...
/******************************************************************************* * Copyright (c) 2009-2016, MAV'RIC Development Team * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. R...
#include <iostream> using namespace std; int main(int argc, char const *argv[]) { int a=0; int b=10; int c=4; /* if (a > b && a > c){ cout << "A ES MAYOR QUE B O C"; } while (a > b) { a--; if (a==20) { break; } } */ while (true)...
/* The MIT License (MIT) Copyright (c) 2017 shawnw 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...
/*----------------------------------------------------------------------------*\ NPM Toolbox: Various functions and classes for point cloud processing -------------------------------------------------------------------------------- Author(s): Hassan Bouchiba Creation: 04 Nov 2015 TODO(hassan): modify binary file wri...
class Solution { public: ListNode* partition(ListNode* head, int x) { ListNode* lessHead = new ListNode(0), * moreHead = new ListNode(0); ListNode* lessTail = lessHead, * moreTail = moreHead; while (head != nullptr) { if (head->val < x) { lessTail = lessTail->next...
// Copyright 2018 Open Source Robotics Foundation, 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 appli...
/* Copyright 2014 Sairam Gurajada 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...
// 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. #if defined(USE_SYSTEM_LIBPNG) #include <png.h> #else #include "third_party/libpng/png.h" #endif #include <algorithm> #include <cmath> #include "bas...
/* ** Module :DICT.CPP ** Abstract : ** ** Copyright (C) Sergey I. Yevtushenko ** ** Log: Thu 09/04/1998 Created ** */ #include <malloc.h> #include <string.h> #include <dict.h> #include <_ctype.h> #include <version.h> #ifdef __EMX__ #include <alloca.h> #endif Dictionary::Dictionary(int Case, PPair pList, int siz...
/* * Copyright 2017-present Facebook, 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 a...
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include "EditorGradientBakerComponent.h" #include <AzCore/IO/SystemFile.h> #include <AzToolsFram...
// // Created by Hendrix Demers on 2020-05-09. // #define _USE_MATH_DEFINES #include <cmath> #include <catch2/catch.hpp> #include "models/DirectionCosine.h" TEST_CASE("DirectionCosine compute", "[models]") { const double tolerance = 1.0e-6; DirectionCosine model(0.0, 0.0, 1.0); model.compute(0.0, 0.0)...
#include "Parser.h" #include "Token.h" #include "UniquePtr.h" using namespace Jet; Parser::Parser(Lexer* l, DiagnosticBuilder* diag) { this->diag = diag; this->lexer = l; this->Register(TokenType::Name, new NameParselet()); this->Register(TokenType::Number, new NumberParselet()); this->Register(TokenType::Strin...
/** * @file test_compiler_builtins.cpp * @copyright defined in dcc/LICENSE.txt */ #include <dcciolib/dccio.hpp> #include <dcciolib/print.hpp> #include <dcciolib/compiler_builtins.h> #include "test_api.hpp" unsigned __int128 operator "" _ULLL( const char* lit ) { __int128 ret = 0; size_t i = 0;...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-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 "base58.h" #include "chain.h" #include "coins.h" #include "consensus/validati...
#include "testing/testing.hpp" #include "indexer/complex/serdes.hpp" #include "indexer/complex/tree_node.hpp" #include "coding/reader.hpp" #include "coding/writer.hpp" #include <cstdint> #include <vector> namespace complex_serdes_tests { using ByteVector = std::vector<uint8_t>; using ::complex::ComplexSerdes; decl...
/* * Copyright (C) 2018-2019 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "test.h" using namespace NEO; TEST(SklHwInfoConfig, givenHwInfoErrorneousConfigString) { if (IGFX_SKYLAKE != productFamily) { return; } HardwareInfo hwInfo; GT_SYSTEM_INFO &gtSystemInfo = hwInfo...
#include "kalman_filter.h" using Eigen::MatrixXd; using Eigen::VectorXd; // Control system: // State evolution: x+ = A x + B u + w, w ~ N(0, Q) // Output evolution: y = C x + v, v ~ N(0, R) KalmanFilter::KalmanFilter() {} KalmanFilter::~KalmanFilter() {} // Initializa Kalman Filter instance. void KalmanFilte...
/** * kernelexception.hpp - * @author: Jonathan Beard * @version: Wed Sep 3 14:52:27 2014 * * Copyright 2016 Jonathan Beard * * 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: * *...
/******************************************************************************** * ReactPhysics3D physics library, http://www.reactphysics3d.com * * Copyright (c) 2010-2018 Daniel Chappuis * **************************************************************************...
/* * GLM library. Wavefront .obj file format reader/writer/manipulator. * * Written by Nate Robins, 1997. * email: ndr@pobox.com * www: http://www.pobox.com/~ndr */ #include "glm.hpp" #include <cmath> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <assert.h> using namespace std; /* ...
/* * See header file for a description of this class. * * \author Paolo Ronchese INFN Padova * */ //----------------------- // This Class' Header -- //----------------------- #include "HeavyFlavorAnalysis/RecoDecay/interface/BPHDecayMomentum.h" //------------------------------- // Collaborating Class Headers -...
// user include files #include <unordered_map> #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/global/EDProducer.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/ESHandle.h" #includ...
/** * @file collision_margins.cpp * @brief Parse collision margin data from srdf file * * @author Levi Armstrong * @date March 13, 2021 * @version TODO * @bug No known bugs * * @copyright Copyright (c) 2021, Southwest Research Institute * * @par License * Software License Agreement (Apache License) * @par ...
// Copyright (C) 2018 ycmd contributors // // This file is part of ycmd. // // ycmd is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. ...
// 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 // Copyright (c) 2021 The Retrex developers // Distributed under the MIT software license, see the accompanying // file COPYING or http:/...
// File include/oglplus/enums/pixel_data_format.hpp // // Automatically generated file, DO NOT modify manually. // Edit the source 'source/enums/oglplus/pixel_data_format.txt' // or the 'source/enums/make_enum.py' script instead. // // Copyright 2010-2019 Matus Chochlik. // Distributed under the Boost Software Li...
//================================================================================================= /*! // \file src/mathtest/dmatsmatschur/M4x4aMCb.cpp // \brief Source file for the M4x4aMCb dense matrix/sparse matrix Schur product math test // // Copyright (C) 2013 Klaus Iglberger - All Rights Reserved // // This...
// Boost.Range library // // Copyright Thorsten Ottosen 2003-2004. Use, modification and // distribution is subject to the Boost Software License, Version // 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // For more information, see http://www.boost.org/libs/rang...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-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 "validation.h" #include "arith_uint256.h" #include "chain.h" #include "...
/// @file /// /// XXX Notes on program XXX /// /// @copyright (c) 2008 CSIRO /// Australia Telescope National Facility (ATNF) /// Commonwealth Scientific and Industrial Research Organisation (CSIRO) /// PO Box 76, Epping NSW 1710, Australia /// atnf-enquiries@csiro.au /// /// This file is part of the ASKAP software dis...
// Copyright (c) 2006, 2007 Julio M. Merino Vidal // Copyright (c) 2008 Ilya Sokolov, Boris Schaeling // Copyright (c) 2009 Boris Schaeling // Copyright (c) 2010 Felipe Tanus, Boris Schaeling // Copyright (c) 2011, 2012 Jeff Flinn, Boris Schaeling // // Distributed under the Boost Software License, Version 1.0. (See ac...
// 逻辑比之前的解法更清晰,在leetcode还有一种代码行数更少的解法,资源消耗是一样的 #include <vector> #include <stack> #include <assert.h> #include <stdio.h> using namespace std; class Solution { public: bool validateStackSequences(vector<int> &pushed, vector<int> &popped) { if (pushed.size() == 0 || popped.size() == 0) { ...
/** * utility.hpp * 2019/12/19 R.Gunji * 複数のインスタンスで使用するAPI群 */ #ifndef _INC_DSSM_UTILITY_ #define _INC_DSSM_UTILITY_ #include <libssm.h> #include <iostream> #include <type_traits> #include <utility> namespace dssm { namespace util { /** * 16byteずつhexdumpする。 */ void hexdump(char *p, uint32_t len); ...
#include <keymap.h> #include <logger.h> #include <vector> #include <iostream> #include <config.h> #include <exceptions.h> #include <utils.h> namespace newsbeuter { struct op_desc { operation op; const char * opstr; const char * default_key; const char * help_text; unsigned short flags; }; /* * This is the list...
/* * GOST 28147-89 * (C) 1999-2009,2011 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/gost_28147.h> #include <botan/loadstor.h> namespace Botan { uint8_t GOST_28147_89_Params::sbox_entry(size_t row, size_t col) const { uint8_t x = m_sboxes[4 * col + (row...
#include "Analytics/Analytics.h" #include "Utils/StringFormat.h" namespace DAVA { namespace Analytics { void Core::Start() { isStarted = true; } void Core::Stop() { isStarted = false; } bool Core::IsStarted() const { return isStarted; } void Core::SetConfig(const KeyedArchive* newConfig) { if (newCo...