text stringlengths 3.08k 12.5k |
|---|
/*
* This file is part of the Simutrans project under the Artistic License.
* (see LICENSE.txt)
*/
#include <string.h>
#include "../simworld.h"
#include "../simobj.h"
#include "../simmem.h"
#include "../display/simimg.h"
#include "../bauer/brueckenbauer.h"
#include "../descriptor/bridge_desc.h"
#include "../bod... |
/*******************************************************************************
* 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 License.
* You may obtain a copy of the License at
*
* http://www.apa... |
//===- bugpoint.cpp - The LLVM Bugpoint utility ---------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include <nano/lib/errors.hpp>
#include <nano/lib/threading.hpp>
#include <nano/lib/utility.hpp>
#include <nano/node/cli.hpp>
#include <nano/node/ipc/ipc_server.hpp>
#include <nano/rpc/rpc.hpp>
#include <nano/rpc/rpc_request_processor.hpp>
#include <nano/secure/utility.hpp>
#include <boost/filesystem.hpp>
#include <bo... |
//
// composed_3.cpp
// ~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2021 <NAME> (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <asio/bind_executor.hpp>
#include <asio/io_cont... |
#include "kl25_tsi.h"
#include "mbed.h"
/******************************************************************************
* Example 1 : put a cable on A0 pin and touch this pin for lighting red light
#include "mbed.h"
DigitalOut red(LED_RED);
int main(){
uint16_t sense_A0;
tsiInit(TSI_CURRENT_8uA, TSI_CURRENT_64... |
#include "IEngine.hpp"
#include "Vector.hpp"
#include "IRenderWorld.hpp"
#include "GameEntity.hpp"
#include <iostream>
#include <chrono>
#include "SDL.h"
#include "SDL_opengl.h"
#include "glm/gtc/matrix_transform.hpp"
#include "Engine.hpp"
namespace chrono = std::chrono;
IEngine* IEngine::AllocateIns... |
// Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file contains basic "crash-and-recover" test support where the inferior
// crashes and then the cause of the crash is fixed in the debugger and the... |
#include "formatter_test.h"
static const int32_t veryveryveryveryveryverylong1 = 100;
static const int32_t veryveryveryveryveryverylong2 = 100;
static const int32_t veryveryveryveryveryverylong3 = 100;
static const int32_t veryveryveryveryveryverylong4 = 100;
// before class
class tc final { // on class
public:
... |
/*
* Copyright (c) 2014, <NAME>, 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 "Ra... |
// Copyright 1996-2020 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... |
#include <iostream>
#include <cmath>
#include <cassert>
using namespace std;
double pai = 3.1415927;
typedef struct {
double x;
double y;
} Point;
double eq(double d0, double d1, bool sqr = false) {
// return sqr ? (abs(d0 - d1) < (d0 / 10000)) : abs(d0 - d1) < 0.01;
return sqr ? eq(sqrt(d0), sqr... |
/*******************************************************************************
*
* Program: Friend Functions Examples
*
* Description: Examples of how to use friend functions in C++.
*
* YouTube Lesson: https://www.youtube.com/watch?v=lOfI1At3tKM
*
* Author: <NAME> @ https://portfoliocourses.com
*
*****************... |
// Copyright (c) 2011-2016 The Bitcoin Core developers
// Copyright (c) 2019 The Yiya Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "assettablemodel.h"
#include "assetrecord.h"
#include "guiconstants.... |
#include<stdio.h>
#include <stdlib.h>
struct node {
unsigned int rc;
int value;
struct node *node1;
struct node *node2;
struct node *node3;
};
typedef struct node Node;
Node *address_arr[10];
Node *root_arr[15];
int adjcency_matrix_root1[10][10];
int adjcency_matrix_root2[10][10];
const Node ... |
/*
Author: <NAME>
E-mail: <EMAIL>
Date: 2020/05/30
*/
#include <gtest/gtest.h>
#include <time.h>
#include "../../src/common/benchmarkoptionsparser.h"
#include "../../src/common/utility.h"
#include "../common/basetest.h"
using namespace std;
using ::testing::Values;
using ::testing::WithParamInterface;
... |
// -*- C++ -*-
//
/*
Description: <one line class summary>
Implementation:
<Notes on implementation>
*/
//
// Original Author: <NAME>
// Created: Wed May 3 10:30:00 CEST 2006
//
//
// system include files
#include <memory>
// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
... |
#include "Poco/CountingStream.h"
#include "Poco/NullStream.h"
#include "Poco/StreamCopier.h"
#include <ctrl/form/User.h>
using namespace ctrl::form;
static const std::string birthdayFormat = "%Y-%n-%e";
std::string birthdayFromDate(const Poco::DateTime &date)
{
return Poco::DateTimeFormatter::format(date, birthd... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
#include "GeoMesh.h"
#include "GeoElementSide.h"
///\cond
#include <stdio.h>
#include <algorithm>
///\endcond
GeoElementSide::GeoEl... |
/*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2012 Intel Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Redistributions of source code must retain the above copyright noti... |
/*************************************************************************\
C O P Y R I G H T
Copyright 2003 Image Synthesis Group, Trinity College Dublin, Ireland.
All Rights Reserved.
Permission to use, copy, modify and distribute this software and its
doc... |
/*
* Copyright (c) 2003 The Regents of The University of Michigan
* 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, ... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2021, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (<NAME>, et al.) listed in
// the CONTRIBUTORS file. <<EMAIL>>
//
// LL... |
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <map>
#include <memory>
#include <string>
#include <algorithm>
#include <vector>
#include <ie_layouts.h>
#include <ie_iextension.h>
#include <ie_blob.h>
#include <ngraph/op/op.hpp>
#include <ngraph/node.hpp>
#include <ngr... |
//===--- SwitchEnumBuilder.cpp --------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2010-2013, 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:
//
// ... |
/*
MIT License
Copyright (c) 2019 <NAME>
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, merge, publish, distrib... |
////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 - 2020, <NAME>, <NAME>, <NAME>.
//
// 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 wit... |
#include "update_rules_editor.h"
#include "nodes_editor/imguinodegrapheditor.h"
#include "UpdateRulesHandler/node_graph_instance.h"
#include "JSON_nlohmann/json.hpp"
#include <vector>
#include <string>
using json = nlohmann::json;
UpdateRulesEditor::UpdateRulesEditor(){
mEditor = ImGui::NodeGraphEditor();
mEdit... |
/***************************************************************************
* @file main.cpp
* @author Alan.W
* @date 3 Mar 2014
* @remark This code is for the exercises from C++ Primer 5th Edition
* @note
***************************************************************************/
//
/... |
/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/GrTextureRenderTargetProxy.h"
#include "include/gpu/GrTexture.h"
#include "src/gpu/GrCaps.h"
#include "src/gpu/GrContextPriv.h"
#include "src/gpu/GrRenderTa... |
// Copyright 2014 <NAME>
// Distributed under MIT license
// See file LICENSE provided
#include <iostream>
#include <string>
#include <signal.h>
#include <unordered_map>
#include <cmath>
#include <json/writer.h>
#include <json/value.h>
#include "streamclient/streamclient.h"
#include "streamclient/signalcontainer.h"
... |
#include "global.h"
#include <stdio.h>
#if defined(HAVE_UNISTD_H)
#include <unistd.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#if defined(HAVE_FCNTL_H)
#include <fcntl.h>
#endif
#include <errno.h>
#include "LightsDriver_Linux_PIUIO.h"
#include "GameState.h"
#include "Game.h"
#include "RageLog.h"
REGISTER... |
//////////////////////////////////////////////
// GDIPlusView.cpp
// Definitions for the CGDIPlusView class
#include "stdafx.h"
#include "GDIPlusView.h"
using namespace Gdiplus;
CGDIPlusView::CGDIPlusView()
{
// Initialize GDI+.
GdiplusStartupInput gdiplusStartupInput;
GdiplusStartup(&m_gdiplusToken, &g... |
// Copyright (c) 2015-present, Qihoo, 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 <unistd.h>
#inclu... |
#include "check_mem.h"
#include "mem_access.h"
//#include "list.h"
void print_num_of_readers(MemAccess_t *mem) {
uint32_t counter = 0;
while (mem != NULL) {
counter++;
mem = mem->next;
}
fprintf(stderr, "# of readers: %u\n", counter);
}
void report_race() {
// to-do: report race here
}
void handle_write(... |
//
// "$Id: BarGroup.cxx 5895 2007-06-08 18:17:53Z spitzak $"
//
// Copyright 1998-2006 by <NAME> and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License as published by the Free Software Foundation; either
// version 2 of... |
// clear && make main && ./main < in > out && subl ./out
#include <bits/stdc++.h>
template<typename T> struct
Node {
T data;
std::shared_ptr<Node> parent;
std::shared_ptr<Node> left;
std::shared_ptr<Node> right;
Node( T data = -1 ) :
data ( data ),
parent ( nullptr ),
left ( nullptr ),
right ( nullptr )... |
#include <iostream>
#include <vector>
#include <unordered_set>
#include <stdlib.h> // srand y rand
#include <algorithm> // advance
#include <time.h>
using namespace std;
int CALLS=0; // Llamadas a evaluación
const int LIMIT=100000; // Límite de evaluaciones
// Lee la entrada y la almacena en una matriz
void r... |
/** \copyright
* Copyright (c) 2013, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of... |
/*
* See header for notes.
*/
#include "vfd_task.h"
#include "board_defs.h"
#include "catch_errors.h"
#include "packet_utils.h"
#include "string.h" // memcpy
#include "vfd_defs.h"
VfdTask::VfdTask( //
const char* name,
UartTasks& uart,
Writable& target,
TaskUtilitiesArg& utilArg,
UBaseType_t priority)
:... |
//
// Part of Metta OS. Check https://atta-metta.net for latest version.
//
// Copyright 2007 - 2017, <NAME> <<EMAIL>>
//
// Distributed under the Boost Software License, Version 1.0.
// (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "parser.h"
#include "logger.h"
#include <ios... |
/* Branch Monitoring Project
* <NAME> - UNICAMP - 2017
* PIN implementation of Branch Monitor
* Used for simple comparisons and validation purposes
* Inspired on PIN example: instcount0.cpp
*/
/* Include Block */
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include "pin.H"
/* Out... |
#include "GridShader.h"
#include <cmath>
#include <tiny-piyo/Shaders.h>
void GridShader::Init()
{
this->_programID = CreateShader(
R"(
#version 330 core
layout(location = 0) in vec3 vertPosition;
layout(location = 1) in vec4 vertColor;
out vec3 fragPositi... |
#include <cstdio>
#include <cstring>
#include <stack>
#include <vector>
#include <algorithm>
#include <unordered_map>
using namespace std;
#define NMAX 200000
#define MEMSIZE 1800000
struct Pair {
int u, v;
bool operator==(const Pair &z) const {
return u == z.u && v == z.v;
}
};
namespace std ... |
//*****************************************************************
// Copyright 2015 MIT Lincoln Laboratory
// Project: SPAR
// Authors: OMD
// Description: Unit tests for NumberedCommandReceiver
//
// Modifications:
// Date Name Modification
// ---- ---- ... |
// Copyright(c) 2019, NVIDIA CORPORATION. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required b... |
#include "RecoVertex/KinematicFitPrimitives/interface/KinematicPerigeeConversions.h"
#include "TrackingTools/TrajectoryState/interface/PerigeeConversions.h"
ExtendedPerigeeTrajectoryParameters KinematicPerigeeConversions::extendedPerigeeFromKinematicParameters(
const KinematicState& state, const GlobalPoint& point... |
/*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
**********************************************... |
/*
This program 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.
This program is distributed in the hope that it will be... |
/*!
* @file at.cpp
*
* BSD 3-Clause License
* Copyright (c) 2021, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the ... |
/**************************************************************************\
* Copyright (c) <NAME> & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistribu... |
#include <algorithm>
#include <iterator>
#include <iostream>
#include "mesh.h"
#include "geometry/isect_util.h"
using std::copy;
using std::ostream_iterator;
using std::cerr;
MeshTri::MeshTri(const Mesh* m, int f, const uint v[3]) :
mesh(m), ti(f)
{
copy(v, v+3, vi);
}
scalar_fp ray_triangle_intersection_accel(c... |
/*! \brief Implementation of methods of TTClusterAlgorithm_official
* \details Here, in the source file, the methods which do depend
* on the specific type <T> that can fit the template.
*
* \author <NAME>
* \date 2013, Jul 12
*
*/
#include "L1Trigger/TrackTrigger/interface/TTClusterAlgorithm_o... |
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in bin... |
/*
* A344279.cpp
*
* Created on: 14-May-2021
*
* Author: <NAME>
*
* A344279: Numbers a(n)=m such that |m| is the smallest, k=n*m and r=(n^2+1)*m
* for two quadratic equations of the form t^2+k*t+r = 0 and t^2+r*t+k^2 = 0
* have non-zero integer roots, where k is the coefficient of ... |
#include <atomic>
#include <algorithm>
#include <thread>
#include <chrono>
#include "world.hpp"
#include "util.hpp"
#include "player.hpp"
#include "dir.hpp"
#include "room.hpp"
#include "object.hpp"
World::World() {
this->self = std::shared_ptr<World>(this);
this->startActorThread();
}
World::~World() {
this->dest... |
/* Copyright 2001, 2019 IBM Corporation
*
* 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 conditions and the
* following d... |
/*
* (C) Copyright 1996-2016 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an in... |
/** \class DTDigiAnalyzer
* Analyse the the muon-drift-tubes digitizer.
*
* \authors: <NAME>
*/
#include "DataFormats/MuonDetId/interface/DTLayerId.h"
#include "SimMuon/DTDigitizer/test/DTDigiAnalyzer.h"
#include <DataFormats/DTDigi/interface/DTDigiCollection.h>
#include <FWCore/Framework/interface/Event.h>
// ... |
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include "PCSTree.h"
#include "PCSNode.h"
// constructor
PCSTree::PCSTree()
{
info.maxLevelCount = 0;
info.maxNodeCount = 0;
info.numLevels = 0;
info.numNodes = 0;
root = NULL;
};
// destructor
PCSTree::~PCSTree()
{
// printf("PCSTree: destructor()\n... |
// Copyright 2016 Etix Labs
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
* 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/. */
... |
#pragma once
#include "../../JObject.hpp"
class JObject;
namespace android::media
{
class MediaCodecInfo_CodecProfileLevel : public JObject
{
public:
// Fields
static jint AACObjectELD();
static jint AACObjectERLC();
static jint AACObjectERScalable();
static jint AACObjectHE();
static jint AACObjectHE... |
// Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... |
#include "softjoystick.h"
#include "control.h"
#include <algorithm>
#include <math.h>
#include <SDL_image.h>
#ifndef M_PI
#define M_PI 3.1415926535897
#endif
static byte numButtons = 2;
static byte state = 0;
static byte taps = 0;
void SoftJoystickNumButtons(byte n) {
numButtons = std::max((byte) 1, std::min(n, (... |
#include "Global.h"
#define CI_DLL "ci.dll"
#define CI_PATTERN "89 0D ? ? ? ? 49 8B F8"
#define NTOS_EXE "ntoskrnl.exe"
#define NTOS_PATTERN "C6 05 ? ? ? ? ? 8D 7B 06"
/* Initialization Routine */
sys::sys(uint32_t BuildNumber)
: dwBuildNumber(BuildNumber)
{
if (BuildNumber < 7601) // Check if OSBuildNumber Is S... |
void AESState::expand_generic(const uint8_t* key, std::size_t len) {
uint32_t nk = (len / 4);
uint32_t n = num_rounds * 4;
for (uint32_t i = 0; i < nk; ++i) {
enc.u32[i] = RBE32(key, i);
}
for (uint32_t i = nk; i < n; ++i) {
uint32_t temp = enc.u32[i - 1];
uint32_t p = (i / nk);
uint32_t q = (... |
// Copyright (C) 2018-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 <process/config_... |
/*
Table.cpp
By <NAME>
Jacobus Systems, Brighton & Hove, UK
http://www.jacobus.co.uk
Provided under the MIT license: https://github.com/jacobussystems/ArdJack/blob/master/LICENSE
Copyright (c) 2019 <NAME>, Jacobus Systems, Brighton & Hove, UK
Permission is hereby granted, free of charge, to any person obtaini... |
#include "DepthPredictor.h"
#include<iostream>
#include<opencv2\core.hpp>
#include<opencv2\highgui.hpp>
#include<opencv2\imgproc.hpp>
using namespace cv;
DepthPredictor::DepthPredictor(ORB_SLAM2::Map* pMap, KeyFrameQueue* frame_queue,
DenseMap* dense_map, std::string setting_file):mpOrbSlamMap(pMap),
m_success(... |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2011 New Dream Network
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License ... |
#include <dis6/LinearSegmentParameter.h>
using namespace DIS;
LinearSegmentParameter::LinearSegmentParameter():
_segmentNumber(0),
_segmentAppearance(),
_location(),
_orientation(),
_segmentLength(0),
_segmentWidth(0),
_segmentHeight(0),
_segmentDepth(0),
_pad1(0)
{
}
LinearSegmen... |
// Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
#include "utils/concord_eth_hash.hpp"
#include "utils/concord_eth_sign.hpp"
#include "utils/concord_utils.hpp"
#include "utils/rlp.hpp"
using namespace std;
using concord::utils::dehex;
using concord::utils::EthSign;
u... |
/*
Copyright (c) 2010 <NAME>.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the follo... |
// This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation... |
#include "HTNWorldState.h"
#include <cmath>
#include "PlayerData.h"
#include "AbstractItem.h"
#include "pLog.h"
#include <sstream>
#include "Missions.h"
//***********************************************************
HTNWorldState::HTNWorldState(UPlayerData* playerPtr, PlayerMap& playerMap, std::vector<RealItemType*>& r... |
#include <OpenGP/SurfaceMesh/SurfaceMesh.h>
#include <OpenGP/SurfaceMesh/bounding_box.h>
#include <OpenGP/GL/glfw_helpers.h>
#include <OpenGP/GL/glfw_trackball.h>
#include <OpenGP/GL/Eigen.h>
#include <OpenGP/MLogger.h>
using namespace OpenGP;
using namespace std;
/// Viewer global status
SurfaceMesh mesh;
std::vecto... |
#include <stdio.h>
#define MAX_N 20
void Cubic_Spline(int n, double x[], double f[], int Type, double s0, double sn,
double a[], double b[], double c[], double d[]);
double S(double t, double Fmax,
int n, double x[], double a[], double b[], double c[], double d[]);
int main() {
freopen("in6.txt", "r", stdin);
i... |
#include "misc/Frustum.h"
Box3D::Box3D(const Box3D& source, const glm::dmat4& transformation)
{
min = transformation * glm::dvec4(source.min, 1.0);
max = transformation * glm::dvec4(source.max, 1.0);
if (min.x > max.x)
{
const double temp = max.x;
max.x = min.x;
min... |
#include "oaLoaderUtils.h"
#include <math.h>
#include <codecvt>
#include <locale>
#include "oaJoint.h"
#include "rapidxml\rapidxml.hpp"
#include "rapidxml\rapidxml_iterators.hpp"
#include "rapidxml\rapidxml_print.hpp"
#include "rapidxml\rapidxml_utils.hpp"
#include "oaAnimationLoader.h"
std::unordered_map... |
#include <iostream>
#include <chrono>
#include <string>
#include <sstream>
#include <irkit/coding/stream_vbyte.hpp>
#include <irkit/index.hpp>
#include <irkit/io.hpp>
#include <irkit/memoryview.hpp>
#include <irkit/index/source.hpp>
#include <irkit/index/types.hpp>
#include <irkit/index/posting_list.hpp>
// #define pr... |
/* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein is
* confidential and proprietary to MediaTek Inc. and/or its licensors. Without
* the prior written permission of MediaTek inc. and/or ... |
#include "gtest/gtest.h"
#include <fstream>
#include "polytope.hpp"
#include "polytope_examples.hpp"
using namespace OB;
TEST(TESTConvexPolytope, basicTest) {
std::vector<Point> points;
points.push_back(Point(-1, -1, -1));
points.push_back(Point(-1, -1, 1));
points.push_back(Point(-1, 1, -1));
points.push_... |
#include "toppane.h"
#include "engine.h"
#include "enginep.h"
#include "surface.h"
/////////////////////////////////////////////////////////////////////////////
//
// TopPane
//
/////////////////////////////////////////////////////////////////////////////
class TopPaneSurfaceSite : public SurfaceSite {
private:
... |
#include "explosion.h"
//////////////////////////////////////////////////////////////////////////////
//
// ExplosionGeo
//
//////////////////////////////////////////////////////////////////////////////
class ExplosionGeoImpl :
public ExplosionGeo
{
private:
///////////////////////////////////////////////////... |
#include "rivercrossing/rivercrossing.h"
#include "rivercrossing/movement_network.h"
bool RiverCrossing::optimisationCheck(int x, int y)
{
double startA = SM.getActivity(x, y);
double bestA = startA;
int newX = x;
int newY = y;
for (int x2 = f(x, -2, RIVER::x); x2 <= f(x, 2, RIVER::x); x2++) {
for (int ... |
#include <algorithm>
#include <iostream>
#include <queue>
#include <vector>
class edmond_blossom {
private:
std::vector<std::vector<int>> adj_list;
std::vector<int> match;
std::vector<int> parent;
std::vector<int> blossom_root;
std::vector<bool> in_queue;
std::vector<bool> in_blosso... |
/********************************************************************
Main Function for point cloud registration with Go-ICP Algorithm
Last modified: Feb 13, 2014
"Go-ICP: Solving 3D Registration Efficiently and Globally Optimally"
<NAME>, <NAME>, <NAME>
International Conference on Computer Vision (ICCV), 2013
Copyri... |
#include <fstream>
#include <sstream>
#include "rho.h"
#include "rhoinit.h"
#include "constants.h"
#include "approxsolver.h"
#include "gauss.h"
#include "paramdb.h"
//
// Initialization of electron density.
// Proper initialization of electron density could have large impact on the
// convergence of Self Consisten Fi... |
/* Copyright (c) 2015, <NAME> <<EMAIL>> Licensed
* under the MIT license. See the license file LICENSE.
*/
#pragma once
#include <stdint.h>
#include <string>
#include <vector>
#include <iostream>
#include <Eigen/Core>
#include <Eigen/Dense>
#include <Eigen/QR>
#include <unsupported/Eigen/MatrixFunctions>
// CUDA ru... |
#include<bits/stdc++.h>
using namespace std;
#define pii pair<int, int>
struct Node{
static int stamp;
char value;
int visited;
int depth;
pii parent;
Node(){
depth = INT32_MAX;
value = ' ';
visited = false;
parent = make_pair(-1, -1);
}
// int getColor(... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
#include <queue>
using namespace std;
int T[20];
int dest[50][50];
int N;
int best[50][50];
const int inf = (1<<29);
struct state {
int t, i, j;... |
#include "ffsa.h"
#include "opentsb/kc_sec.h"
#include <iostream>
/*check GMP number for primality*/
bool ffsa_check_prime(mpz_class p)
{
int8_t reps = 25;
int prob = mpz_probab_prime_p(p.get_mpz_t(), reps);
if(prob == 2)
return true;
else if(prob == 0)
return false;
else if(prob... |
// Copyright 2017 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 "base/base_paths.h"
#include "base/bind.h"
#include "base/callback.h"
#include "base/files/file.h"
#include "base/files/file_path.h"
#include "ba... |
#include <interrupts/panic.h>
#include <scheduling/scheduler/scheduler.h>
#include <renderer/renderer2D.h>
#include <renderer/point.h>
#include <driver/serial.h>
#include <config.h>
#include <stdio.h>
#include <disassembler.h>
using namespace interrupts;
Panic::Panic(int intr) {
this->intr = intr;
this->panic ... |
/*****************************************************************************
* Copyright (C) 2013-2017 MulticoreWare, Inc
*
* Authors: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as ... |
/*
* Copyright 2010,
* <NAME>,
* <NAME>,
*
* CNRS/AIST
*
*/
/* --------------------------------------------------------------------- */
/* --- INCLUDE --------------------------------------------------------- */
/* --------------------------------------------------------------------- */
/* --- DYNAMIC-GRAPH --... |
/* node_page_test.cc
<NAME>, 20 January 2012
Copyright (c) 2012 Datacratic. All rights reserved.
Tests for node_page.h
*/
#define BOOST_TEST_MAIN
#define BOOST_TEST_DYN_LINK
#include "mmap/node_page.h"
#include "soa/utils/threaded_test.h"
#include <boost/test/unit_test.hpp>
#include <iostream>
#include <t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.