text stringlengths 5 1.04M |
|---|
#ifndef OPENSTUDIO_RUNAMANAGER_JOBSTATE_HPP
#define OPENSTUDIO_RUNAMANAGER_JOBSTATE_HPP
#include <QDateTime>
#include <boost/optional.hpp>
#include "JobErrors.hpp"
#include "FileInfo.hpp"
#include <utilities/time/DateTime.hpp>
namespace openstudio {
namespace runmanager {
struct JobState
{
JobState()
{
... |
#include <testcase.hpp>
#include "testcase.pb.h"
int main(int c, char *argv[]) {
TestInt32::Test msg;
msg.set_i(0);
write_to_file(msg, "data-zero.pbf");
msg.set_i(1);
write_to_file(msg, "data-pos.pbf");
msg.set_i(200);
write_to_file(msg, "data-pos200.pbf");
msg.set_i(-1);
write... |
#using <System.dll>
#using <System.Windows.Forms.dll>
#using <System.Drawing.dll>
using namespace System;
using namespace System::Drawing;
using namespace System::Windows::Forms;
public ref class Form1: public System::Windows::Forms::Form
{
public:
Form1()
: Form()
{
//This call is required ... |
/*
* Copyright (C) 2018 Yusuke Suzuki <yusukesuzuki@slowstart.org>.
*
* 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 ... |
/** \file
* \author Max Mertens <max.mail@dameweb.de>
* \section LICENSE
* Copyright (c) 2014, Max Mertens.
* All rights reserved.
* This file is licensed under the "BSD 3-Clause License".
* Full license text is under the file "LICENSE" provided with this code. */
#ifndef _VERSION_HPP_
#define _VERSION_HPP_
#if... |
/* 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... |
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
*************************************... |
#include "skse64/PapyrusInput.h"
#include "skse64/GameInput.h"
#include "Hooks_DirectInput8Create.h"
namespace papyrusInput
{
bool IsKeyPressed(StaticFunctionTag* thisInput, UInt32 dxKeycode)
{
return DIHookControl::GetSingleton().IsKeyPressed(dxKeycode);
}
void TapKey(StaticFunctionTag* thisInput, UInt32 dxKey... |
/*
* Copyright (C) 2020 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 appl... |
#include "simpletoken.hpp"
#include <cmath>
void simpletoken::create( name issuer,
asset maximum_supply )
{
require_auth( _self );
auto sym = maximum_supply.symbol;
eosio_assert( sym.is_valid(), "invalid symbol name" );
eosio_assert( maximum_supply.is_valid(), "invalid supply"... |
// Copyright (c) 2013, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
#include <algorithm>
#inclu... |
/** @defgroup MleDPPBase Magic Lantern Digital Workprint Library API - Base */
/**
* @file DppTblMgr.cpp
* @ingroup MleDPPBase
*
* This file implements the table manager used by the Magic Lantern Digital
* Playprint Library API.
*
* @author Mark S. Millard
* @date July 17, 2004
*/
// COPYRIGHT_BEGIN
//
// Th... |
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2005-2012. 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/i... |
#ifndef TENSORFLOW_GRAPH_WRAPPER_HPP_
#define TENSORFLOW_GRAPH_WRAPPER_HPP_
#include <tensorflow/c/c_api.h>
#include <cstdint>
#include <string>
#include <vector>
#include <unordered_map>
class TensorflowGraphWrapper {
public:
/**
* @brief Loads a frozen protobuf graph definition
* @details protobuf f... |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obta... |
#include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
#include "bitcoinunits.h"
#include "addressbookpage.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include <QApplication>
#include <QClipboard>
SendCoinsEntry::SendCoinsEntry(QWidget *parent) :
Q... |
// 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 "wallet.h"
#include "base58.h"
#include "coincontrol.h"
#include "kernel... |
/// \file python_module_order_book.hpp
///
/// \brief
///
/// \authors maarten
/// \date 2020-11-01
/// \copyright Copyright 2017-2020 The Institute for New Economic Thinking,
/// Oxford Martin School, University of Oxford
///
/// Licensed under the Apache License, Version 2.0 (the "... |
//------------------------------------------------------------------------------
// CustomSensor
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool.
//
// Copyright (c) 2002 - 2017 United States Government as represented by t... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#i... |
/**********************************************************************
Audacity: A Digital Audio Editor
ImportQT.cpp
Joshua Haberman
On OS X, handles import of MPEG-4 audio including AAC and Apple
Lossless, import of audio from MPEG-4 video files, and import of
AIF(F)/AIFC files (AIF(F) might contain ... |
/*
* Copyright 2011-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... |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright 2018- The GROMACS Authors
* and the project initiators Erik Lindahl, Berk Hess and David van der Spoel.
* Consult the AUTHORS/COPYING files and https://www.gromacs.org for details.
*
* GROMACS is free software; you can redistribute... |
/*
* 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 <iostream>
#include <webhelper.hpp>
int main(int argc, char const *argv[])
{
WebHelper web("www.example.com", WebHelper::HTTP);
if(
web.GetStatus() != WebHelper::A_OK ||
web.RequestPage("index.html") != WebHelper::A_OK
)
{
std::cout << web.GetStatusDescription() << st... |
#include <iostream>
#include <string>
using namespace std;
inline
void use_io_optimizations()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
bool is_palindrome(const string& sequence)
{
for (string::size_type i {0}; i < sequence.size() / 2; ++i)
{
if (sequence[i] != sequence[sequence... |
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
#include "graph/context/QueryContext.h"
namespace nebula {
namespace graph {
QueryContext::QueryContext(RequestContextPtr rctx,
meta::SchemaManager* sm,
... |
// Copyright (c) 2011-2017 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <qt/addressbookpage.h>
#include <qt/forms/ui_a... |
#include <SFGUI/RadioButton.hpp>
#include <SFGUI/RadioButtonGroup.hpp>
namespace sfg {
RadioButton::Ptr RadioButton::Create( const sf::String& label, RadioButtonGroup::Ptr group ) {
auto widget = Ptr( new RadioButton );
widget->SetLabel( label );
if( group ) {
widget->SetGroup( group );
}
else {
widget->Se... |
//------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby ... |
/*=========================================================================
*
* Copyright Insight Software 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
*
* h... |
#include <deque>
#include <mutex>
#include <shared_mutex>
#include "REFramework.hpp"
#include "RETypeDB.hpp"
#include "RETypeDefinition.hpp"
namespace sdk {
struct RETypeDefinition;
sdk::REMethodDefinition* RETypeDefinition::MethodIterator::begin() const {
if (m_parent->member_method == 0) {
return null... |
#include "optionsdialog.h"
#include "ui_optionsdialog.h"
#include "fucoinunits.h"
#include "monitoreddatamapper.h"
#include "netbase.h"
#include "optionsmodel.h"
#include <QDir>
#include <QIntValidator>
#include <QLocale>
#include <QMessageBox>
#include <QRegExp>
#include <QRegExpValidator>
OptionsDialog::OptionsDia... |
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
// #include "HotPatcherPrivatePCH.h"
#include "CreatePatch/SHotPatcherExportPatch.h"
#include "CreatePatch/FExportPatchSettings.h"
#include "CreatePatch/PatcherProxy.h"
#include "CreatePatch/ScopedSlowTaskContext.h"
#include "FlibHotPatcherEditorHel... |
/*
* Copyright (c) 2012-2013 ARM Limited
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the... |
#include "UnifyDuplicateLets.h"
#include "IREquality.h"
#include "IRMutator.h"
#include <map>
namespace Halide {
namespace Internal {
using std::map;
using std::string;
class UnifyDuplicateLets : public IRMutator2 {
using IRMutator2::visit;
map<Expr, string, IRDeepCompare> scope;
map<string, string> rew... |
/****************************************************************************/
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
// Copyright (C) 2001-2020 German Aerospace Center (DLR) and others.
// This program and the accompanying materials are made available under the
// terms of the Ecli... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
// 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 "nacl_io/kernel_intercept.h"
#include <assert.h>
#include <errno.h>
#include <string.h>
#include "nacl_io/kernel_proxy.h"
#include "nacl_io... |
/****************************************************************************
*
* Copyright (c) 2015-2017 PX4 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. Red... |
/// \file
// Range v3 library
//
// Copyright Eric Niebler 2019-present
//
// 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)
//
// Project home: https://github.com/ericniebler... |
class Solution {
public:
int f(int& n, vector<int>& a, vector<int>& b, int sign1, int sign2) {
vector<int> v;
for( int i = 0 ; i < n ; i++ )
v.push_back(i+sign1*a[i]+sign2*b[i]);
int res = 0;
int minVal = v[0];
for( int i = 1 ; i < n ; i++ ) {
minVal =... |
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2021 Laurent Gomila (laurent@sfml-dev.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 a... |
// Copyright 1996-2019 Cyberbotics Ltd.
//
// 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 agr... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.ProBuilder.MeshU... |
// { Driver Code Starts
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
class Solution{
public:
vector<string> permutation(string S){
// Code Here
int len = S.size()-1;
vector<string> ans;
dfs(S,len,ans);
return ans;
}
void dfs(string s , int l... |
#include "SawWave_samples.h"
static const PROGMEM uint32_t sample_0_SawWave_SAW0_48[7680] = {
0x00090000,0x01f700e8,0x03f102f1,0x05de04ea,0x07a806bb,0x0ae5091a,0x0e2d0c7a,0x11520fb9,
0x146012d8,0x174015c5,0x1a1a18a6,0x1ce21b6c,0x1f971e30,0x223920dc,0x24ce237a,0x27592606,
0x29d12881,0x2c352aea,0x2e832d44,0x30b52f88,0x3... |
// Copyright (c) 2019 PaddlePaddle 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 requir... |
/*
* SpatialPolygon_test.cpp
*
* Created on: May 21, 2020
* Author: mrilee
*
* Copyright (C) 2020 Rilee Systems Technologies LLC
*/
#include "SpatialPolygon.h"
using namespace std;
#include "Test.h"
#include "SpatialIndex.h"
#define hexOut1(a,b) cout << a << " 0x" << hex << setfill('0') << setw(16) <<... |
// Copyright (c) 2014-2020 The Dash Core developers
#include <cachemultimap.h>
#include <test/util/setup_common.h>
#include <algorithm>
#include <iostream>
#include <boost/test/unit_test.hpp>
BOOST_FIXTURE_TEST_SUITE(cachemultimap_tests, BasicTestingSetup)
static bool Compare(const CacheMultiMap<int,int>& cmmap1,... |
#include "platform/i_platform.h"
#include "kill_score_system.h"
#include "core/player_controller_component.h"
#include "core/team_component.h"
#include "show_text_event.h"
namespace engine {
KillScoreSystem::KillScoreSystem()
: mScene( Scene::Get() )
, mProgramState( core::ProgramState::Get() )
, mScoreMo... |
/*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#in... |
#include <Imath/ImathFrustum.h>
void
frustum_example()
{
float near = 1.7f;
float far = 567.0f;
float left = -3.5f;
float right = 2.0f;
float top = 0.9f;
float bottom = -1.3f;
Imath::Frustumf frustum (near, far, left, right, top, bottom, false);
Imath::M44f m = frustum.projectionMatri... |
/*=========================================================================
Program: MIMX Meshing Toolkit
Module: $RCSfile: vtkMimxCylindricalMesh.cxx,v $
Language: C++
Date: $Date: 2012/12/07 19:08:59 $
Version: $Revision: 1.1.1.1 $
Musculoskeletal Imaging, Modelling and Experimentation (MIMX)
Center ... |
//hdu1242
/*
BFS+优先队列写法
存入所有可走的点,最先弹出时间花费最少的点进行计算
*/
#include<iostream>
#include<cstring>
#include<queue>
using namespace std;
char graph[205][205];
int visit[205][205];
int dir[4][2] = { { -1,0 },{ 1,0 },{ 0,-1 },{ 0,1 } };
int n, m;
struct node
{
int x, y;
int time;
friend bool operator < (const node &a, const ... |
////////////////////////////////////////////////////////////////////////////////
// Pac-Man clone
//
// Copyright (c) 2021 Kwena Mashamaite (kwena.mashamaite1@gmail.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Softwa... |
#ifndef _JH_HEADER_TOKEN_
#define _JH_HEADER_TOKEN_
namespace jh{
class Token{
public:
enum class Type{
Literal_null = 1, //null
Literal_bool_true, //true
Literal_bool_false, //false
Literal_int, //0, 1, 2, 54987, -45632
Literal_real, //2.5, 2., .2
/*
vJass
*/
Liter... |
#include "Timer.hpp"
#include <Windows.h>
namespace gengine {
namespace platform {
Timer::Timer()
{
LARGE_INTEGER fq, start;
QueryPerformanceFrequency(&fq);
frequency = 1.0 / fq.QuadPart;
QueryPerformanceCounter(&start);
this->start = start.QuadPart;
}
void Timer::reset()
{
LARGE_INTEGER ... |
// Copyright (c) 2017-2018 WEYCOIN developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include "config/weycoin-config.h"
#endif
#include "utilitydialog.h"
#include "ui_helpmessagedialog.h"
#... |
/*
* ----------------- BEGIN LICENSE BLOCK ---------------------------------
*
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
* ----------------- END LICENSE BLOCK -----------------------------------
*/
#include <gtest/gtest.h>
#include <spdlog/spdlog.h>
#include "spdlog/sinks/n... |
/*
Problem 5:
Write a recursive solution to evaluate the previous polynomial for any given x and n.
Like, when x=2 and n=5, we have 1 + x + x^2 + ................. + x^n-1 = 31
Input:
2 5
Output:
31
*/
#include <bits/stdc++.h>
using namespace std;
int func(int &x, int n) {
if (n == 0) {
return 1;
}
... |
//===- AArch64TargetStreamer.cpp - AArch64TargetStreamer class ------------===//
//
// 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
//
//===---------------------------... |
/*
This file is part of Kismet
Kismet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Kismet is distributed in the ... |
#include <iostream>
#include <queue>
#include <cstring>
using namespace std;
bool viable[30][30][30];
int bfsIndex[30][30][30];
int l, r, c;
int x1, y1, z1;
int x2, y2, z2;
struct Triple {
Triple(int x, int y, int z) : a(x), b(y), c(z) {};
int a, b, c;
};
int bfs() {
bfsIndex[x1][y1][z1] = 0;
queue<Triple> ... |
// Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... |
// Copyright (c) 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 "rpcserver.h"
#include "base58.h"
#include "init.h"
#include "util.h"
#includ... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2010, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... |
/**
* Copyright (C) 2016-2019 Xilinx, Inc
*
* 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
#include <iostream>
#include <vector>
#include <string>
using namespace std;
bool is_before(string first, string second){
if(first[0] != second[0])
return first[0] < second[0];
else{
if(first.size() > 1 && second.size() > 1)
return is_before(first.substr(1), second.substr(1));
... |
#include<bits/stdc++.h>
using namespace std;
ifstream fin("fact.in");
ofstream fout("fact.out");
int main()
{
int n,k;
fin>>n>>k;
long double lg=.0L;
for(int i=1;i<=n;i++)
lg+=log10((long double)i);
int len=floor(lg);
fout.precision(k);
fout<<pow(10.0L,lg-len)<<"e+"<<len<<endl;
return 0;
} |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 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 "pow.h"
#include "chain.h"
#include "chainparams.h"
#include "primitives... |
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2005-2008. 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/contain... |
/****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees ... |
#include <omp.h>
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include <iostream>
#include <vector>
#include <cassert>
using namespace std;
#include "randomMT.h"
float force(const float x)
{
return -2. * atan(x) / (x * x + 1.);
}
int main(void)
{
const int n = 64;
vector<float> x(n);
/* Ge... |
/*******************************************************************************
* Copyright 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.apache.o... |
/// Pimpact
/// \author huppd
/// \date 2018
#include <cmath>
#include "Pimpact_Operator.hpp"
#include "Pimpact_MultiGrid.hpp"
#include "Pimpact_CoarsenStrategyGlobal.hpp"
using S = double;
using O = int;
const int sd = 2;
const int d = 3;
const int dNC= 4;
using GridT = Pimpact::Grid<S, O, sd, d, dNC>;
using F... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache 2.0 License.
#include "ccf/historical_queries_adapter.h"
#include "ccf/rpc_context.h"
#include "ccf/service/tables/service.h"
#include "kv/kv_types.h"
#include "node/rpc/network_identity_subsystem.h"
#include "node/tx_receipt_im... |
// Copyright 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Lovell Fuller and contributors.
//
// 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/LICENS... |
/****************************************************************************
** Meta object code from reading C++ file 'rthpis.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.10.0)
**
** WARNING! All changes made in this file will be lost!
*************************************************************... |
/*
Copyright (c) 2007-2008 FastMQ Inc.
This file is part of 0MQ.
0MQ 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) 2016 PaddlePaddle 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... |
#include "bottools.hpp"
#include <stdlib.h>
#include <unistd.h>
#include <sstream>
void error_exit(std::string const &s1)
{
std::cerr << s1 << std::endl;
exit(1);
}
void ioerror(int sock, std::string const &msg)
{
close(sock);
error_exit(msg);
}
int ft_stoi(std::string const &str)
{
std::istringstream iss(s... |
#include "steerable.h"
#include "behaviors.h"
using namespace glm;
using namespace atk;
float omegan = 8.0;
float eta = 1.0;
float ASteerable::kVelKv = 10.0;
float ASteerable::kOriKv = 2.0 * omegan * eta;
float ASteerable::kOriKp = omegan * omegan;
// Given a desired velocity, veld, and dt, compute a transform ho... |
#include <UECS/World.h>
#include <iostream>
using namespace Ubpa::UECS;
struct A {};
struct B {};
struct C {};
class PrintASystem : public System {
public:
using System::System;
virtual void OnUpdate(Schedule& schedule) override {
schedule.RegisterEntityJob([](A*) {
std::cout << "A" << std::endl;
}, "Para... |
/*************************************************************************
*
* REALM CONFIDENTIAL
* __________________
*
* [2011] - [2015] Realm Inc
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Realm Incorporated and its suppliers,
* if any. The int... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: Valve.VR.IVRTr... |
/*****************************************************************************/
/* Xdmf */
/* eXtensible Data Model and Format */
/* ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
/**
* @file
* @brief Run-time type info enable or disable.
*
* @details When RTTI is enabled, defines a macro `AZ_TEMPLATE_RTTI`. When
* the macro is not defined, RTTI is disabled.
*
* @details Each library has this hea... |
#include "Material.h"
#include "AssetManager.h"
#include "rapidjson/error/en.h"
#include <fstream>
Material::Material(ID3D11Device* device, ID3D11DeviceContext* context, std::string assetID, std::string filepath) : Asset(device, context, assetID, filepath)
{
m_vertexShader = nullptr;
m_pixelShader = nullptr;
m_di... |
//*****************************************************************************
// Copyright 2017-2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... |
#include "defines.h"
#include <stm32f4xx_hal.h>
void HAL_NVIC_SetPriority(IRQn_Type, uint32_t, uint32_t)
{
}
void HAL_NVIC_EnableIRQ(IRQn_Type)
{
}
void HAL_NVIC_SystemReset()
{
}
void HAL_NVIC_DisableIRQ(IRQn_Type)
{
}
|
// copyright (c) 2020-2021 hors<horsicq@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
// to use, copy, mod... |
/*
cout<<"loading file.. "<<endl;
www.sourceforge.net/projects/tinyxml
Original code (2.0 and earlier )copyright (c) 2000-2006 Lee Thomason (www.grinninglizard.com)
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any
d... |
/*
* Copyright (C) 2004-2021 Intel Corporation.
* SPDX-License-Identifier: MIT
*/
#include <stdio.h>
#include "pin.H"
#include <iostream>
#include "control_manager.H"
using namespace CONTROLLER;
//
// This test case combines detach.cpp and control.pp
// It calls PIN_Detach() whenever a specified region is reached... |
//----------------------------------------------------
// file: UI_SceneOptions.cpp
//----------------------------------------------------
#include "Pch.h"
#pragma hdrstop
#include "NetDeviceLog.h"
#include "CustomControls.h"
#include "UI_Main.h"
#include "Scene.h"
#include "UI_SceneOptions.h"
#include "M... |
//LIC// ====================================================================
//LIC// This file forms part of oomph-lib, the object-oriented,
//LIC// multi-physics finite-element library, available
//LIC// at http://www.oomph-lib.org.
//LIC//
//LIC// Copyright (C) 2006-2021 Matthias Heil and Andrew Hazel
//LIC//
//L... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018-2019 The BeetleCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licens... |
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------... |
#include <thread>
#include <iostream>
using namespace std;
int X[] = {55,66,77,88,99};
void foo(int x) {
cout << "hello" << x << X[1] <<"\n";
}
int main() {
thread t1(foo,42);
thread t2(foo,22);
thread t3(foo,12);
t3.join();
t2.join();
t1.join();
}
|
//////////////////////////////////////////////////////////////////////////////
/// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand
/// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI
///
/// Distributed under the Boost Software License, Version 1.0
/// ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.