text
stringlengths
7
961k
/* * Copyright (c) 2018, NVIDIA CORPORATION. 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 requi...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2015-Present Couchbase, Inc. * * Use of this software is governed by the Business Source License included * in the file licenses/BSL-Couchbase.txt. As of the Change Date specified * in that file, in accordance with...
#include "NavMesh.h" #include "Component/ComponentMeshRenderer.h" #include "Component/ComponentCamera.h" #include "EditorUI/DebugDraw.h" #include "Filesystem/PathAtlas.h" #include "Log/EngineLog.h" #include "Main/Application.h" #include "Module/ModuleCamera.h" #include "Module/ModuleFileSystem.h" #include "Module/M...
//============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
/* Copyright 2015 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...
#ifndef PRESSIODEMOAPPS_GHOST_FILLER_EE1D_HPP_ #define PRESSIODEMOAPPS_GHOST_FILLER_EE1D_HPP_ namespace pressiodemoapps{ namespace impl{ template< int numDofPerCell, class state_t, class mesh_t, class ghost_t > class Ghost1dNeumannFiller; template<class state_t, class mesh_t, class ghost_t> class Ghost1dNe...
/* * 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...
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "fxjs/fx_date_helpers.h" #include <math.h> #include <time.h> #includ...
// Copyright 2018-2020 Drexel University // Author: Geoffrey Mainland <mainland@drexel.edu> #include <stdarg.h> #include <memory> #include "util/sprintf.hh" std::string sprintf(const char *fmt, ...) { int n = 1024; std::unique_ptr<char[]> buf; va_list ap; for (;;...
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "border_kernel_base.h" #include <vector> #include "kernel_selector_utils.h" namespace kernel_selector { JitConstants BorderKernelBase::GetJitConstants(const border_params& params) const { JitConstants jit = MakeBasePa...
#include <another-rxcpp/observable.h> #include <another-rxcpp/operators.h> #include <another-rxcpp/observables.h> #include "common.h" using namespace another_rxcpp; using namespace another_rxcpp::operators; void test_just() { log() << "test_just -- begin" << std::endl; doSubscribe(observables::just(1)); doSubs...
#include "lulesh.h" // If no MPI, then this whole file is stubbed out #if USE_MPI #include <mpi.h> #include <string.h> /* Comm Routines */ #define ALLOW_UNPACKED_PLANE false #define ALLOW_UNPACKED_ROW false #define ALLOW_UNPACKED_COL false /* There are coherence issues for packing and unpacking message b...
#ifndef DEF_STUDENT #define DEF_STUDENT #include "osoba.hpp" class Student : public Osoba{ private: int brIndeksa; public: Student(): Osoba(), brIndeksa() {} Student(const char* ime, const char* prezime, int brIndeksa) : Osoba(ime,prezime), brIndeksa(brIndeksa) {} Student(const...
// -*- mode: c++ -*- /********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2016, JSK Lab * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the ...
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
// Copyright (c) 2009-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 "chainparams.h" #include "db.h" #include "util.h" #include "hash.h" #incl...
#include "CollidableTriangle.h" namespace PhysIKA { template <typename TDataType> CollidableTriangle<TDataType>::CollidableTriangle() : CollidableObject(CollidableObject::TRIANGLE_TYPE) { } template <typename TDataType> CollidableTriangle<TDataType>::~CollidableTriangle() { } } // namespace PhysIKA
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2008, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
using System; using System.IO; using System.Net; using System.Text; using System.Linq; using System.Threading; using System.Net.Sockets; using System.Diagnostics; using System.Data.SqlClient; using System.ComponentModel; using System.ServiceProcess; using System.Data.Sql; using System.Data.SqlServerCe; using System.Col...
// Copyright 2020 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 <gmock/gmock.h> #include <gtest/gtest.h> #include "src/connectivity/wlan/drivers/testing/lib/sim-env/sim-frame.h" namespace wlan::testing { usi...
#include <BackendAPIs/Plexi2DRenderer/acrylic_plexiRenderer_core.hpp> #include <BackendAPIs/AcrylicSaveEngine/FileSystemBackend/acrylic_bitmap.h> #include <filesystem> #include <ths/log.hpp> int main() { initLogger("A2D", log_severity_error, log_mode_console) Plexi::PlexiConfig plexiConfig = {}; plexiCo...
/*===================== begin_copyright_notice ================================== Copyright (c) 2017 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, includi...
// Copyright 2014 the V8 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. #if V8_TARGET_ARCH_S390 #include "src/codegen.h" #include "src/debug/debug.h" #include "src/deoptimizer.h" #include "src/full-codegen/full-codegen.h" #...
//============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
/* * Copyright 2010-2016 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...
//================================================================================================= /*! // \file src/mathtest/operations/smatdmatkron/LCaDDb.cpp // \brief Source file for the LCaDDb sparse matrix/dense matrix Kronecker product math test // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reser...
/************************************************************************************ Filename : Win32_RoomTiny_Main.cpp Content : First-person view test application for Oculus Rift Created : 18th Dec 2014 Authors : Tom Heath Copyright : Copyright 2012 Oculus, Inc. All Rights reserved. Licen...
/* ------------------------------------------------------------------------- * * ruleutils.c * Functions to convert stored expressions/querytrees back to * source text * * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of Califor...
#pragma once #include <bravo/protocol/authority.hpp> #include <bravo/protocol/types.hpp> namespace bravo { namespace protocol { typedef std::function<authority(const string&)> authority_getter; struct sign_state { /** returns true if we have a signature for this key or can * produce a signature for thi...
/* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certai...
#include <windows.h> #include <stdio.h> #include <direct.h> #include <assert.h> #include <tchar.h> #include <dbghelp.h> #include <strsafe.h> #include <str.h> typedef enum { cmdIni, cmdInfo, cmdClient, cmdHave, cmdSync, cmdMax }; typedef BOOL (*CMDPROC)(TCHAR *dir); typedef struct _CMD { T...
/* * Copyright (C) 2017, Yeolar */ #include <gtest/gtest.h> #include "Tree.h" namespace ae { template <class T> bool getNodePath(TreeNode<T>* root, TreeNode<T>* node, std::vector<TreeNode<T>*>& path) { if (root == node) return true; path.push_back(root); bool found = false; auto it = root-...
/* * Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider, * Jérémie Comarmond, Didier Colin. * 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 ...
// Copyright (c) 2019, NVIDIA CORPORATION. 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 condi...
// Copyright (c) 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 "chrome/browser/profiles/profile_window.h" #include <stddef.h> #include <utility> #include "base/command_line.h" #include "base/macros.h" #...
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_PrimalItemArmor_StagSaddle_classes.hpp" namespace sdk { //--------------------------------------------------------------------------- //Parameters //-------------------------------------------...
/* * 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...
#include <CCA/Components/Arches/PropertyModelsV2/spectralProperties.h> #include <CCA/Components/Arches/ChemMix/ChemHelper.h> using namespace Uintah; //--------------------------------------------------------------------------- ////Method: Constructor ////--------------------------------------------------------------...
#include "SkPMFloat.h" #include "Test.h" DEF_TEST(SkPMFloat, r) { // Test SkPMColor <-> SkPMFloat SkPMColor c = SkPreMultiplyColor(0xFFCC9933); SkPMFloat pmf; pmf.set(c); REPORTER_ASSERT(r, SkScalarNearlyEqual(1.0f, pmf.a())); REPORTER_ASSERT(r, SkScalarNearlyEqual(0.8f, pmf.r())); REPORTE...
// // Created by Yichen Xu on 2020/9/6. // #include "include/core/pokemon/pokemons/duraludon.h" #include <move/moves/IceBeam.h> #include <move/moves/IronDefense.h> #include <move/moves/DragonDance.h> #include <move/moves/DragonDart.h> std::string Duraludon::name() const { return "铝钢龙"; } Hexagon<llint> Duraludon...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #include "jitpch.h" #ifdef _MSC_VER #pragma hdrstop #endif #ifdef FEATURE_HW_INTRINSICS #include "codegen.h" // H...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2018 The PIVX developers // Copyright (c) 2019 The NMN developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-licen...
/*################################################################################ ## ## Copyright (C) 2011-2021 Keith O'Hara ## ## This file is part of the StatsLib C++ library. ## ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance...
// Copyright (c) 2020 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/consensus.h> #include <net.h> #include <net_processing.h> #include <protocol.h> #include <test/fuzz/FuzzedData...
// -*-Mode: C++;-*- // * BeginRiceCopyright ***************************************************** // // $HeadURL$ // $Id$ // // -------------------------------------------------------------------------- // Part of HPCToolkit (hpctoolkit.org) // // Information about sources of support for research and development of //...
#include "FrenchSuite.h" FrenchSuite::FrenchSuite(const FrenchSuite& other) : suite(other.suite) { } void FrenchSuite::inc() { if (this->suite == Clubs) { this->suite = Diamond; } else { this->suite = static_cast<Suite>(this->suite + 1); } } bool FrenchSuite::doCompare(const CardProperty& toCompare) ...
//-------------------------------------------------------------------------------------------------- // Copyright (c) YugaByte, 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 // // ht...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 Litecoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "irc.h" #include "db.h" #i...
/**************************************************************************** ** Meta object code from reading C++ file 'ccWaveformDialog.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.11.1) ** ** WARNING! All changes made in this file will be lost! ***************************************************...
/* * Copyright (c) 2007, Michael Lehn * * 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,...
#pragma once #include <futurepia/app/application.hpp> #include <futurepia/app/futurepia_api_objects.hpp> #include <futurepia/token/token_objects.hpp> #include <fc/api.hpp> namespace futurepia { namespace token { struct token_api_object { token_api_object() {} token_api_object( const token_object& o ...
/* configdb.cpp хранение настроек в базе sqlite. */ /* Copyright © 2011 Far Group 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 no...
// Copyright (c) 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 "content/browser/streams/stream_registry.h" #include "content/browser/streams/stream.h" namespace content { namespace { // The maximum siz...
#include <iostream> #include <string> #include <map> #include "NumberWithUnits.hpp" using namespace std; const double TOLERANCE = 0.0001; namespace ariel{ static map<string, map<string, double>> units_table; NumberWithUnits::NumberWithUnits(const double num, const string& units): num(num),...
/* * ArduCAM.cpp * * Created on: 9. 3. 2017 * Author: michp */ #include <ArduCAM.h> namespace flyhero { ArduCAM& ArduCAM::Instance() { static ArduCAM instance; return instance; } void ArduCAM::DMA_init() { if (__DMA2_IS_CLK_DISABLED()) __DMA2_CLK_ENABLE(); this->hdma_spi1_rx.Instance = DMA2_Strea...
#include <map> #include <iostream> using namespace std; int main(){ int n; cin>>n; int a,b; int maxa = 0; int minb = 1001; for (int i = 0; i < n; i++) { cin>>a>>b; maxa = max(maxa, a); minb = min(minb, b); } if(maxa>minb){ cout<<"edward is right"; ...
#include "utility.h" #include "lio_sam/cloud_info.h" struct smoothness_t{ float value; size_t ind; }; struct by_value{ bool operator()(smoothness_t const &left, smoothness_t const &right) { return left.value < right.value; } }; class FeatureExtraction : public ParamServer { public: r...
#include "client.hpp" #include "basic_shell.hpp" #include <cctype> #include <boost/asio.hpp> #include <boost/lexical_cast.hpp> #include <chrono> #include <deque> #ifdef __ANDROID__ #include <boost/filesystem.hpp> #else #include <filesystem> #endif #include <iostream> #include <mutex> #include <thread> cla...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2016-2019 The PIVX developers // Copyright (c) 2020 The Klimatas developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license...
/* This file is part of the ArduinoECCX08 library. Copyright (c) 2019 Arduino SA. 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 Free Software Foundation; either version 2.1 of the Lic...
/* ID: pufepro1 LANG: C++ TASK: gift1 */ #include <cstdio> #include <string> #include <map> #include <vector> using namespace std; struct person_t { string name; int balance; }; int main() { FILE *fin = fopen ("gift1.in", "r"); FILE *fout = fopen ("gift1.out", "w"); vector<person_t> person; int n;...
// Copyright 2019 the V8 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 "src/snapshot/embedded/platform-embedded-file-writer-win.h" #include <algorithm> #include "src/common/globals.h" // For V8_OS_WIN64 #if def...
#ifndef __PYWRAPS_CUSTVIEWER__ #define __PYWRAPS_CUSTVIEWER__ //<code(py_kernwin_custview)> //--------------------------------------------------------------------------- class cvdata_simpleline_t { strvec_t lines; simpleline_place_t pl_min, pl_max; public: void *get_ud() { return &lines; } place_t *get_min() {...
//$Id$ //------------------------------------------------------------------------------ // GmatApp //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool // // Copyright (c) 2002 - 2020 United States Government as represented ...
//------------------------------------------------------------------------------ /// \file MessageQueueDescription.cpp /// \author Ernest Yeung /// \email ernestyalumni@gmail.com /// \ref http://man7.org/linux/man-pages/man2/mq_open.2.html /// \brief Wrapper for ::mq_open, which creates a new POSIX message queue or //...
#include "header.h" struct MultipleDefsButSameHeader { int i; }; struct OneDefInDifferentFile { int i; };
/////////////////////////////////////////////////////////////////////////////// // // // Global.cpp // // Copyright (C) Microsoft Corporation. All rights reserved. // ...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
// Copyright Carl Philipp Reh 2006 - 2019. // 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 <sge/renderer/lock_segment.hpp> #include <sge/renderer/raw_pointer.hpp> #include <sge/rend...
// 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 <algorithm> #include <memory> #include "base/bind.h" #include "base/memory/ref_counted.h" #include "base/message_loop/message_loop.h" #inclu...
#include "StaticTurn.h" StaticTurn::StaticTurn() { LOG("[StaticTurn] Constructed\n"); if (CommandBase::pDriveTrain != nullptr) Requires(CommandBase::pDriveTrain); // Create a PID object with values tweaked specifically for turning // This allows us to have multiple PIDs working m_pPID = new PID(PROPORTIONAL, IN...
#pragma once #include "routing/road_graph.hpp" #include "routing/router.hpp" #include "routing/road_graph_router.hpp" #include "routing_common/vehicle_model.hpp" #include "indexer/index.hpp" #include "storage/country_info_getter.hpp" #include "geometry/point2d.hpp" #include "std/set.hpp" #include "std/shared_ptr....
/* the vast starry sky, bright for those who chase the light. */ #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> pii; #define mk make_pair const int inf=(int)1e9; const ll INF=(ll)5e18; const int MOD=998244353; int add(int x,int y){x+=y; return x>=MOD ? x-MOD : x;} int sub(int x...
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
/* ****************************************************************************** * * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * * See the NOTICE file distributed wit...
#include "../avxblas.h" #include "../constants.h" #include "../utils.h" #include "../Inline/inline_copy_s.hpp" #pragma unmanaged int pixelshuffle3d_channeltospace_aligned( const uint n, const uint ic, const uint oc, const uint iw, const uint ow, const uint ih, const uint oh, const uint id, const uint ...
#include "taichi/ir/ir.h" #include <deque> #include <set> TLANG_NAMESPACE_BEGIN // Lower GlobalPtrStmt into smaller pieces for access optimization class LowerAccess : public IRVisitor { public: StructForStmt *current_struct_for; bool lower_atomic_ptr; LowerAccess(bool lower_atomic_ptr) : lower_atomic_ptr(lowe...
#include <bits/stdc++.h> using namespace std; #define sd(x) scanf("%d",&x) #define su(x) scanf("%u",&x) #define slld(x) scanf("%lld",&x) #define sc(x) scanf("%c",&x) #define ss(x) scanf("%s",x) #define sf(x) scanf("%f",&x) #define slf(x) scanf("%lf",&x) #define ll long long int #define mod(x,n) (x+n)%n...
/*! * \copy * Copyright (c) 2013, Cisco Systems * 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 co...
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "xfa/fwl/cfwl_scrollbar.h" #include <algorithm> #include <memory> #i...
//===- AMDGPUOpenCLEnqueuedBlockLowering.cpp - Lower enqueued block -------===// // // 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 // //===---------------------------...
// // local/datagram_protocol.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2018 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_...
#include "indexer/locality_index.hpp" #include "coding/file_container.hpp" #include "coding/mmap_reader.hpp" #include "defines.hpp" namespace indexer { std::string ReadGeneratorDataVersionFromIndex(std::string const & filename) { FilesContainerR indexContainer(filename); std::pair<uint64_t, uint64_t> offsetsAndS...
/* ______ ______ __ __ __ ______ __ __ /\___ \ /\ ___\ /\ "-.\ \ /\ \ /\__ _\ /\ \_\ \ \/_/ /__ \ \ __\ \ \ \-. \ \ \ \ \/_/\ \/ \ \ __ \ /\_____\ \ \_____\ \ \_\" \_\ \ \_\ \ \_\ \ \_\ \_\ \/_____/ \/_____/ \/_/ \/_/ \/_/ \/_/ \/_/\/_/ ZR...
/* * Copyright (c) 2020 Dennis Lang(LanDen Labs) landenlabs@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 restriction, including * without limitation the rights t...
#include "tools.h" #include <iostream> using Eigen::VectorXd; using Eigen::MatrixXd; using std::vector; Tools::Tools() {} Tools::~Tools() {} VectorXd Tools::CalculateRMSE(const vector<VectorXd> &estimations, const vector<VectorXd> &ground_truth) { /** * TODO: Calculate the RMSE he...
//===----------------------------------------------------------------------===// // // 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) 2010-2015 Pivotal Software, 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 req...
class Solution { public: vector<vector<int>> restoreMatrix(vector<int>& rowSum, vector<int>& colSum) { vector<vector<int>> answer(rowSum.size(), vector<int>(colSum.size(), 0)); for (int i = 0; i < rowSum.size(); ++i) { for (int j = 0; j < colSum.size(); ++j) { answer[i][j...
// https://leetcode.com/problems/binary-tree-level-order-traversal/ class Solution { public: vector<vector<int>> levelOrder(TreeNode* root) { vector<vector<int>> res; if(!root) return res; queue<TreeNode*> q; q.push(root); while(!q.empty()) { in...
#ifndef _COSMIC_RECO_PDFFit_HH #define _COSMIC_RECO_PDFFit_HH #include "RecoDataProducts/inc/ComboHit.hh" #include "RecoDataProducts/inc/CosmicTrack.hh" #include "RecoDataProducts/inc/CosmicTrackSeed.hh" #include "DataProducts/inc/XYZVec.hh" //Tracker Details: #include "TrackerGeom/inc/Tracker.hh" #include "TrackerCo...
// 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 "opentxs/core/crypto/OTPasswor...
// Copyright (c) 2011-2013 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 "editaddressdialog.h" #include "ui_editaddressdialog.h" #include "addresstablemodel.h" #include "guiutil.h" #includ...
/* * Copyright 2016-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...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
// // Copyright (c) 2016-present DeepGrace (complex dot invoke 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/deepgrace/giant // #include <ctime> ...
#pragma once #include <list> #include <mbgl/layout/layout.hpp> #include <mbgl/renderer/render_pass.hpp> #include <mbgl/renderer/render_source.hpp> #include <mbgl/style/layer_properties.hpp> #include <mbgl/tile/geometry_tile_data.hpp> #include <mbgl/util/mat4.hpp> #include <memory> #include <string> namespace mbgl { c...
/*------------------------------------------------------------------------- * * scansup.h * scanner support routines. used by both the bootstrap lexer * as well as the normal lexer * * Portions Copyright (c) 1996-2017, PostgreSQL Global Development PGGroup * Portions Copyright (c) 1994, Regents of the Univers...
/** * @file storerdmdevice.cpp * */ /* Copyright (C) 2019-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, inc...
// MIT Licensed (see LICENSE.md). #include "Precompiled.hpp" namespace Math { const Vector4 Vector4::cZero(real(0.0), real(0.0), real(0.0), real(0.0)); const Vector4 Vector4::cXAxis(real(1.0), real(0.0), real(0.0), real(0.0)); const Vector4 Vector4::cYAxis(real(0.0), real(1.0), real(0.0), real(0.0)); const Vector4 Ve...