text stringlengths 7 961k |
|---|
///////////////////////////////////////////////////////////////////////////////
// accumulator.hpp
//
// Copyright 2005 Eric Niebler. 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 BOOST_ACCUMULATORS_FR... |
#include <iostream>
#include <list>
#include <algorithm>
using namespace std;
int main()
{
list<int> coll;
for(int i = 20; i <= 40; ++i)
coll.push_back(i);
auto pos3 = find(coll.begin(), coll.end(), 3);
reverse(pos3, coll.end());
list<int>::iterator pos25, pos35;
pos25 = find(coll.b... |
/*
//@HEADER
// ************************************************************************
//
// KokkosKernels 0.9: Linear Algebra and Graph Kernels
// Copyright 2017 Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retain... |
/*
Copyright (c) 2009-2012, Jack Poulson, Lexing Ying, and
The University of Texas at Austin.
All rights reserved.
Copyright (c) 2013, Jack Poulson, Lexing Ying, and Stanford University.
All rights reserved.
Copyright (c) 2013-2014, Jack Poulson and
The Georgia Institute of Technology.
All r... |
// Copyright (c) 2018 The Graviocoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/coldstakingdialog.h>
#include <qt/forms/ui_coldstakingdialog.h>
#include <qt/guiutil.h>
#include <qt/walletmodel... |
/*
* 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... |
/*
* FastAlloc.cpp
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2013-2018 Apple Inc. and the FoundationDB project 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... |
// constructing QLinkedLists
#include <iostream>
#include <QLinkedList>
#include <cassert>
using namespace std;
int main ()
{
// constructors used in the same order as described above:
QLinkedList<int> first; // empty QLinkedList of ints
assert(first.size() == 0);
first.push_back... |
#include <CGAL/Linear_cell_complex_for_combinatorial_map.h>
#include <CGAL/Linear_cell_complex_constructors.h>
#include <CGAL/Curves_on_surface_topology.h>
#include <CGAL/Path_on_surface.h>
#include <CGAL/draw_face_graph_with_paths.h>
#include <CGAL/Random.h>
#include <iostream>
#include <cstdlib>
using LCC_3 ... |
/******************************************************************************
*
* Project: OGR ODBC Driver
* Purpose: Declarations for ODBC Access Cover API.
* Author: Frank Warmerdam, warmerdam@pobox.com
*
******************************************************************************
* Copyright (c) 2003,... |
/*
BSD 3-Clause License
Copyright (c) 2021, SudoCpp
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,... |
#include "../assets/BitmapModel.h"
BitmapModel::BitmapModel(TextureRegion* region) {
mTexture = region->mTexture;
mWidth = region->mW;
mHeight = region->mH;
GLuint textureHandle = region->mTexture->mGlHandle;
GLint textureWidth, textureHeight;
glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GL_TEXTURE_WIDTH,... |
/*
Copyright 2014, Jernej Kovacic
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 2012 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 applicab... |
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... |
#define GL_GLEXT_PROTOTYPES 1
#include <GL/gl.h>
#include <GL/glext.h>
#include <Cg/cgGL.h>
#include <GL/glut.h>
#include "Ravl/Image/GLIPContext.hh"
#include "Ravl/Image/GLIPProgram.hh"
#include "Ravl/Image/Image.hh"
#include "Ravl/Image/ByteRGBValue.hh"
#include "Ravl/Option.hh"
#include "Ravl/OS/Date.hh"
#include "... |
#include "datetime.h"
#include "defaults.h"
#include <cstdio>
#include "atomic.h"
#include "event.h"
#include "mutex.h"
#include "condvar.h"
#ifdef _win_
#include "winint.h"
#endif
class TSystemEvent::TEvImpl: public TAtomicRefCount<TSystemEvent::TEvImpl> {
public:
#ifdef _win_
inline TEvImpl(ResetMode rmode) {... |
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "Softmax.hpp"
#include <TensorUtils.hpp>
#include <cmath>
#include <vector>
namespace armnn
{
/// Computes the softmax function on some inputs, into outputs, with a shape given by tensorInfo.
void Softmax(Decoder<floa... |
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
#include "RoctracerActivityApi.h"
#include <cstring>
#include <chrono>
#include <time.h>
#include "Demangle.h"
#include "output_base.h"
#include "ThreadUtil.h"
typedef uint64_t timestamp_t;
static timestamp_t timespec_to_ns(const timespec& t... |
// Copyright (c) 2016-2017 The Usdecoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <policy/rbf.h>
bool SignalsOptInRBF(const CTransaction &tx)
{
for (const CTxIn &txin : tx.vin) {
if (t... |
#include "openglwidget.h"
void OpenGLWidget::initializeGL()
{
//调用内容初始化函数
initializeOpenGLFunctions();
}
void OpenGLWidget::resizeGL(int w, int h)
{
//当窗口大小改变时,调整界面坐标显示高度和宽度
glViewport(0, 0, w, h);
}
void OpenGLWidget::paintGL()
{
//清除之前图形并将背景设置为黑色(设置为黑色纯粹个人爱好!)
//glClear(GL_COLOR_BUFFER_BIT |... |
//
// Copyright (c) 2017-2018 Advanced Micro Devices, Inc. All rights reserved.
//
// 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 rig... |
/*
===============================================================================
FILE: lasreaderpipeon.hpp
CONTENTS:
Reads LIDAR points from another LASreader and writes them also to the stdout
before returning them to the instance that is reading the points.
PROGRAMMERS:
martin.isenburg@r... |
// Dylan Losey, July 1, 2019.
// Speaker (using Forces)
#include <iostream>
#include <fstream>
#include <cmath>
#include <chrono>
#include <franka/exception.h>
#include <franka/robot.h>
std::ofstream recorder;
class PotentialFieldController {
public:
PotentialFieldController();
franka::CartesianVeloc... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "merkleblock.h"
#include "hash.h"
#include "primitives/block.h" // for MAX_B... |
#include "UserPatch.h"
QDISCORD_NAMESPACE_BEGIN
void UserPatch::setUsername(const QString& username)
{
data_["username"] = username;
}
void UserPatch::setAvatar(const QByteArray& avatar)
{
data_["avatar"] = QString(avatar);
}
QDISCORD_NAMESPACE_END |
#include "BulletDebugDraw.h"
#include <string>
#include <vector>
#include "GameCore.h"
#include "TextRenderer.h"
#include "CommandContext.h"
#include "PipelineState.h"
#include "InputLayout.h"
#include "CompiledShaders/BulletLineVS.h"
#include "CompiledShaders/BulletLinePS.h"
using namespace Math;
namespace BulletDe... |
#include "CellGraph.hpp"
#include "ClusterGraph.hpp"
#include "ExpressionMatrix.hpp"
#include "filesystem.hpp"
#include "randIndex.hpp"
#include "SimilarPairs.hpp"
#include "timestamp.hpp"
#include "tokenize.hpp"
using namespace ChanZuckerberg;
using namespace ExpressionMatrix2;
#include <boost/algorithm/string.hpp>
#... |
// 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 "net/tools/quic/quic_client.h"
#include <errno.h>
#include <netinet/in.h>
#include <string.h>
#include <sys/epoll.h>
#include <sys/socket.h>... |
// Copyright (c) 2007-2013 Hartmut Kaiser
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#if !defined(HPX_ASYNC_APR_16_20012_0225PM)
#define HPX_ASYNC_APR_16_20012_0225PM
#include <hpx/hpx_fwd.hpp>
#include... |
/*
* Copyright (c) 2021 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
/**********************************************************************
Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved.
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 wi... |
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2008-2012 Artyom Beilis (Tonkikh) <artyomtnk@yahoo.com>
//
... |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "leveldb/db.h"
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/type... |
/* Kattis - Dancerecital
This complete search problem is relatively easy in theory but could make one frustrated due to various bugs
and complex work with bitmasks
Observation 1:
Since n <= 10, technically a complete search solution should be fast enough,
it seems that that is just barely true for this quest... |
/*
* display.cpp
*
* Created on: 20 Jan 2019
* Author: Gabi
*/
Display::Display()
{
class System sys;
// init the system class
this->System = sys;
this->terminalWidth = this->System.GetTerminalWidth();
}
void Display::DisplayTitle( CPCHAR msg )
{
int i, extraStars;
STRINGCLASS Sta... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2018 The PIVX developers
// Copyright (c) 2017-2018 The HUZU developers
// Copyright (c) 2018-2019 The ZIJA developers
// Copyright (c) 2019 The DAZZ develop... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*=============================================================
**
** Source: virtualalloc.c
**
** Purpose: Positive test the VirtualAlloc API.
** Call VirtualAlloc with ME... |
#include <bits/stdc++.h>
using namespace std;
class SinglyLinkedListNode
{
public:
int data;
SinglyLinkedListNode *next;
SinglyLinkedListNode(int node_data)
{
this->data = node_data;
this->next = nullptr;
}
};
class SinglyLinkedList
{
public:
SinglyLinkedListNode *h... |
#include <iostream>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--){
string s;
cin>>s;
int ans=0;
for(int i=0; i<s.size(); i++){
ans+=(s[i]-48);
}
cout<<ans<<endl;
}
return 0;
} |
#pragma once
#include <Engine/Graphics/Buffers/VertexBuffer.hpp>
#include <Engine/Graphics/Buffers/IndexBuffer.hpp>
#include <Engine/Graphics/Buffers/VertexAttribute.hpp>
#include <memory>
class VertexArray
{
public:
VertexArray();
~VertexArray();
void bind();
void unbind();
void setVertexBuffer(const std::sh... |
/* ******************************************************************************
*
*
* 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... |
// This file is licensed under the Elastic License 2.0. Copyright 2021 StarRocks Limited.
#include "exec/vectorized/join_hash_map.h"
#include <column/chunk.h>
#include <gen_cpp/PlanNodes_types.h>
#include <runtime/descriptors.h>
#include "exec/vectorized/hash_join_node.h"
#include "simd/simd.h"
namespace starrocks:... |
// Copyright (c) 2020 The Orbit 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 "OrbitGgp/Project.h"
#include <absl/strings/str_format.h>
#include <QByteArray>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonO... |
//===--- ParseDecl.cpp - Declaration Parsing --------------------*- C++ -*-===//
//
// 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
//
//===---------------------------... |
/*
* SWEUnstableJetFast.hpp
*
* Created on: 05 Mar 2018
* Author: Pedro Peixoto <pedrosp@ime.usp.br>
*/
#ifndef SWE_PLANE_UNSTABLEJETADV_HPP_
#define SWE_PLANE_UNSTABLEJETADV_HPP_
#include <stdlib.h>
#include <cmath>
#include <sweet/SimulationVariables.hpp>
#include <sweet/plane/PlaneData_Spectral.hpp>
#i... |
#include<bits/stdc++.h>
using namespace std;
#define fast ios::sync_with_stdio(false);cin.tie(0)
#define pb push_back
#define digit(x) floor(log10(x))+1
#define mod 1000000007
#define endl "\n"
#define int long long
#define matrix vector<vector<int> >
#define vi vector<int>
#define pii pair<int,int>
#define vs vector<s... |
/* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* Copyright (c) 2010-2019, ITU/ISO/IEC
* All rights reserve... |
/*
* Copyright 2009-2020 The VOTCA Development Team
* (http://www.votca.org)
*
* 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
*
* h... |
// Copyright 2018 Google 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 to in ... |
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/zxio/inception.h>
#include <lib/zxio/null.h>
#include <lib/zxio/ops.h>
#include <sys/stat.h>
#include <zircon/syscalls.h>
#include "private.... |
#include "imageviewer.h"
#include "pixelwidget.h"
#include "apisurface.h"
#include "image.hpp"
#include <QDebug>
#include <QDesktopWidget>
#include <QPainter>
#include <QPixmap>
#include <QScrollBar>
#include <QSettings>
ImageViewer::ImageViewer(QWidget *parent, bool opaque, bool alpha)
: QDialog(parent),
... |
/*
* Copyright 1999-2000,2004 The Apache Software 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 requir... |
#include <iostream>
#include <type_traits>
#include <algorithm>
#include <cstring>
#include <vector>
// https://loosechainsaw.github.io/c++/2020/02/19/ringbuffer/
template<typename T, size_t N, bool Overwrite = true>
class RingBuffer;
namespace detail {
template<typename T, size_t N, bool C, bool Overwrite>
class ... |
/* Main program for the checking library. */
/* Copyright (c) 1994 Stanford University
All rights reserved.
This software is provided under the terms described in
the "suif_copyright.h" include file. */
#include <suif_copyright.h>
#define _MODULE_ "libcheck.a"
#pragma implementation "check.h"
#defi... |
#include <string>
#include <utility>
#include <vector>
#include <memory>
#include <iostream>
#include <ssc/sscapi.h>
#include "SAM_api.h"
#include "ErrorHandler.h"
#include "SAM_TroughPhysical.h"
SAM_EXPORT int SAM_TroughPhysical_execute(SAM_table data, int verbosity, SAM_error* err){
return SAM_module_exec("trough... |
/*
* Copyright (C) 2016-2018 Philippe Proulx <eepp.ca>
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#ifndef _YACTFR_ELEM_SEQ_IT_HPP
#define _YACTFR_ELEM_SEQ_IT_HPP
#include <cassert>
#include <cstddef>
#include <iterator>
#include <m... |
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <iostream>
#include <arc/XMLNode.h>
#include <arc/ArcLocation.h>
#include <arc/security/ArcPDP/Response.h>
#include <arc/security/ArcPDP/attr/AttributeValue.h>
#include <arc/security/ArcPDP/EvaluatorLoader.h>
using namespace ArcSec;
int main(int argc,char* ar... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/autoscaling/model/MetricType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;... |
/*************************************************************************/
/* vulkan_context.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#ifndef PYTHONIC_INCLUDE_OPERATOR_INDEXOF_HPP
#define PYTHONIC_INCLUDE_OPERATOR_INDEXOF_HPP
#include "pythonic/include/utils/functor.hpp"
namespace pythonic
{
namespace operator_
{
template <class A, class B>
long indexOf(A const &a, B const &b);
DECLARE_FUNCTOR(pythonic::operator_, indexOf);
}
}... |
/// \file ParamGeneration.cpp
///
/// \brief Parameter manipulation routines for the Zerocoin cryptographic
/// components.
///
/// \author Ian Miers, Christina Garman and Matthew Green
/// \date June 2013
///
/// \copyright Copyright 2013 Ian Miers, Christina Garman and Matthew Green
... |
#include "SimulationCore.h"
#include "VisualizationHelper.h"
#include "GlobalConstants.h"
#include "InputSystem.h"
#include "DataBase.h"
#include <vector_functions.hpp>
void SimulationCore::ToolSystem(DataBase* dataBase)
{
m_velocity.GenerateVelocityField();
m_density.InitializeManager(dataBase);
m_eikonalSolver.Pr... |
// Copyright 2011 the V8 project authors. 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 ... |
#ifndef _TEMPMAX_
#define _USE_MATH_DEFINES
#include <cmath>
#include <iostream>
#include <vector>
#include <string>
#include <numeric>
#include <algorithm>
#include <array>
#include <map>
#include <tuple>
#include "Tempmax.h"
using namespace std;
Tempmax::Tempmax() { }
double Tempmax::getprof() {return this-> prof; }... |
/*
Copyright (C) 2015 MeiZhaorui(Mason) <listener_mei@163.com>
The File 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 License, or (at your option) any later ve... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/swf/model/ActivityTaskTimedOutEventAttributes.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
names... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2018 The KazuSilver developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "miner.h"
#include "amo... |
#ifndef __INVERTEDPENGUIN__CORE__DICTIONARY__DETAIL__VALUEDICTIONARYBUILDERVALUEITERATOR_HPP__
#define __INVERTEDPENGUIN__CORE__DICTIONARY__DETAIL__VALUEDICTIONARYBUILDERVALUEITERATOR_HPP__
#include <inverted_penguin/core/dictionary/detail/ValueDictionaryBuilderBaseIterator.hpp>
namespace inverted_penguin {
namespa... |
// =============================================
// Aster: pipeline.cc
// Copyright (c) 2020-2021 Anish Bhobe
// =============================================
#pragma once
#include "pipeline.h"
#include <util/files.h>
#include <spirv_reflect/spirv_reflect.h>
#include <map>
constexpr const char* to_cstr(SpvReflectR... |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
#include "encryptedrowvector.h"
#include <glog/logging.h>
#include <algorithm>
#include <execution>
#include "common.h"
using namespace std;
namespace hit {
EncryptedRowVector::EncryptedRowVector(int w... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bitcoinamountfield.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#include "qvaluecombobox.h"
#include <Q... |
// Copyright (c) 2012-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "script/script.h"
#include "test/test_cns.h"
#include <boost/test/unit_test.hpp>
BOOST_FIXTURE_TEST_SUITE(script_P... |
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "metricsnapshot.h"
#include "metricmanager.h"
#include <cassert>
#include <vespa/log/log.h>
LOG_SETUP(".metrics.snapshot");
namespace metrics {
MetricSnapshot::MetricSnapshot(const Metric::... |
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Buff_BiglyPostProccess_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//-----------------------------------------------------------... |
#include "Viscosity_Peer2015.h"
#include "SPlisHSPlasH/TimeManager.h"
#include "SPlisHSPlasH/Utilities/Timing.h"
using namespace SPH;
Viscosity_Peer2015::Viscosity_Peer2015(FluidModel *model) :
ViscosityBase(model)
{
m_targetNablaV.resize(model->numParticles(), Matrix3r::Zero());
m_maxIter = 100;
m_maxError = 0.... |
// Copyright (c) 2018 Till Kolditz
//
// 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 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
#include "Timer.h"
Timer::Timer()
:mElapsedTime(0.0)
,mPaused(true)
,mFactor(1.0)
,mLastFactor(1.0)
{
QueryPerformanceFrequency( &mTimerFrequency );
mStartTime.QuadPart = 0;
mEndTime.QuadPart = 0;
}
Timer::~Timer()
{
}
void Timer::start()
{
QueryPerformanceCounter( &mStartTime );
//reset end time as well
mEn... |
#include <jaco_interaction/jaco_interactive_manipulation.h>
using namespace std;
JacoInteractiveManipulation::JacoInteractiveManipulation() :
acGrasp("jaco_arm/manipulation/grasp", true), acPickup("jaco_arm/manipulation/pickup", true), acHome(
"jaco_arm/home_arm", true)
{
joints.resize(6);
//messages... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2018 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2019, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... |
#ifndef ___INANITY_GRAPHICS_GL_FRAME_BUFFER_HPP___
#define ___INANITY_GRAPHICS_GL_FRAME_BUFFER_HPP___
#include "FrameBuffer.hpp"
#include "opengl.hpp"
BEGIN_INANITY_GRAPHICS
class GlDevice;
class Presenter;
/// Frame buffer class for OpenGL graphics.
/** Default framebuffer is represented naturally
- with zero name... |
// Copyright (c) 2015 fjz13. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
#include "MedusaPreCompiled.h"
#include "TextureGeneralMesh.h"
#include "Core/Geometry/Vertex/TextureVertex.h"
#include "Graphics/Buffer/VertexGraphicsBuffer.h"
#incl... |
//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2021 Ryo Suzuki
// Copyright (c) 2016-2021 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include "Common.hpp"
# include... |
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Copyright (c) 2012, Code Aurora Forum. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/http/http_basic_stream.h"
#include "base/stringprintf.h"
#include "net/b... |
/*
[auto_generated]
libs/numeric/odeint/test/const_range.hpp
[begin_description]
tba.
[end_description]
Copyright 2009-2012 Karsten Ahnert
Copyright 2009-2012 Mario Mulansky
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or
copy at http://www.boo... |
/*
* Copyright 2011 The LibYuv 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing p... |
/* This file is provided as a compilation stub to ensure ongoing build testing
* of the ug-g converter. This file does not necessarily reflect the
* Unigraphics api, its values, or type constructs and any similarity is either
* coincidental or necessary for compilation.
*/
#include "shim.h"
extern "C" int UF_ASS... |
/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkCanvas.h"
#include "SkSVGEllipse.h"
#include "SkSVGRenderContext.h"
#include "SkSVGValue.h"
SkSVGEllipse::SkSVGEllipse() : INHERITED(SkSVGTag::kEllipse) {}
void ... |
#ifndef SQLITEMM_20200528_H_
#define SQLITEMM_20200528_H_
/************************************************************************************************************
* SQLitemm header file
*
* Copyright 2020 Amanda Wee
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file... |
/*! \file complex.hpp
\brief Support for types found in \<complex\>
\ingroup STLSupport */
/*
Copyright (c) 2014, Randolph Voorhies, Shane Grant
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are... |
/*********************************************************\
* File: BodyImpl.cpp *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... |
/* Borrowed from yedf/handy
*
*
*
*
*/
#ifndef __LOGGING__
#define __LOGGING__
#include <string>
#include <atomic>
#define hlog(level, ...) \
do { \
Logging::Logger::getLogger().logv(level, __FILE__, __LINE__, __func__, __VA_ARGS__); \
} while(0)
#define TRACE(...) hlog(Logging::level::level... |
#include <bits/stdc++.h>
using namespace std;
inline long long read()
{
long long x = 0;
int f = 1;
char ch = getchar();
while (ch < '0' || ch > '9')
{
if (ch == '-')
f = -1;
ch = getchar();
}
while (ch >= '0' && ch <= '9')
{
x = (x << 1) + (x << 3) ... |
// Copyright 2017 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 "src/ledger/bin/storage/impl/btree/iterator.h"
#include <lib/fit/function.h>
#include "src/ledger/bin/storage/impl/btree/internal_helper.h"
#inc... |
//=================================================================================================
/*!
// \file src/mathtest/smatdmatmult/MCbM4x4a.cpp
// \brief Source file for the MCbM4x4a sparse matrix/dense matrix multiplication math test
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
// ... |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/autofill/core/browser/ui/address_contact_form_label_formatter.h"
#include "components/autofill/core/browser/autofill_data_util.h"
#i... |
/*
* ssc.cpp
*
* Created on: Feb 2, 2011
* Author: tadej
*/
#include "ss_km.h"
TSemiSupKMeans::TSemiSupKMeans(const TBowMatrix *Docs, int K, int MaxItr, PNotify Not) :
TBowKMeans(Docs,K,MaxItr,Not), Constraints(Docs->GetRows()) {
}
int TSemiSupKMeans::DistinctFixedClusters(const TIntFltKdV& FixedClust... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.