text stringlengths 7 961k |
|---|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ash/customization/customization_document.h"
#include <algorithm>
#include <memory>
#include <utility>
#include "ash/constan... |
/**
* @file Bug_3541_Regression_Test.cpp
*
* $Id$
*
* Reproduces the problems reported in bug 3541:
* http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=3541
*
* @author Bill Rizzi <rizzi@softserv.com>
*/
#include "ace/Event.h"
#include "ace/Mutex.h"
#include "ace/Semaphore.h"
#include "ace/OS_NS_errno.h"
... |
//===- LoopInterchange.cpp - Loop interchange pass------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===--------------------------------------------------------... |
/*******************************************************************\
Module: Count effective lines of code
Author: Michael Tautschnig
Date: December 2012
\*******************************************************************/
/// \file
/// Count effective lines of code
#include "count_eloc.h"
#include <iostream>
... |
//===-- sanitizer_win.cc --------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... |
/*
* 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... |
// ProgressDialog.cpp : implementation file
//
#include "stdafx.h"
#include "swged.h"
#include "ProgressDialog.h"
#include "afxdialogex.h"
// ProgressDialog dialog
IMPLEMENT_DYNAMIC(ProgressDialog, CDialogEx)
ProgressDialog::ProgressDialog(CWnd* pParent /*=NULL*/)
: CDialogEx(IDD_PROGRESS, pParent)
{
}
Progress... |
/*------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2016 The Khronos Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... |
// 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.Threading.Read... |
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Deco_IsAttacking_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//-----------------------------------------------------------------... |
/*
* Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde
* 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... |
/*
* @lc app=leetcode id=386 lang=cpp
*
* [386] Lexicographical Numbers
*/
// @lc code=start
#include <bits/stdc++.h>
using namespace std;
class Solution {
public:
vector<int> lexicalOrder(int n) {
vector<int> res(n);
int number = 1;
for(int i = 0; i < n; i++){
res[i] = numb... |
#include <bits/stdc++.h>
using namespace std;
set<int> visited;
vector<vector<int>> graph;
bool dfs(int edge, int destination)
{
cout<<"edge-->"<<edge<<"dest-->"<<destination<<endl;
if (visited.find(edge) != visited.end())
{
return false;
}
if (edge == destination)
return true;
... |
//
// Copyright 2019 The AMP HTML 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... |
/* Copyright 2017 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 <BitmapImage.hpp>
#include "NeuralNetworkVisualization.hpp"
using namespace std;
using namespace snn;
using namespace internal;
using namespace tools;
void NeuralNetworkVisualization::saveAsBitmap(FilterLayer* filterLayer, const string& filePath)
{
if (filterLayer == nullptr)
return;
auto sha... |
#include "HashedDictionary.h"
#include <Core/Defines.h>
#include <DataTypes/DataTypesDecimal.h>
#include <Columns/ColumnsNumber.h>
#include <Columns/ColumnNullable.h>
#include <Functions/FunctionHelpers.h>
#include <Processors/Sources/SourceWithProgress.h>
#include <Dictionaries//DictionarySource.h>
#include <Dictio... |
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
// -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://... |
// Copyright 2019 Josh Pieper, jjp@pobox.com.
//
// 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 ... |
/*
This file is part of solidity.
solidity 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.
solidity is distributed in the hope that i... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
/**
* @file
* @brief Provides version information.
*/
#pragma once
#define AZURE_ATTESTATION_VERSION_MAJOR 1
#define AZURE_ATTESTATION_VERSION_MINOR 0
#define AZURE_ATTESTATION_VERSION_PATCH 0
#define AZURE_ATTESTATION_VE... |
#include "common.h"
#define DEFAULT_USER_CACHE 50000
#define NO_CACHEID -1
static unsigned int cacheHead = 0; // our marker for last allocated cache, used to find next free one
static unsigned int* cacheIndex = 0; // data ring of the caches + timestamp/volley info
char* cacheBase = 0; // start of contiguous cac... |
//************************************ bs::framework - Copyright 2018 Marko Pintera **************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "RenderAPI/BsIndexBuffer.h"
#include "Managers/BsHardwareBuff... |
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "frc/commands/PIDSubsystem.h"
#include "frc/PIDController.h"
using namespace frc;
PIDSubsystem::PIDSubsystem... |
#ifndef __Solvers_CR1_hpp
#define __Solvers_CR1_hpp
#include "Solvers/fem.hpp"
/*--------------------------------------------------------------------------*/
namespace solvers
{
class CR1 : public virtual solvers::Fem
{
protected:
int _iil;
alat::Node _vhat;
arma::uvec _dofisbdry;
void computeM... |
//----------------------------------------------------------------------------------
// Author: Semyon Ivanov
// e-mail: agreement90@mail.ru
// github: https://github.com/7bnx/Embedded
// Description: Adapter for Pinlist. STM32F1-series
// TODO:
//--------------------------------------... |
/****************************************************************************
** Meta object code from reading C++ file 'OknoGlowne.hpp'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.2.1)
**
** WARNING! All changes made in this file will be lost!
********************************************************... |
// Copyright (c) 2021 Dave Marsh. See LICENSE.
#ifdef ARDUINO
#include "LedStrips.h"
LedStrips::LedStrips(Adafruit_NeoPixel **neoPix, size_t count,
LedSegment *segs, size_t nSegs)
{
nStrips = count;
segments = segs;
nSegments = nSegs;
nPixels = 0;
for (uint8_t i = 0; i < nStrips; i++)
... |
#include "stdafx.h"
/*
* Copyright (c) 2007-2012 SlimDX Group
*
* 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, m... |
//@file indexupdatetests.cpp : mongo/db/index_update.{h,cpp} tests
/**
* Copyright (C) 2012 10gen 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.
*
... |
/*******************************************************************************
* Copyright 2016-2017 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... |
/** @file
* @author Edouard DUPIN
* @copyright 2016, Edouard DUPIN, all right reserved
* @license APACHE v2.0 (see license file)
*/
#pragma once
#include <etk/math/Vector2D.hpp>
#include <dollar/Results.hpp>
#include <dollar/Gesture.hpp>
#include <dollar/Engine.hpp>
#include <dollar/GestureN.hpp>
#include <limits... |
// 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_IMAGE_IMPL_ALGORITHM_COPY_AND_CONVERT_STATIC_HPP_INCLUDED
#define SGE_IMAGE_IMPL_ALGORI... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2017 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... |
class Solution {
public:
bool canFormArray(vector<int> &arr, vector<vector<int>> &pieces) {
// i will store the index for arr
int i = 0;
while (i < arr.size()) {
// find that vector in pieces whose first element is equal
// to the first element of arr
int flag = 0, row;
for (int j... |
// Copyright John W. Wilkinson 2007 - 2013
// Distributed under the MIT License, see accompanying file LICENSE.txt
// json spirit version 4.06.1
// upstream json spirit version 4.06
#include "json_spirit_writer.h"
#include "json_spirit_writer_template.h"
using namespace json_spirit;
#ifdef JSON_SPIRIT_VAL... |
/**
Accelerated C++, Exercise 11-8, 11_8.cpp
Write a simplified version of the standard list class and its associated iterator.
*/
#include "stdafx.h"
#include "11_8.h"
#include <iostream>
using std::cout;
using std::endl;
#include <string>
using std::string;
int ex11_8()
{
LList<int> list;
list.push_back(5);
... |
#ifndef HW2_BST_HPP
#define HW2_BST_HPP
#include <iostream>
#include <cmath>
template <typename ElemType>
class TreeNode
{
public:
ElemType key;
TreeNode<ElemType>* left;
TreeNode<ElemType>* right;
int value;
};
template<typename ElemType>
void insert(TreeNode<ElemType>*& root, ElemType key, int ind... |
// Copyright 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/sync/glue/sync_backend_host_mock.h"
#include "components/sync_driver/sync_frontend.h"
namespace browser_sync {
SyncBackendHost... |
// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcconsole.h"
#include "ui_rpcconsole.h"
#include "clientmodel.h"
#include "bitcoinrpc.h"
#include "guiutil.h"
#in... |
/*
* 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 m... |
// 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 "ash/focus_cycler.h"
#include "ash/launcher/launcher.h"
#include "ash/root_window_controller.h"
#include "ash/shelf/shelf_widget.h"
#include... |
#include <qtmanagers.h>
#include "ui_nDataToCpp.h"
N::DataToCpp:: DataToCpp ( QWidget * parent , Plan * p )
: Dialog ( parent , p )
, ui ( new Ui::nDataToCpp )
{
WidgetClass ;
Configure ( ) ;
}
N::DataToCpp::~DataToCpp(void)
{
delete ui ;
}
void N... |
// (C) Copyright John Maddock 2007.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// This file is machine generated, do not edit by hand
// Polynomial evaluation using s... |
// ImGui Renderer + Platform Binding for: Marmalade + IwGx
// Implemented features:
// [X] Renderer: User texture binding. Use 'CIwTexture*' as ImTextureID. Read the FAQ about ImTextureID in imgui.cpp.
// You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this.
/... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2012, 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:
//
// * Re... |
/* Copyright 2019 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... |
// 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 "webkit/browser/appcache/appcache_storage_impl.h"
#include <algorithm>
#include <functional>
#include <set>
#include <vector>
#include "bas... |
#include <iostream>
#include <QList>
#include <QString>
#include <cassert>
using namespace std;
int main ()
{
QList<QString> list;
QString _default = "Z";
list << "A" << "B" << "C" << "D" << "E" << "F";
assert(list.at(1) == "B");
assert(list.size() == 6);
return 0;
} |
// Copyright (c) 2012 Hasso-Plattner-Institut fuer Softwaresystemtechnik GmbH. All rights reserved.
#include "storage/PointerCalculator.h"
#include <iostream>
#include <string>
#include <unordered_set>
#include "helper/make_unique.h"
#include "helper/checked_cast.h"
#include "helper/PositionsIntersect.h"
#include "s... |
/*
* Copyright (c) 2018-2019, The Mybtcfx Developers.
* Portions Copyright (c) 2012-2017, The CryptoNote Developers, The Bytecoin Developers.
*
* This file is part of 4xBIT.
*
* This file is subject to the terms and conditions defined in the
* file 'LICENSE', which is part of this source code package.
*/
#incl... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2018 ArangoDB GmbH, Cologne, Germany
///
/// 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... |
#ifndef LLARP_MESSAGES_PATH_LATENCY_HPP
#define LLARP_MESSAGES_PATH_LATENCY_HPP
#include <routing/message.hpp>
namespace llarp
{
namespace routing
{
struct PathLatencyMessage final : public IMessage
{
uint64_t T = 0;
uint64_t L = 0;
PathLatencyMessage();
bool
BEncode(llarp_b... |
/// @copyright
/// Copyright (C) 2020 Assured Information Security, Inc.
///
/// @copyright
/// 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 limita... |
// written by bastiaan konings schuiling 2008 - 2015
// this work is public domain. the code is undocumented, scruffy, untested, and should generally not be used for anything important.
// i do not offer support, so don't ask. to be used for inspiration :)
#ifndef _HPP_PROCEDURALPITCH
#define _HPP_PROCEDURALPITCH
#in... |
#include <vgui/ISurface.h>
#include "CBackGroundPanel.h"
CBackGroundPanel::CBackGroundPanel( vgui2::Panel* pParent )
: BaseClass( pParent, "ViewPortBackGround" )
{
SetScheme( "ClientScheme" );
SetTitleBarVisible( false );
SetMoveable( false );
SetSizeable( false );
SetProportional( true );
}
void CBackGroundP... |
#include "biquad.h"
#include <math.h>
#include "../utility/dsp.h"
using namespace daisysp;
void Biquad::Reset()
{
float con = cutoff_ * two_pi_d_sr_;
float alpha = 1.0f - 2.0f * res_ * cosf(con) * cosf(con)
+ res_ * res_ * cosf(2 * con);
float beta = 1.0f + cosf(con);
float gamma ... |
#ifndef BOOST_ASTRONOMY_COORDINATE_SPHERICAL_COSLAT_DIFFERENTIAL_HPP
#define BOOST_ASTRONOMY_COORDINATE_SPHERICAL_COSLAT_DIFFERENTIAL_HPP
#include <tuple>
#include <type_traits>
#include <math.h>
#include <boost/geometry/strategies/strategy_transform.hpp>
#include <boost/geometry/core/cs.hpp>
#include <boost/geometry... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2017, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are perm... |
// Copyright Carl Philipp Reh 2009 - 2018.
// 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 FCPPT_SYMBOL_EXPORT_CLASS_INSTANTIATION_HPP_INCLUDED
#define FCPPT_SYMBOL_EXPORT_CLASS_INS... |
/*
Starstructor, the Starbound Toolset
Copyright (C) 2013-2014 Chris Stamford
Licensed under terms of The MIT License (MIT)
Source file contributers:
Chris Stamford contact: cstamford@gmail.com
*/
#include "stexception.hpp"
#include "gui/stmainwindow.hpp"
#include "utility/sttimer.hpp"
#include "utility/stl... |
/*
* X.509 Certificate Options
* (C) 1999-2007 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/x509self.h>
#include <botan/parsing.h>
#include <chrono>
namespace Botan {
/*
* Set when the certificate should become valid
*/
void X509_Cert_Options::not_before(cons... |
// See LICENSE_CELLO file for license and copyright information
/// @file enzo_EnzoSolverHg.cpp
/// @author James Bordner (jobordner@ucsd.edu)
/// @date 2014-10-21 17:25:09
/// @brief Implements the EnzoSolverHg class
///
/// Multigrid-like preconditioner for adaptive meshes developed by
/// Prof. Daniel ... |
/*
* Copyright (c) 2011-2021, The DART development contributors
* All rights reserved.
*
* The list of contributors can be found at:
* https://github.com/dartsim/dart/blob/master/LICENSE
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, w... |
/*
* 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.
*
*/
#if... |
// Copyright Louis Dionne 2013-2016
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
#include <boost/hana/assert.hpp>
#include <boost/hana/equal.hpp>
#include <boost/hana/hash.hpp>
#include <boost/hana/type.hpp>
namespace ha... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/providers/cuda/cuda_kernel.h"
#include "core/providers/cuda/math/unary_elementwise_ops_impl.h"
namespace onnxruntime {
namespace contrib {
namespace cuda {
class Inverse final : public ::onnxruntime::cuda::... |
/*
* Copyright (C) 2012 Austin Robot Technology, Jack O'Quin
* License: Modified BSD Software License Agreement
*
* $Id$
*/
/** @file
This ROS nodelet converts raw Velodyne 3D LIDAR packets to a
PointCloud2.
*/
#include <ros/ros.h>
#include <pluginlib/class_list_macros.h>
#include <nodelet/nodelet.h... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php... |
// Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "lpt_ngraph_functions/fuse_convert_function.hpp"
#include <ngraph/opsets/opset1.hpp>
#include "ngraph_functions/subgraph_builders.hpp"
#include "lpt_ngraph_functions/common/builders.hpp"
namespace ngraph {
namespace builder {
... |
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018-2019 The 1Eur developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-lic... |
#ifndef MONGOCXX_API_H
#define MONGOCXX_API_H
#ifdef MONGOCXX_STATIC
# define MONGOCXX_API
# define MONGOCXX_PRIVATE
#else
# ifndef MONGOCXX_API
# ifdef MONGOCXX_EXPORTS
/* We are building this library */
# define MONGOCXX_API __attribute__((visibility("default")))
# else
/* We are using ... |
#include <Maestro.H>
#include <Maestro_F.H>
using namespace amrex;
void
Maestro::RetagArray(const Box& bx,
const int lev, IntVector& tag_array)
{
// timer for profiling
BL_PROFILE_VAR("Maestro::RetagArray()", RetagArray);
// re-compute tag_array since the actual grid structure changed... |
// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <functional>
#include <memory>
#include "src/api.h"
#include "src/assembler-inl.h"
#include "src/compiler/wasm-compiler.h"
#include "src/debug... |
//
// GXDisplay.cpp
// GX
//
// Created by Manuel Deneu on 22/06/2017.
// Copyright © 2017 Unlimited Development. All rights reserved.
//
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <GXDisplay.hpp>
#include <GXContext.hpp>
#include <Display.h>
#ifdef USE_DISPMAN
#include "GLES/gl.h"
#incl... |
// Source file for the mesh viewer program
// Include files
#include "R3Graphics/R3Graphics.h"
#include "fglut/fglut.h"
// Program variables
static RNArray<char *> mesh_names;
static RNArray<char *> point_names;
static char *image_name = NULL;
static R3Vector initial_camera_towards(-0.57735, -0.57735, -0.57735... |
// generated from rosidl_generator_cpp/resource/idl__traits.hpp.em
// with input from turtlesim:action/RotateAbsolute.idl
// generated code does not contain a copyright notice
#ifndef TURTLESIM__ACTION__DETAIL__ROTATE_ABSOLUTE__TRAITS_HPP_
#define TURTLESIM__ACTION__DETAIL__ROTATE_ABSOLUTE__TRAITS_HPP_
#include "turt... |
/*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/
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.
Permiss... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/performance_manager/persistence/site_data/site_data_impl.h"
#include "base/callback.h"
#include "base/macros.h"
#include "base/memor... |
#include "pch.h"
TESTS(ZenUnitTestClassWithOneTestAndFiftyARE_EQUALAssertions)
AFACT(Test)
EVIDENCE
TEST(Test)
{
ARE_EQUAL(1, 1);
ARE_EQUAL(2, 2);
ARE_EQUAL(3, 3);
ARE_EQUAL(4, 4);
ARE_EQUAL(5, 5);
ARE_EQUAL(6, 6);
ARE_EQUAL(7, 7);
ARE_EQUAL(8, 8);
ARE_EQUAL(9, 9);
ARE_EQUAL(10, 10);
... |
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
/****************************************************************************
Copyright (c) 2010 cocos2d-x.org
http://www.cocos2d-x.org
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 res... |
// Copyright (c) 2020 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... |
// Created on: 1991-04-12
// Created by: Michel CHAUVAT
// Copyright (c) 1991-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU... |
// Copyright 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 "mojo/system/platform_channel_handle.h"
#include "build/build_config.h"
#if defined(OS_POSIX)
#include <unistd.h>
#elif defined(OS_WIN)
#include... |
#pragma once
#include "SceneHistoryManager.h"
bool FChangeHistoryTransaction::HasExpired() const
{
for (const FChangeHistoryRecord& Record : Records)
{
if (Record.ChangeWrapper->Change->HasExpired(Record.TargetObject) == false)
{
return false;
}
}
return true;
}
void USceneHistoryManager::BeginTransa... |
#include "RendererDeferredOGL.h"
#include "Core/Application.h"
#include "Mesh/QuadSSAO.h"
#include "Scene/SceneDeferredOGL.h"
RendererDeferredOGL::RendererDeferredOGL()
{
SetShaders();
SetupTextureSlots();
SetupTextures();
SetupMeshes();
}
RendererDeferredOGL::~RendererDeferredOGL()
{
}
void RendererDeferredOG... |
#include "catch.hpp"
#include "geometry/surface.h"
#include "utils/arena_allocator.h"
#include "system/parse_stl.h"
namespace gca {
TEST_CASE("Arm joint has 12 vertical surfaces in (0, 1, 0)") {
arena_allocator a;
set_system_allocator(&a);
triangular_mesh m = parse_stl("/Users/dillon/CppWorkspace/gca/t... |
//---------------------------------------------------------------------------//
// Copyright (c) 2018-2021 Mikhail Komarov <nemo@nil.foundation>
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), t... |
/***********************************************************
Copyright (c) 2020 LIMITGAME
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 righ... |
/*
* Moondust, a free game engine for platform game making
* Copyright (c) 2014-2021 Vitaly Novichkov <admin@wohlnet.ru>
*
* This software is licensed under a dual license system (MIT or GPL version 3 or later).
* This means you are free to choose with which of both licenses (MIT or GPL version 3 or later)
* you ... |
/*
Copyright 2014 Glen Joseph Fernandes
(glenjofe@gmail.com)
Distributed under the Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_ALIGN_ALIGNED_ALLOCATOR_ADAPTOR_FORWARD_HPP
#define BOOST_ALIGN_ALIGNED_ALLOCATOR_ADAPTOR_FORWARD_HPP
#include <cstddef>
namespace boost {
na... |
/*
*
* Copyright (C) 2001-2010, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmjpeg
*
* Author: Norbert ... |
// Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy ... |
#include "StatusHandler.h"
#include "LEDHandler.h"
#include <glog/logging.h>
#include <INIReader.h>
// static instance (singleton)
static StatusHandler *sharedHandler = nullptr;
/**
* Initializes the LED handler: this loads the paths for the LED output files
* from the config, and disables output functionality ... |
//
// main.cpp
// zsLib.Eventing.Compiler.Tool
//
// Created by Robin Raymond on 2016-11-21.
// Copyright © 2016 Robin Raymond. All rights reserved.
//
#include <zsLib/eventing/tool/ICommandLine.h>
#include <zsLib/eventing/tool/OutputStream.h>
#include <iostream>
#include <signal.h>
namespace zsLib { namespace e... |
#include "skin.h"
#include "skeleton.h"
#include "component.inl"
#include "engine/renderer/renderer.h"
#include "objects/node.h"
namespace sxr
{
Skin::Skin(Skeleton& skel)
: Component(COMPONENT_TYPE_SKIN),
mSkeleton(&skel),
mBonesBuffer(nullptr),
mInverseBindPose(nullptr)
{ }
Skin:... |
/***************************************************************************
* Copyright (C) 2006 by Reed A. Cartwright *
* reed@scit.us *
* *
* Permiss... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.