text stringlengths 7 961k |
|---|
#include <event/MultipleEvent.h>
#include <event/UpdateQuestEvent.h>
#include "mode/handler/QuestModeHandler.h"
#include "controller/Char.h"
#include "event/LeaveModeEvent.h"
#include "request/QuestRequest.h"
using namespace Pathos;
QuestModeHandler::QuestModeHandler(PathosInstance *inst, QuestGiver *questGiver) : qu... |
// Local Headers
#include "glitter.hpp"
#include "shader.hpp"
#include "game.hpp"
// System Headers
#include <glad/glad.h>
#include <GLFW/glfw3.h>
// Standard Headers
#include <iostream>
#include <cstdio>
#include <cstdlib>
Game Breakout(mWidth, mHeight);
int main(int argc, char * argv[]) {
// Load GLFW and Crea... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/metrics/chrome_android_metrics_provider.h"
#include "base/feature_list.h"
#include "base/metrics/histogram_macros.h"
#include "c... |
#include <Graphics/Mesh.h>
#include <iostream>
using namespace Graphics;
Mesh::Mesh()
{
std::cout << "Mesh created" << std::endl;
}
Mesh::~Mesh()
{
std::cout << "Mesh destroyed" << std::endl;
}
unsigned Mesh::GetTriangleCount() const
{
return (unsigned)m_indices.size() / 3;
}
const Vertex* Mesh::GetTriangleVer... |
/*********************************************************************
This is a library for our Monochrome OLEDs based on SSD1306 drivers
Pick one up today in the adafruit shop!
------> http://www.adafruit.com/category/63_98
These displays use SPI to communicate, 4 or 5 pins are required to
interface
Adafruit... |
#include <chrono>
#include <iostream>
#include <numeric>
#include <vector>
#include "user_driver.h"
using namespace user_driver;
int main(const int argc, const char* argv[])
{
accid_t acc_id = 0;
const int num_iters = 100000;
std::vector<unsigned long long> elaps_res;
std::vector<unsigned long long> el... |
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... |
/*=========================================================================
*
* 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 "SpeckPrimitivesGenerator.h"
#include <World.h>
using namespace std;
using namespace DirectX;
using namespace Speck;
SpeckPrimitivesGenerator::SpeckPrimitivesGenerator(World &world)
: WorldUser(world)
{
WorldCommands::GetWorldPropertiesCommand gwp;
WorldCommands::GetWorldPropertiesCommandResult gwpr;
Get... |
#include <bits/stdc++.h>
using namespace std;
int main (void) {
int n, temp;
cin >> n;
vector< pair<int, string> > data, output;
string str;
int Count[100] = {0};
for (int i = 0; i < n; i++) {
cin >> temp >> str;
Count[temp] += 1;
if (i < (n / 2)) {
data.push_back(make_pair(temp, "-"));
} else {
d... |
#include <Rcpp.h>
#include "pruner.hpp"
#include "TreeData.hpp" // TreeData definition
#include "loglikelihood.h"
using namespace Rcpp;
// #define DEBUG_LIKELIHOOD
// Tree constructor ------------------------------------------------------------
// [[Rcpp::export(name = "new_aphylo_pruner.", rng = false)]]
SEXP new_a... |
/*
// Copyright (c) 2018-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://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
/*
Copyright (c) 2006-2009 Advanced Micro Devices, Inc. All Rights Reserved.
This software is subject to the Apache v2.0 License.
*/
#include "UnitTestFramework.h"
#include "ut_ThresholdAndCompare.h"
#include "ThresholdAndCompareObjects.h"
#include "fwSignal.h"
class Test_sThreshold_GT_16s_I : public SDstLenThresho... |
// Copyright Claudio Bantaloukas 2017-2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <catch.hpp>
#include <throwing/unique_ptr.hpp>
namespace {
class A {
int dummy_a;
public:
... |
//=================================================================================================
/*!
// \file src/mathtest/operations/tdvecdmatmult/VDaMDb.cpp
// \brief Source file for the VDaMDb dense vector/dense matrix multiplication math test
//
// Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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 "mozilla/mozalloc.h"
#inc... |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#ifndef OPENCV_QUALITY_QUALITYBRISQUE_HPP
#define OPENCV_QUALITY_QUALITYBRISQUE_HPP
#include "qualitybase.hpp"
#include "ope... |
// 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 "ThreadTrack.h"
#include <GteVector.h>
#include <absl/strings/str_format.h>
#include <absl/synchronization/mutex.h>
#include <absl/time/time.h>... |
/* Software License Agreement (BSD License)
*
* Copyright (c) 2014, Robotiq, 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:
*
* * Redistributions of source code must retain the above copyr... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.TestTools.SetUpTearDownCommand
#include "UnityEngine/TestTools/Se... |
#pragma once
namespace ttl
{
namespace nn
{
namespace kernels
{
template <typename D, typename F, typename R>
class pointwise;
template <typename D, typename R>
class identity;
template <typename D, typename F, typename R>
class binary_pointwise;
template <typename D, typename R>
class add;
template <typename D, t... |
#include "Env/Entities/Player.hpp"
namespace Env::Entity
{
void Player(ECSX::Entity* entity,
System::Physics* physics,
ResourceManager* resource,
sf::Vector2f initial_pos)
{
//Create the animated sprite.
Graphics::AnimatedSprite& spr = entity->use<Component::AnimatedSprite>()->sprite;
spr.texture(resourc... |
#include <iostream>
#include <boost/concept_check.hpp>
#include <ceres/ceres.h>
#include <cmath>
using namespace std;
using namespace ceres;
using ceres::AutoDiffCostFunction;
using ceres::Solver;
using ceres::Problem;
using ceres::CostFunction;
using ceres::Solve;
struct CostFuntorF1 {
template <typename T>
bo... |
#include <CGAL/Installation/internal/disable_deprecation_warnings_and_errors.h>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Mesh_triangulation_3.h>
#include <CGAL/Mesh_complex_3_in_triangulation_3.h>
#include <CGAL/Mesh_criteria_3.h>
#include <CGAL/Polyhedral_mesh_domain_with_featu... |
//===----------------------------------------------------------------------===//
// 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
//
//===------------------------------... |
//===- Interfaces.cpp - C Interface for MLIR Interfaces -------------------===//
//
// 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) 2001, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
// Generated by Haxe 3.4.7
#include <hxcpp.h>
#ifndef INCLUDED_massive_munit_async_AsyncDelegate
#include <massive/munit/async/AsyncDelegate.h>
#endif
#ifndef INCLUDED_massive_munit_async_AsyncFactory
#include <massive/munit/async/AsyncFactory.h>
#endif
#ifndef INCLUDED_massive_munit_async_IAsyncDelegateObserver
#incl... |
#include <sys/eventfd.h>
#include "proxy/sgx_syseventfd_u.h"
int ocall_eventfd(unsigned int initval, int flags)
{
return eventfd(initval, flags);
} |
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
// ---------------------------------------------------------------------------
//
// This file was generated by the CEF translato... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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 "nsIDOMHTMLTitleElement.h"... |
// This code slightly follows the conventions of, but is not derived from:
// EHTERSHIELD_H library for Arduino etherShield
// Copyright (c) 2008 Xing Yu. All right reserved. (this is LGPL v2.1)
// It is however derived from the enc28j60 and ip code (which is GPL v2)
// Author: Pascal Stang
// Modi... |
/*
* $Header: /Book/EditWnd.cpp 20 16.07.04 10:42 Oslph312 $
*/
#include "precomp.h"
#include "Exception.h"
#include "AutoArray.h"
#include "AbstractEditWnd.h"
#include "winUtils.h"
#include "utils.h"
#include "search.h"
#include "os.h"
#include "resource.h"
#include "EditWordBreakProc.h"
#pragma code_seg( "EDI... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/appmesh/model/TlsValidationContext.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
+---------... |
/*
Copyright (c) 2013, 2019, 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 cer... |
/***************************************************************************
*
Copyright 2013 CertiVox UK Ltd. *
*
This file is ... |
/**
** Isaac Genome Alignment Software
** Copyright (c) 2010-2017 Illumina, Inc.
** All rights reserved.
**
** This software is provided under the terms and conditions of the
** GNU GENERAL PUBLIC LICENSE Version 3
**
** You should have received a copy of the GNU GENERAL PUBLIC LICENSE Version 3
** along with ... |
// Copyright (c) 2012-2016 The Ai the coins developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "util.h"
#include "support/allocators/secure.h"
#include "test/test_bitcoin.h"
#include <boost/test/unit_test.hpp>... |
/*
* UtahLSM
*
* Copyright (c) 2019 Jeremy A. Gibbs
* Copyright (c) 2019 Pete Willemsen
* Copyright (c) 2019 Rob Stoll
* Copyright (c) 2019 Eric Pardyjak
*
* This file is part of UtahLSM.
*
* This software is free and is distributed under the MIT License.
* See accompanying LICENSE file or visit https://o... |
#include <chrono>
#include <filesystem>
#include <iostream>
#include <gtest/gtest.h>
#include "gameboy/gameboy.h"
#include "rom_tester_env.h"
namespace fs = std::filesystem;
namespace
{
class test_rom_runner {
public:
explicit test_rom_runner(std::string path)
: rom_path_{std::move(path)},
gb... |
// Boost.Filesystem mbpath.hpp ---------------------------------------------//
// Copyright Beman Dawes 2005
// 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)
// Encodes wi... |
#include "main.h"
int find_argument(int argc, char** argv, const char* argument_name)
{
for(int i = 1; i < argc; ++i)
{
if(strcmp(argv[i], argument_name) == 0)
{
return (i);
}
}
return (-1);
}
int parse_argument(int argc, char** argv, const char* str, int &val)
{
... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Enum
#include ... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkCellData.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is d... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <vector>
#include "subgraph_tests/handling_orientation_conv.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace SubgraphTestsDefinitions;
const std::vector<InferenceEngine::Precision> netPrecisions = {
... |
#ifndef FRACTALS_WINDOW_H
#define FRACTALS_WINDOW_H
// stdlib
#include <iostream>
// libc
#include <err.h>
// SDL2
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
// fractals
#include "macros.hpp"
namespace fractals {
class Window {
public:
Window(void);
virtual ~Window(void);
void event(SDL_WindowEvent event)... |
// Copyright (c) 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 "base58.h"
#include "clientversion.h"
#include "init.h"
#include "main.h"
#include... |
/* crypto/evp/m_wp.c */
#include "cryptlib.h"
#ifdef OPENSSL_SYS_WINDOWS
#include <stdio.h>
#endif
#ifndef OPENSSL_NO_WHIRLPOOL
#include <openssl/evp.h>
#include <openssl/objects.h>
#include <openssl/x509.h>
#include <openssl/whrlpool.h>
static int init(EVP_MD_CTX *ctx)
{ return WHIRLPOOL_Init((WHIRLPOOL_CTX*)ctx-... |
/*
* Copyright 2010 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkGrPixelRef.h"
#include "GrContext.h"
#include "GrTexture.h"
#include "SkBitmapCache.h"
#include "SkGr.h"
#include "SkRect.h"
// since we call lockPixels recurs... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... |
/*==============================================================================
Net Stream Example
Copyright (c), Firelight Technologies Pty, Ltd 2004-2019.
This example shows how to play streaming audio from an Internet source
==============================================================================*/
#include ... |
#include <math.h>
#include <ctype.h>
#include <time.h>
#include <string.h>
//#include <strstream.h>
//#include <fstream.h>
#include <sys/times.h>
#include <limits.h>
#include "timer.h"
// timer class for measuring cpu-time of program fragments */
timer::timer(void) {
t_start_u=0;
t_start_s=0;
t_stop_u=0;
t_st... |
// record_store_test_harness.cpp
/**
* Copyright (C) 2014 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distribute... |
// Copyright 2006-2009 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 lis... |
/*
* Copyright 1993-2015 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/autofill/payments/autofill_error_dialog_controller_impl.h"
#include "base/test/metrics/histogram_tester.h"
#include "chrome/b... |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
//===----------------------------------------------------------------------===//
/// \file
/// ES9 26.2 Proxy Objects
//===------... |
//---------------------------------------------------------------------------//
// Copyright (c) 2013 Kyle Lutz <kyle.r.lutz@gmail.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
//
// See http://boostorg.gi... |
/* This source file must have a .cpp extension so that all C++ compilers
recognize the extension without flags. Borland does not know .cxx for
example. */
#ifndef __cplusplus
# error "A C compiler has been selected for C++."
#endif
/* Version number components: V=Version, R=Revision, P=Patch
Version date c... |
/**
Dump database to stdout.
*/
// Include standard headers.
#include <iostream>
#include <memory> // std::auto_ptr
// Include 3rd-party headers.
#include <odb/transaction.hxx>
#include <odb/mysql/database.hxx>
#include <bites.hpp>
// Include application headers.
#include "mapping.hpp"
#include "mapping-odb.hxx... |
// Copyright (C) 2019 Internet Systems Consortium, Inc. ("ISC")
//
// 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 <config.h>
#include <cc/stamped_value.h>
... |
#include "Entero.hpp"
entero::entero(void):
ent(0)
{}
entero::entero(int e):
ent(e)
{}
entero::entero(const entero &e):
ent(e.gete())
{}
entero::~entero(void){}
entero& entero::operator=(const entero y)
{
this->ent=y.gete();
return *this;
}
entero entero::operator+(const entero y)
{
entero tmp(thi... |
// A tool for solve sudoku problems using mpi solver
// Usage: mpirun -np <num procs> solve-sudoku <intput_file (sudoku problems)> <output_file (answers)>
//
#include <string>
#include <stdlib.h>
#include <stdio.h>
#include "solver/solver-mpi.h"
#include "util/timer.h"
#include "generator/file-parser.h"
int main(in... |
/*************************************************************************/
/* physics_body_2d.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include <iostream>
#include <time.h>
#include <string>
#include <GL/glew.h>
#include "GLFW/glfw3.h"
#include <GL/GL.h>
#include <glm.hpp>
#include <gtc/matrix_transform.hpp>
#include <fstream>
#include "scenes/scene.hpp"
#include "globals.hpp"
#include "functions/functions1d.hpp"
#include "functions/functions2d.hpp... |
/* ************************************************************************
* Copyright (c) 2018-2020 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software witho... |
// 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)
#ifndef SGE_RENDERER_INDEX_CREATE_BUFFER_FROM_VIEW_HPP_INCLUDED
#define SGE_RENDERER_INDEX_CREATE_B... |
#include "components/SliderComponent.h"
#include "resources/Font.h"
#define MOVE_REPEAT_DELAY 500
#define MOVE_REPEAT_RATE 40
SliderComponent::SliderComponent(Window* window, float min, float max, float increment, const std::string& suffix) : GuiComponent(window),
mMin(min), mMax(max), mSingleIncrement(increment), ... |
template<typename T>
struct heap{
struct node{
node* ch[2]={0,0};
int s;
T val;
node(T val):s(1),val(val){}
};
using np=node*;
np root=0;
heap(np t=0):root(t){}
np meld(np a,np b){
if(!b)return a?new node(*a):0;
if(!a)return b?new node(*b):0;
... |
#include<iostream>
using namespace std;
int main()
{
cout<<"Hello world";
} |
// MIT License
//
// Copyright (c) 2022 Cameron King
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation files
// (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify... |
//#########################
//Pekka Kana 2
//Copyright (c) 2003 Janne Kivilahti
//#########################
#include "screens/screens.hpp"
#include "gfx/text.hpp"
#include "language.hpp"
#include "game/game.hpp"
#include "game/gifts.hpp"
#include "gui.hpp"
#include "episode/episodeclass.hpp"
#include "sfx.hpp"
#inclu... |
// Copyright (c) 2019 EPI-ONE Core Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <gtest/gtest.h>
#include "blocking_queue.h"
#include "concurrent_container.h"
#include "threadpool.h"
class TestConcurrentC... |
#ifndef FSLUTIL_OPENGLES3_GLBATCH2D_HPP
#define FSLUTIL_OPENGLES3_GLBATCH2D_HPP
/****************************************************************************************************************************************************
* Copyright (c) 2014 Freescale Semiconductor, Inc.
* All rights reserved.
*
* Redistri... |
/**
* \file ApiWzsk_blks.cpp
* Wzsk API library global data blocks (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Emily Johnson (auto-generation)
* \date created: 5 Dec 2020
*/
// IP header --- ABOVE
#include "ApiWzsk_blks.h"
using namespace std;
using namespace Sbecore;
using name... |
/* file: kmeans_init_dense_deterministic_distr_step2_fpt_cpu.cpp */
/*******************************************************************************
* Copyright 2014-2019 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... |
/*
pdqsort.hpp - Pattern-defeating quicksort.
Copyright (c) 2015 Orson Peters
This software is provided 'as-is', without any express or implied warranty. In no event will the
authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this ... |
/*
* 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 <UnitTest++.h>
#include <iostream>
#include "rbdl/rbdl_mathutils.h"
#include "rbdl/Body.h"
using namespace std;
using namespace RigidBodyDynamics;
using namespace RigidBodyDynamics::Math;
const double TEST_PREC = 1.0e-14;
/* Tests whether the spatial inertia matches the one specified by its
* parameters
... |
// SPDX-License-Identifier: Apache-2.0
/**
* Copyright (C) 2020 Parichay Kapoor <pk.kapoor@samsung.com>
*
* @file var_grad.cpp
* @date 13 November 2020
* @see https://github.com/nnstreamer/nntrainer
* @author Parichay Kapoor <pk.kapoor@samsung.com>
* @bug No known bugs except for NYI items
* @brief T... |
#include "a9pch.hpp"
#include "window.hpp"
namespace Alpha9
{
/********************WINDOW PROPERTIES********************/
/**********CONSTRUCTORS**********/
WindowProperties::WindowProperties(std::string title, bool fullscreen)
: Width(1280)
, Height(720)
, Title(title)
, Fullscreen(fullscreen)
{}
Window... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
#include "common.h" |
// 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 "chrome/browser/ui/android/ssl_client_certificate_request.h"
#include "base/android/jni_array.h"
#include "base/android/jni_string.h"
#inclu... |
// 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 "key.h"
#include "keystore.h"
#include "validation.h"
#include "policy/policy.h"
#include "script/script.h"
#include... |
#include "Game.h"
#include <gmock/gmock.h>
#include <google/protobuf/text_format.h>
#include <gtest/gtest.h>
#include "protocol-buffer-matchers.h"
namespace battle {
using nucleus::EqualsProto;
namespace utilities {
namespace internal_testing {
void SetGeneratorSeed(int seed);
}
}
class GameTest : public... |
#ifndef KALMAN_FILTER_H_
#define KALMAN_FILTER_H_
#include "Dense"
using Eigen::MatrixXd;
using Eigen::VectorXd;
class KalmanFilter {
public:
/**
* Constructor
*/
KalmanFilter();
/**
* Destructor
*/
virtual ~KalmanFilter();
/**
* Predict Predicts the state and the state covariance
* u... |
#include "BaseForkTask.h"
#include "RequestEnvironment.h"
#include "exceptions/BaseException.h"
#include "utils/ExecUtils.h"
#include "utils/StringFormat.h"
#include "loguru.h"
#include <grpc/impl/codegen/fork.h>
#include <thread>
#include <utility>
class NoSuchProcessException : public std::exception {
std::st... |
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2012, 2013, 2015 Klaus Spanderen
Copyright (C) 2014, 2015 Johannes Göttker-Schnetmann
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quan... |
/****************************************************************************
** Meta object code from reading C++ file 'basedialog.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
**
** WARNING! All changes made in this file will be lost!
**********************************************************... |
/*
* (C) Copyright 2015 ETH Zurich Systems Group (http://www.systems.ethz.ch/) and others.
*
* 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... |
#include <fstream>
#include <iostream>
#include <iterator>
#include "Buildstats.hpp"
#include "FindCriticalPath.hpp"
#include "FindRoots.hpp"
#include "FindSinks.hpp"
#include "Graph.hpp"
#include "LabeledGraph.hpp"
#include "ParseDotGraph.hpp"
#include "TopologicalSort.hpp"
#include "WeightedGraph.hpp"
auto loadGrap... |
#include <iostream>
#include <string>
using std::cout;
using std::endl;
using std::string;
// ----------------------------------------------------------------------------
// simple fixed-size array with bounds checking
template <typename T>
class Array11 {
private:
T data[11] = {};
public:
... |
/*
* Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved.
*
* OpenArkCompiler is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THI... |
#pragma once
#include <vector>
#include <string>
#include <sstream>
template <typename Out>
void split(const std::string &s, char delim, Out result) {
std::istringstream iss(s);
std::string item;
while (std::getline(iss, item, delim)) {
*result++ = item;
}
}
std::vector<std::string> split(con... |
// Copyright (c) 2011-2019 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 <bench/bench.h>
#include <consensus/validation.h>
#include <crypto/sha256.h>
#include <test/util/mining.h>
#include ... |
#include "StepperDriver4PWM.h"
StepperDriver4PWM::StepperDriver4PWM(int ph1A,int ph1B,int ph2A,int ph2B,int en1, int en2){
// Pin initialization
pwm1A = ph1A;
pwm1B = ph1B;
pwm2A = ph2A;
pwm2B = ph2B;
// enable_pin pin
enable_pin1 = en1;
enable_pin2 = en2;
// default power-supply value
voltage_po... |
/*******************************************************************************
* Copyright 2003 & onward LASMEA UMR 6602 CNRS/Univ. Clermont II
* Copyright 2009 & onward LRI UMR 8623 CNRS/Univ Paris Sud XI
*
* Distributed under the Boost Software License, Version 1.0.
* ... |
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Christian Schulte <schulte@gecode.org>
*
* Copyright:
* Christian Schulte, 2009
*
* Last modified:
* $Date: 2015-08-18 09:57:34 +0200 (Tue, 18 Aug 2015) $ by $Author: schulte $
* $Revision: 14653 $
*
* ... |
/*
* Copyright 2020 Two Sigma Investments, LP.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.