text stringlengths 3.08k 22k |
|---|
/**
* Copyright (C) 2017, <NAME> <<EMAIL>>
* All rights reserved
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of... |
/*
* CIMFPlayer.cpp
*
* Created on: 17.02.2011
* Author: gerhard
*/
#include "CIMFPlayer.h"
/* #include "sdl/sound/CSound.h" */
/* #include "fileio/ResourceMgmt.h"
#include "fileio/compression/CHuffman.h"
#include "FindFile.h"
#include "CLogFile.h"
#include <fstream> */
#include <string>
/*
const Uint32 Gal... |
#include "CondFormats/EcalObjects/interface/EcalTPGLutIdMap.h"
#include "CondFormats/EcalObjects/interface/EcalTPGLutGroup.h"
#include "CondFormats/DataRecord/interface/EcalTPGLutIdMapRcd.h"
#include "CondFormats/DataRecord/interface/EcalTPGLutGroupRcd.h"
#include "SimCalorimetry/EcalElectronicsEmulation/interface/Ecal... |
#include "ht.h"
#include "allocator.h"
#include "ue2common.h"
#include "grey.h"
#include "hs_compile_mnrl.h"
#include "hs_internal.h"
#include "hs_compile_mnrl_int.h"
#include "database.h"
#include "parse_symbol_set.h"
#include "compiler/compiler.h"
#include "compiler/error.h"
#include "nfagraph/ng.h"
#include "nfagra... |
//
// Copyright 2021-2022 <NAME>
// This file is part of the Tiny Lang compiler.
// Tiny Lang is licensed under the BSD-3 license. See the COPYING file for more information.
//
#include <iostream>
#include <parser/Parser.hpp>
#include <ast.hpp>
// Builds a constant expression value
AstExpression *Parser::buildConstEx... |
#include <bits/stdc++.h>
using namespace std;
int MOD[] = {1000000007, 998244353, 998244853};
template <int ITH>
struct modular {
constexpr modular() : val(0){}
constexpr modular(const modular& _m) : val(_m.val) {}
template <typename U> constexpr modular(const U& _r = U()) {
val = -MOD[ITH] <= _r... |
//#include <Windows.h>
//#include <gl/GL.h>
//#include <gl/GLU.h>
//#include <GL/glut.h>
#include <GL/freeglut.h>
#include "tipos.h"
#include "escena.h"
#include <iostream>
using namespace std;
//-------------------------------------------------------------------------
// Window size
int winWidth = ... |
/*
* M_APM - mapm_exp.c
*
* Copyright (C) 1999 - 2007 <NAME>
*
* Permission to use, copy, and distribute this software and its
* documentation for any purpose with or without fee is hereby granted,
* provided that the above copyright notice appear in all copies and
* that both that copyright notice a... |
#include<iostream>
#include<string>
using namespace std;
const int ROWS(3), COLUMNS(3), LAYERS(3); // the size of the grid the game will be played on
void intro();//no input, Output: Game description
void populate(string gameboard[][ROWS][COLUMNS],int layers, int rows, int columns);
void displayGame(string... |
#include "globals.h"
#include "rigidbodyragdoll.h"
#include "stream.h"
#include "error.h"
#include "rigidbodycreation.h"
/////////////////////////////////////////////////////////////////////////////////////
// STRING TABLE /////////////////////////////////////////////////////////////////////
/////////////////////////... |
// Copyright (c) 1999-2018 <NAME>
// See the file COPYING for more information
#include "../../config.h"
#include <rudiments/environment.h>
#include <sql.h>
#include <sqlext.h>
#include "sqlrbench.h"
class odbcbench : public sqlrbench {
public:
odbcbench(const char *connectstring,
const char *db,
uint6... |
/**
* @file overlay.cpp
* ----------
* @author Bartolone, Kai
* @date October 2020
*/
#include <overlay.h>
#include <ui_overlay.h>
#define MAX_PLAYERS 12
Overlay::Overlay(QWidget* parent) : QWidget(parent), ui(new Ui::Overlay)
{
ui->setupUi(this);
connect(this, &Overlay::mouseDoubleClickEvent, this, &Ov... |
/*
* Copyright 2010 by <NAME>
*
* Please refer to the end of the file for licensing information
*/
#include "LetterInputMethod.h"
using std::vector;
using std::pair;
using std::string;
using std::wstring;
void LetterInputMethod::handleEsc()
{
if (this->isHelpInput()) {
//Flag for remov... |
// Copyright 2018 Google LLC
//
// 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 law or agreed to in ... |
/*
* (C) Copyright 2020 UCAR
*
* 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.
*/
#include <math.h>
#include <algorithm>
#include <cstdlib>
#include <iostream>
#include <numeric>
#include <typeinfo>
#include "Ei... |
// Copyright (c) 2019-2020 LG Electronics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
/* read-on-ready.cpp
Copyright 2018 <NAME>
Created by roger-dv on 12/26/18.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appl... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "ebpf_tracer_engine.h"
#include "../../logging/easylogging++.h"
#include <iostream>
#define STAT_MAX_ITEMS 10
#define CONFIG_ITEMS 1
bcc_symbol_option EbpfTracerEngine::SymbolOption = {.use_debug_fil... |
/**
* \file MatchFileWriter.cpp
* DATE: October 26, 2010
* AUTHOR: <NAME>
* \brief Object for writing tab-deliminted text files of PSMs (matches).
* This class is the extension of DelimitedFileWriter where the
* columns are those in MatchColumns. Which columns are written to
* file depend on the COMMAND_TYPE_T.... |
/* @STSHELL_LICENSE_START@
*
* __ _______ ___________
* / |/ / __ \/ ___/_ __/
* / /|_/ / / / /\__ \ / /
* / / / / /_/ /___/ // /
* /_/ /_/\____//____//_/
*
* Multi-Objective System Tuner
* Copyright (c) 2007-2022 Politecnico di Milano
*
* Development leader: <NAME>
*... |
// Copyright 2020 Makani Technologies LLC
//
// 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 ... |
/** @defgroup MleParts Magic Lantern Parts */
/**
* @file 2dsprd.cxx
* @ingroup MleParts
*
* This file implements the class for a 2D Sprite Role.
*
* @author <NAME>
* @date May 1, 2003
*/
// COPYRIGHT_BEGIN
//
// Copyright (C) 2000-2007 Wizzer Works
//
// Wizzer Works makes available all content in this fi... |
// 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.
//
// Tencent is pleased to support the open source community by making WeChat QRCode available.
// Copyright (C) 2020 THL A29... |
/*
ICradio.cpp - Library for communication via ICOM's CI-V bus
Created by <NAME>, DK8RW, May 30, 2021
Released into the public domain
Control layer for ICOM's radios
*/
#include <Arduino.h>
#include "CIVmaster.h"
#include "CIVcmds.h"
#include "ICradio.h"
extern CIV civ;
extern uint8_t G_... |
/*
XenoCollide Collision Detection and Physics Library
Copyright (c) 2007-2014 <NAME> http://xenocollide.com
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 any... |
/*This file is part of the FEBio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio.txt for details.
Copyright (c) 2020 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any person obtaining ... |
/*
This file is part of cpp-ethereum.
cpp-ethereum 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.
cpp-ethereum is ... |
/** @file
*
* @ingroup audioGraphLibrary
*
* @brief Wraps an object from Jamoma DSP to function within AudioGraph
*
* @details The TTAudioGraphObjectBase wraps a Jamoma DSP object such that it is possible to build a dynamic graph of audio processing units. It is implemented as a #TTObjectBase so that it can rece... |
/*
###############################################################################
#
# Temboo Arduino library
#
# Copyright 2017, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
... |
#include "traitementvideo.h"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/imgproc/types_c.h"
TraitementVideo::TraitementVideo(QWidget *parent) :
QMainWindow(parent)
{
setupUi(this);
configureCamera();
body_cascade.load(body_cascade_path);
server = new QTcpServer(this);
socket = n... |
#include "partitionwidget.hpp"
#include <QDateTime>
#include <QPainter>
#include <QPen>
#include <QFile>
#include <QMessageBox>
#include <QTextStream>
#include <QDebug>
#include <QWidget>
#include <QTextItem>
#include <QThread>
#include <QFontMetrics>
#include <QInputDialog>
#include <QDebug>
/**
* Constructeur
* Cré... |
#include "main.h"
#include "game.h"
#include "net/netgame.h"
#include "materialtext.h"
#include <cmath>
extern CGame *pGame;
extern CNetGame *pNetGame;
extern CMaterialText *pMaterialText;
CObject::CObject(int iModel, float fPosX, float fPosY, float fPosZ, VECTOR vecRot, float fDrawDistance)
{
uint32_t dwRetID = 0;
... |
/***********************************************************************************************************************
* *
* glscopeclient ... |
#include <GL\glew.h>
#include <SDL.h>
#include <SDL_opengl.h>
#include <stdio.h>
#include <gl\GLU.h>
#include <glm\glm.hpp>
#include <glm\gtc\matrix_transform.hpp>
#include <glm\gtc\type_ptr.hpp>
#include <iostream>
#include "Shader.h"
#include "Camera.h"
#include "Model.h"
bool init();
bool initGL();
void render(... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2010 Couchbase, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... |
// @@@ START COPYRIGHT @@@
//
// 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... |
#include <iostream>
#include <vector>
#include <queue>
#include <stack>
#include <set>
#include <cstring>
#include <cmath>
using namespace std;
const bool DEBUG = false;
class Vector3 {
public:
float x, y, z;
Vector3(float x, float y, float z): x(x), y(y), z(z) {}
friend ostream& operator<< (std::ostream& stream, ... |
#include "build_csharp.h"
#include "utilities.h"
#include <fstream>
#include <sstream>
#include <map>
#include <unordered_set>
/*
* find the next token replacement.
*
* start - where the search should start in the template, if a match is found start is updated to point to the start of the match.
* token - the fo... |
#include "Gui.h"
#include <algorithm>
#include <sstream>
#define UNUSED(x) [&x]{}()
Gui::Gui(std::ofstream& _log) : log(_log) {
initscr();
getmaxyx(stdscr, m_fullWinHeight, m_fullWinWidth);
start_color();
clear();
int startx {5};
int starty {3};
curs_set(0);
noecho();
cbreak(); ... |
/*
===========================================================================
GWEN
Copyright (c) 2010 Facepunch Studios
Copyright (c) 2017-2018 <NAME>
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to dea... |
// $Header: /nfs/slac/g/glast/ground/cvs/Overlay/src/cnv/AcdOverlayCnv.cxx,v 1.6 2011/12/12 20:54:56 heather Exp $
/**
@file AcdOverlayCnv.cxx
Implementation file for Root calibration converter base class
*/
#include "Overlay/IOverlayDataSvc.h"
#include "GaudiKernel/Converter.h"
#include "GaudiKernel/... |
/**
* Copyright 2020 <NAME> (kremi151)
*
* 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 agree... |
#include <solvers/smt/smt_conv.h>
#include <solvers/smt/tuple/smt_tuple_array_ast.h>
#include <solvers/smt/tuple/smt_tuple_sym_ast.h>
#include <solvers/smt/tuple/smt_tuple_sym.h>
#include <sstream>
#include <util/base_type.h>
#include <util/c_types.h>
smt_astt smt_tuple_sym_flattener::tuple_create(const expr2tc &struc... |
/****************************** RMX SDK ******************************\
* Copyright (c) 2007 <NAME>., All rights reserved. *
* *
* See license.txt for more information *
* ... |
#include "torrentHandler.h"
TorrentHandler::TorrentHandler(QObject *parent) : QObject(parent)
{
}
bool TorrentHandler::downloadFile(int torrentId, QString torrentPass, QString url)
{
QString title;
QString encoding;
QString comment;
QString createdByClient;
qlonglong createdtime;
qlonglong pi... |
/*
* Player - One Hell of a Robot Server
* Copyright (C) 2000 <NAME> et al.
*
* 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 2 of the License, or
* (at your option)... |
/**
* Author: <NAME>
* Date: 1/29/21
*
* There are 3 main steps:
* 1) read in the data
* 2) pass the data to our datasetProvider which shuffles the data
* 3) Run ML on the data
*
* The first 2 steps would occur on the private data lake and the second one would be on
* a machine that the modeler owns
... |
// WorkWithData.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <conio.h>
#include <string>
#include <iostream>
#include <fstream>
using namespace std;
const int MAX_LENGTH = 140;
const char LT = 218;
const char H = 196;
const char RT = 191;
const char V = 179;
const char... |
#include "ASTNode.h"
#include <string>
#include <sstream>
#include <iostream>
#include <map>
#include <vector>
#include <set>
#include "semantics.h"
using namespace std;
class class_and_methods {
public:
string method_name;
string return_type;
vector<std::string> formal_arg_types;
... |
#pragma once
#include <crest/basis/homogenized_basis.hpp>
// Must include detail/qr here because it does not seem to be included by LGMRES,
// which it should be
#include <amgcl/detail/qr.hpp>
#include <amgcl/amg.hpp>
#include <amgcl/coarsening/smoothed_aggregation.hpp>
#include <amgcl/relaxation/spai0.hpp>
#include ... |
#include "particle.h"
#include "graphics.h"
#include "../engine.h"
#define NULL 0
/* Particle Methods */
CParticle::CParticle( std::string texture, float life, float x, float y, float z, float startSize, float endSize )
{
mTexture = CManagedTexture::Load( &gResourceManager, texture );
mLife = life;
mAge... |
#include <rapidcheck.h>
#include "driver/AirPacket.hpp"
#include "common/SafeQueue.hpp"
#include "common/convert.hpp"
#include "driver/VerifyHash.hpp"
#include "FileUtils.hpp"
// #include "schedule.h"
#include <algorithm>
#include <iostream>
#include <iomanip>
#include "cpp_utils.hpp"
#include "../data/packet_vector... |
#include <PnC/WBC/BasicContactSpec.hpp>
PointContactSpec::PointContactSpec(RobotSystem* robot, int _link_idx,
double _mu)
: ContactSpec(robot, 3) {
myUtils::pretty_constructor(3, "Point Contact Spec");
link_idx_ = _link_idx;
max_Fz_ = 500.;
mu_ = _mu;
}
PointCon... |
#include <Veritas/Math/mat4.h>
#include <Veritas/Math/Math.h>
using namespace Veritas::Math;
vec4& mat4::operator[](uint32 index) { return (vec4&) m[index * 4]; }
const vec4& mat4::operator[](uint32 index) const { return (const vec4&) m[index * 4]; }
mat4::mat4() {}
mat4::mat4(float32 m00, float32 m01, float32 m02, ... |
#include "merge_dfp.h"
#include "distances.h"
#include "factored_transition_system.h"
#include "transition_system.h"
#include "../option_parser.h"
#include "../plugin.h"
#include "../task_proxy.h"
#include <algorithm>
#include <cassert>
#include <iostream>
using namespace std;
MergeDFP::MergeDFP()
: MergeStra... |
/* Copyright (c) 2010-present 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 without restriction, including without limitation the rights
to use, copy, modify, me... |
#include "FluidRenderer.h"
#include <GLCore/glengine.h>
#include <GLBase/Environment/Scene.h>
#include <FluidSystem.h>
#include <Tools/Math.h>
void GLCheck(int line) {
GLenum err;
while ((err = glGetError()) != GL_NO_ERROR) {
std::cout << "OpenGL error @ " << line << " :" << err << std::endl;
}
}
FluidRenderer::... |
// Copyright 2019, Intel Corporation
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "mlir/IR/Builders.h"
#include "mlir/IR/Location.h"
#include "mlir/IR/MLIRContext.h"
#include "mlir/IR/Module.h"
#include "mlir/Parser.h"
#include "mlir/Pass/PassManager.h"
#include "mlir/Support/DebugStringHelper.h"
#inclu... |
#include <vkcl/vkcl.h>
#include <vector>
#include <GL/glut.h>
#include <GL/glu.h>
#include <omp.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <stdarg.h>
#define GRAV_CONST 4.30091E-3
#define SOFTENING 1.0E-5
typedef float vec2[2];
typedef float vec3[3];
typedef float vec4[4];
... |
#include <utils.hpp>
#include <math.h>
#include <float.h>
#include <cmsis_os.h>
#include <stm32f4xx_hal.h>
int SVM(float alpha, float beta, float* tA, float* tB, float* tC) {
int Sextant;
if (beta >= 0.0f) {
if (alpha >= 0.0f) {
//quadrant I
if (one_by_sqrt3 * beta > alpha)
... |
/* Starshatter OpenSource Distribution
Copyright (c) 1997-2004, Destroyer Studios LLC.
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 t... |
#include <filesystem>
#include <json.hpp>
#include <mg.hpp>
#include <mg/data/mzp.hpp>
#include <mg/util/crypto.hpp>
#include <mg/util/endian.hpp>
#include <mg/util/fs.hpp>
#include <mg/util/string.hpp>
static const std::string TARGET_LANGUAGE = "en";
std::vector<uint32_t>
parse_offset_table(const std::string &stri... |
//
// GLESMath.cpp
// GameEngine
//
// Created by Leo on 2016/11/28.
// Copyright © 2016年 Leo. All rights reserved.
//
#include "GLESMath.hpp"
#include <stdlib.h>
#include <string>
#include <math.h>
using namespace XYZGame;
//void * memcpy(void *, const void *, size_t);
//void * memset(void *, int, size_t);
uns... |
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "CorePrivatePCH.h"
#include "EngineVersion.h"
#include "Runtime/Launch/Resources/Version.h"
#include "EngineBuildSettings.h"
#include "ModuleVersion.h"
#include "UObject/ReleaseObjectVersion.h"
/** Version numbers for networking */
int32 GEngineNet... |
#include <tensor/tensor.hpp>
#include "conv_2d.hpp"
#include "conv_2d_helpers.hpp"
#include "im2col.hpp"
auto ts::conv_2d_im2col(ts::Tensor<float, 4> const &images, ts::Tensor<float, 2> const &kernel,
ts::Tensor<float, 2> &im2col_buffer, int kernel_size, int stride, int pad, int dilatation)
... |
// POP 2021-01-11 project 2 <NAME> EiT 2 184325
// Clion 2020.3 MSVC 14.28
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <fstream>
#include <queue>
#include <stack>
#include <stdexcept>
#include <string>
#include <variant>
using namespace std;
using Symbol = variant<float, char, string>;
bool ParseStrin... |
/*
* ExportGold.cc
*
* Created on: Mar 1, 2012
* Author: cferenba
*
* Copyright (c) 2012, Los Alamos National Security, LLC.
* All rights reserved.
* Use of this source code is governed by a BSD-style open-source
* license; see top-level LICENSE file for full license text.
*/
#include "ExportGold.hh"
... |
// MIT License
//
// Copyright(c) 2017 <NAME>, <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 without restriction, including without limitation the rights
// to... |
#include <iostream>
#include <Eigen/Dense>
#include <unsupported/Eigen/LevenbergMarquardt>
#include <unsupported/Eigen/MatrixFunctions>
using namespace Eigen;
using namespace std;
void flatten(Matrix<double, 4, 4> &g, Matrix<double,1,12> &y) {
y(0) = g(0,0);
y(1) = g(0,1);
y(2) = g(0,2);
y(3) = g(1,0)... |
#include <iostream>
#include <vector>
long long int mod = 1000000007;
#define MATSIZE 200
long long int* mat;
long long int* val;
void doPower( long long int k )
{
long long int* powm = new long long int[MATSIZE*MATSIZE];
long long int* tmp = new long long int[MATSIZE*MATSIZE];
for ( int i = 0 ; i... |
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <unistd.h>
#include <iostream>
#include <vector>
#include <string>
#include <map>
#include <algorithm>
#include <thread>
#include <mutex>
#include <string.h>
#include <limits.h>
/* 128 KB */
#define MAX_DATA 131072
#define ... |
#include "BiDirectionalAStar.h"
#include "PairHashing.h"
#include <set>
using std::multiset;
using std::unordered_map;
int BiDirectionalAStar::run_algorithm(double **array, int dimension, int *source, int *goal, float time_limit) {
//open list front search
multiset<shared_ptr<Node>, lessCompNodePointers> fr... |
#pragma once
#define STEP_RESET -200
struct Nordschleife;
enum NordschleifeFields
{
shlfDirection,
shlfPath,
shlfCollision,
shlfFrom,
shlfTo,
shlfStartGrid,
shlfAngle,
shlfStrtgEvery,
shlfStrtgFor,
shlfOffset,
shlfStep,
shlfOutA,
shlfOutB,
shlfMode,
shlfProbab,
shlfRepeats,
shlfStepOffset,
shlfTrig... |
#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<string>
#include<stdlib.h>
#include<fstream>
#include<windows.h>
#include "util.h"
using namespace std;
ifstream ReadTasklist;
string tasklistTemp;
string tasklist;
ifstream reader;
ofstream writer;
void util::sysExecute(string cmd) {
cmd = R"(cmd /q /c "... |
/* Copyright(c) Sophist Solutions Inc. 1990-1992. All rights reserved */
/*
* $Header: /fuji/lewis/RCS/tPixelMap.cc,v 1.2 1992/09/01 17:52:15 sterling Exp $
*
* TODO:
*
* Changes:
* $Log: tPixelMap.cc,v $
* Revision 1.2 1992/09/01 17:52:15 sterling
* *** empty log message ***
*
* Revision 1.7 1992/03... |
// This file is part of snark, a generic and flexible library for robotics research
// Copyright (c) 2011 The University of Sydney
// 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. Redistr... |
// Copyright (c) 2018-2019, <NAME>.
// This file is released under the Modified BSD License.
// Maintainer: mphoward
#include "lbvh_benchmark.cuh"
#include "hoomd/Autotuner.h"
#include "hoomd/ClockSource.h"
#include "hoomd/ExecutionConfiguration.h"
#include "hoomd/GSDReader.h"
#include "hoomd/SystemDefinition.h"
#i... |
//
// Name: app.cpp
// Purpose: Example GLUT/vtlib application.
//
// Copyright (c) 2001-2007 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//
#ifdef __FreeBSD__
# include <ieeefp.h>
#endif
#include "vtlib/vtlib.h"
#include "vtlib/core/Terrain.h"
#include "vtlib/core/TerrainScene.h"... |
#include <sgltk/sgltk.h>
class Win : public sgltk::Window {
bool rel_mode;
bool wireframe;
glm::vec2 cam_pos;
glm::mat4 skybox_mat;
glm::mat4 obj_mat;
sgltk::Cubemap cubemap;
sgltk::Mesh skybox;
sgltk::Shader skybox_shader;
sgltk::Shader obj_shader;
sgltk::IP_Camera cam;
sgltk::Model obj;
void handle_re... |
//============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; ei... |
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\___/|... |
/***************************************************************************
* glut_support.cpp - description
* --------------------------
* begin : December 28, 2001
* copyright : (C) 200... |
/*
** Copyright 2009 <NAME>, <EMAIL>. All rights reserved.
** Distributed under the terms of the MIT License.
*/
#include <PlainTextCatalog.h>
#include <assert.h>
#include <cstdio>
#include <iostream>
#include <fstream>
#include <new>
#include <sstream>
#include <string>
#include <syslog.h>
#include <Application.h>... |
#include "Globals.h"
#include "ChunkSource.h"
#include <QThread>
#include "Generating/BioGen.h"
#include "inifile/iniFile.h"
/** Map for converting biome values to colors. Initialized from biomeColors[]. */
static uchar biomeToColor[256 * 4];
/** Map for converting biome values to colors. Used to initialize biome... |
//
// Copyright (C) 2004-2011 by Autodesk, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of version 2.1 of the GNU Lesser
// General Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be use... |
#include "DiceVisualizer.h"
#include "Geometry.h"
#include "Plane.h"
#include "ObjReader.h"
#include <QtMath>
#include <iostream>
#include <QMatrix4x4>
#include <QVector3D>
#include <QOpenGLVertexArrayObject>
#include <memory>
#include <QTimer>
DiceVisualizer::DiceVisualizer(QWidget *parent) : QOpenGLWidget(parent) {}... |
/*
Copyright (c) 2010-2012, <NAME> - All rights reserved.
This code is intended for use with the Cinder C++ library: http://libcinder.org
Redistribution and use in source and binary forms, with or without modification, are permitted provided that
the following conditions are met:
* Redistributions of source c... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
#include <cstdint>
#include <iostream>
#include <cmath>
#include <math.h>
#include <sstream>
#include "ns3/energy-module.h"
#include "ns3/flow-monitor-helper.h"
#include "ns3/flow-monitor.h"
#include "ns3/ipv4-flow-classifier.h"
#include "ns3/ipv4-routi... |
/*
* Copyright 2002-2021 oZ/acy (名賀月晃嗣)
* 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 an... |
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup()
{
ofSetRectMode(OF_RECTMODE_CENTER);
m_device.connectEventHandler(&ofApp::onLeapFrame, this);
m_background.loadImage("images/starbackground.png");
//load images
//m_man.load(ProjectConstants::I... |
#include "graphics/rhi/frame_buffer.h"
#include "graphics/pass/shadow.h"
#include "graphics/assets/assets.h"
#include "components/lights.h"
#include "components/transform.h"
#include "components/camera.h"
#include "graphics/rhi/draw.h"
#include "graphics/rhi/primitives.h"
#include "graphics/renderer/renderer.h"
#includ... |
#include "physics.h"
#include <iostream>
void
Physics::init()
{
//initialization
///use the default collision dispatcher. For parallel processing you can use a diffent dispatcher (see Extras/BulletMultiThreaded)
colconfig = new btDefaultCollisionConfiguration();
dispatcher = new btCollisionDispatcher... |
#pragma once
template <class Store, class Hit>
Ltl<Store, Hit>::Ltl(const std::string& model_name, const std::string& prop,
bool depth_bounded)
: eval(std::make_shared<BitCode>(model_name)), depth_bounded(depth_bounded),
ba("! (" + prop + ")")
{
}
template <class Store, class Hit>
void Ltl<Store, Hit>::run... |
/**
* @file client.cpp
* @author <NAME>
*
* @brief CORBA C++11 client ami test
*
* @copyright Copyright (c) Remedy IT Expertise BV
*/
#include "ace/Get_Opt.h"
#include "ace/Task.h"
#include "ami_testAmiC.h"
#include <thread>
#include "testlib/taox11_testlog.h"
const ACE_TCHAR *ior = ACE_TEXT("file://ser... |
#include <SFML/Graphics.hpp>
#include <iostream>
#include <cmath>
#include "../headers/Player.h"
#include "../headers/Settings.h"
#include "../headers/Utils.h"
#include "../headers/Collider.h"
Player::Player(sf::RectangleShape body, Settings *settings) {
pos = sf::Vector2f(0, 0);
this->settings = settings;
... |
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// Name :
// Author : Avi
// Revision : $Revision: #32 $
//
// Copyright 2009- ECMWF.
// This software is licensed under the terms of the Apache Licence version 2.0
// which can be obtained at http://www.apache.org/license... |
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Project: Embedded Learning Library (ELL)
// File: DSPCodeNodesTest.cpp (nodes_test)
// Authors: <NAME>
//
//////////////////////////////////////////////////////////////////////////////////////////////////... |
#include "../../BenchmarkNode.h"
#include <stdint.h>
#include <iostream>
#include <cmath>
#include <pthread.h>
#define NUM_THREADS 4
#define ITER_COUNT 2
#define CACHE_LINE 32 // cache line in byte
/* this structure represents a point */
/* these will be passed around to avoid copying coordinates */
typedef struct ... |
// Copyright 2019 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 "geometry_msgs/Pose2D.h"
#include "geometry_msgs/Twist.h"
#include "nav_msgs/Odometry.h"
#include "obstacle.h"
#include "pidcontroller.h"
#include "ros/ros.h"
#include "std_msgs/String.h"
#include "vector"
#include <memory>
#include <sstream>
#include <string>
#include <tf2/LinearMath/Quaternion.h>
#include <t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.