text stringlengths 5.71k 33.7k |
|---|
#include "algorand.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <regex>
#include "base.h"
#include "mnemonic.h"
void debug(std::string str, std::string file) {
std::ofstream out(file);
out << str;
out.close();
}
void base() {
bytes hello = {'h', 'e', 'l', 'l', 'o'};
assert("... |
/*=========================================================================
medInria
Copyright (c) INRIA 2013 - 2014. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE... |
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
<NAME>, <EMAIL>
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with San... |
/*
* Copyright (C) 2002-2010 The DOSBox Team
*
* 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) any later version.
*
* This p... |
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#includ... |
//===========================================
// Lumina-DE source code
// Copyright (c) 2012-2017, <NAME>
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
#include <QApplication>
#include <QX11Info>
#include <QProcess>
#include <QPro... |
#include <libutl/libutl.h>
#include <libutl/String.h>
#include <libutl/SHA256.h>
#include <libutl/Uint.h>
////////////////////////////////////////////////////////////////////////////////////////////////////
UTL_CLASS_IMPL(utl::SHA256);
UTL_CLASS_IMPL(utl::SHA256sum);
/////////////////////////////////////////////////... |
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <deque>
#include <iomanip>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
#include "bag.h"
#include "boardstate.h"
#include "rack.h"
// Parses the given command line. Returns true on success. All parameters are
// output p... |
/***************************************************************************
file : mycar.cpp
created : Mon Oct 10 13:51:00 CET 2001
copyright : (C) 2001-2006 by <NAME>
email : <EMAIL>
version : $Id: mycar.cpp,v 1.1.2.1 2008/05/27 ... |
// 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 "ofApp.h"
void ofApp::setup(){
ofSetDataPathRoot("../Resources/");
ofSetFrameRate(30);
captureWidth = 640;
captureHeight = 480;
for (int i = 0; i < NR_OF_CAMERAS; i++) {
grabbers[i].setDeviceID(i * 2);
grabbers[i].initGrabber(captureWidth, captureHeight);
... |
/**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* 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.
*/
#include <atomic>
#include <chrono>
#include <memory>
#include <stdio.h>
#include <unis... |
#include "HitPairGeneratorFromLayerPairForPhotonConversion.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "TrackingTools/DetLayers/interface/DetLayer.h"
#include "TrackingTools/DetLayers/interface/BarrelDetLayer.h"
#include "TrackingTools/DetLayers/interface/ForwardDetLayer.h"
#include "RecoTra... |
/*
* @Author: ImGili
* @Description:
*/
#include "EditorLayer.h"
#include "Core/Application.h"
#include "Core/Input.h"
#include "Core/Base.h"
#include "Renderer/FrameBuffer.h"
#include "Renderer/RenderCommand.h"
#include "glm/gtc/type_ptr.hpp"
#include "glm/gtc/matrix_transform.hpp"
#include "Math/Math.h"
#include "... |
/* *****************************************************************************
Copyright (c) 2016-2021, The Regents of the University of California (Regents).
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are... |
// __BEGIN_LICENSE__
// Copyright (C) 2006-2011 United States Government as represented by
// the Administrator of the National Aeronautics and Space Administration.
// All Rights Reserved.
// __END_LICENSE__
/// \file BlobIndexThreaded.cc
///
#include <asp/Core/BlobIndexThreaded.h>
using namespace vw;
using namesp... |
#include <isl/set.h>
#include <isl/union_map.h>
#include <isl/union_set.h>
#include <isl/ast_build.h>
#include <isl/schedule.h>
#include <isl/schedule_node.h>
#include <tiramisu/debug.h>
#include <tiramisu/core.h>
#include <string.h>
#include <Halide.h>
#include "halide_image_io.h"
#include "wrapper_heat2d_dist.h"
us... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2015 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
*
* ... |
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license a... |
/*
Copyright (c) 2012, <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 following dis... |
#include "../include/recoveryManager.h"
#include "../include/bufferManager.h"
#include "../include/trxManager.h"
#include "../include/bpt.h"
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
extern LogManager* log_manager;
extern trxManager* trx_manager;
RecoveryManager* recovery_manager;
RecoveryManager::R... |
/***************************************************
Library for SensorBoard
Feel free to use the code as it is.
<NAME>, <EMAIL>
Embedded Systems
University of Freiburg, Institute of Computer Science
****************************************************/
#include "SensorBoard.h"
SensorBoard::SensorBoard(Stream... |
//////////////////////////////////////////////////////////////////////////////////////////////////
//
// file: bakeProjectors_viewData.cpp
//
// Author <NAME> (Neill3d)
//
//
// GitHub page - https://github.com/Neill3d/MoPlugs
// Licensed under BSD 3-Clause - https://github.com/Neill3d/MoPlugs/blob/master/LICENSE
//
/... |
/*
* Author: <NAME> (i16066)
* Project: pop3client_29
* File: pop3socket.cpp
* Date: 28-02-2021
*/
#include "globals.h"
#include "pop3socket.h"
#include "pystring.h"
#include <gnutls/gnutls.h>
#include <mailutils/mime.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netdb.h>
#... |
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtQml module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commerc... |
#include "CVtoGL.h"
#define GLM_FORCE_RADIANS
#define PI 3.1415926536
#define INF 500000
void GLDraw::CVtoGL()
{
glEnable(GL_TEXTURE_2D);
glDisable(GL_DEPTH_TEST);
//use fast 4-byte alignment (default anyway) if possible
glPixelStorei(GL_UNPACK_ALIGNMENT, (image.step & 3) ? 1 : 4);
//set length o... |
#ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include "CrevasseCalvingModel.H"
#include "IceConstants.H"
#include "AmrIce.H"
#in... |
#include "centurion/color.hpp"
#include <gtest/gtest.h>
#include <iostream> // cout
#include <type_traits> // is_nothrow_X...
#include <utility> // move
#include "serialization_utils.hpp"
static_assert(std::is_final_v<cen::color>);
static_assert(std::is_default_constructible_v<cen::color>);
static_asser... |
#include "initMC.hh"
#include "CommObject.hh"
#include "DecompositionObject.hh"
#include "GlobalFccGrid.hh"
#include "MC_Base_Particle.hh"
#include "MC_Processor_Info.hh"
#include "MC_Time_Info.hh"
#include "MC_Vector.hh"
#include "MaterialDatabase.hh"
#include "MeshPartition.hh"
#include "MonteCarlo.hh"
#include "MpiC... |
/* Modified by <NAME> to fit the E32 graphics architecture */
/* from <NAME>'s original port of 2020 */
/* Original tinyraytracer: https://github.com/ssloy/tinyraytracer */
#include <math.h>
#include "core.h"
#include "uart.h"
/****************************************************************... |
/*
______ ______ __ __ __ ______ __ __
/\___ \ /\ ___\ /\ "-.\ \ /\ \ /\__ _\ /\ \_\ \
\/_/ /__ \ \ __\ \ \ \-. \ \ \ \ \/_/\ \/ \ \ __ \
/\_____\ \ \_____\ \ \_\" \_\ \ \_\ \ \_\ \ \_\ \_\
\/_____/ \/_____/ \/_/ \/_/ \/_/ \/_/ \/_/\/_/
ZGLInpu... |
/* $Id: FaxRecv.c++ 1105 2012-06-14 17:57:49Z faxguy $ */
/*
* Copyright (c) 1990-1996 <NAME>ler
* Copyright (c) 1991-1996 Silicon Graphics, Inc.
* HylaFAX is a trademark of Silicon Graphics
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby ... |
/*
* MIT License
*
* Copyright (c) December 2016
*
* 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, c... |
#include "BoxScene.h"
#include "Mouse.h"
#include "Keyboard.h"
#include <glm/gtc/type_ptr.hpp>
#define NUM_POINT_LIGHTS 4
#define DEG2RAD(angleDegrees) (angleDegrees * M_PI / 180.0)
float pitch = 0;
float yaw = 0;
//Helper functions
glm::mat3 createNormalMatrix(const glm::mat4 & view, const glm::mat4 & model)
{
... |
#include <iostream>
#include "types.h"
using namespace mesos;
ResourceStatisticsPtr toResourceStatistics(double timestamp,
unsigned int* processes,
unsigned int* threads,
double* cpusUserTi... |
/**********************************************************************
// @@@ 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. ... |
//
// Created by <NAME> on 2019-01-29.
//
#include "../include/PPU.h"
#include "../include/cpu.h"
#include "../include/PPUmemory.h"
PPU::PPU(Gamepak * gamepak) {
memory = new PPUmemory(gamepak);
frame_buffer = new uint32_t [SCREEN_X*SCREEN_Y];
}
void PPU::assign_cpu(NesCpu *cpu) {
this->cpu = cpu;
}
PPU::~PPU() ... |
#include "ros/ros.h"
#include <sensor_msgs/PointCloud.h>
#include <sensor_msgs/point_cloud_conversion.h>
#include <sensor_msgs/PointCloud2.h>
#include <pcl_conversions/pcl_conversions.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <cstring>
#include <cmath>
#include <iostream>
#include <fstream>
... |
/*****************************************************************
|
| URL Test Program 1
|
| (c) 2001-2006 <NAME>
| Author: <NAME> (<EMAIL>)
|
****************************************************************/
/*----------------------------------------------------------------------
| includes
+--... |
#include "searches.h"
void printResult(vector<pair<double,double>> weights, clock_t start, clock_t end, vector<int> ids, long long int count){
cout << "Numero de passos: " << count << "\n";
cout << "Itens: " << "\n";
int valueSum = 0;
int weight = 0;
for(int i = 0; i < ids.size(); i++){
cout << "id: " << ids[i... |
/*************************************************************************************
This file is a part of CrashRpt library.
Copyright (c) 2003, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions... |
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#include "fmt/compile.h"
#include "fmt/ranges.h"
#pragma GCC diagnostic pop
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsign-conversion"
#include "magic_enum.hpp"
#pragma GCC diagnostic pop
#include "spdlog/cfg/env.h"
#include "s... |
#include <iostream>
#include <string>
#include <cmath>
#include <windows.h>
#define GLEW_STATIC
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <bass.h>
#include "BlurShader.h"
#include "GlitchShader.h"
#include "BasicShader.h"
#include "PostProcessingShader.h"
#include "ETime.h"
#include "FrameBuffer.h"
#inc... |
// sous mac
// >g++ -std=c++11 -I/usr/local/include/ -lglfw -lGLEW -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_imgcodecs remimaps.cpp -framework OpenGL -oremimaps
// >./vorocell
// Inclut les en-tetes standards
#include <stdio.h>
#include <string>
#include <sstream>
#include <vector>
#include <iostr... |
// Psikyo hardware sprites
#include "psikyo.h"
unsigned char* PsikyoSpriteROM = NULL;
unsigned char* PsikyoSpriteRAM = NULL;
unsigned char* PsikyoSpriteLUT = NULL;
struct PsikyoSprite {
char flip;
char priority;
short palette;
int x; int y;
int xsize; int ysize;
int xzoom; int yzoom;
int address;... |
#include "../inc/Game.h"
//TODO: Add pixel-perfected collision detection
Game::Game(Window *win, Mode mod, Difficulty diff)
:done(false), window(win), scored(false), mode(mod), difficulty(diff),
font(nullptr), scoreTexture(nullptr), background(nullptr), lPad(nullptr), rPad(nullptr), ball(nullptr), hitEffect(nullptr),... |
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/raw_os_ostream.h"
#include "llvm/ADT/StringRef.h"
#include "clang/AST/TemplateBase.h"
#include <nlohmann/json.hpp>
#include "cxx-langstat/Analyses/TemplateInstantiationAnalysis.h"
#... |
#include "colorutils.h"
#include <cmath>
#include <cstdlib>
#include <string>
#include <glm/ext.hpp>
#include <glm/glm.hpp>
#define DegToRad(x) ((x)*(glm::pi<double>())/180)
#define RadToDeg(x) ((x)/(glm::pi<double>())*180)
// XYZ to...
// http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
void ColorCo... |
#include "align.h"
#include <pcl/surface/mls.h>
#include <pcl/io/pcd_io.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <boost/thread/thread.hpp>
#include <pcl/console/parse.h>
bool FINE_FLAG = 1; /*Fine registration*/
bool GLOBAL_FLAG = 0; /*Global alignment*/
bool DENOISING = 0; ... |
#include <gmi_mesh.h>
#include <gmi_null.h>
#include <apfMDS.h>
#include <apfMesh2.h>
#include <apfConvert.h>
#include <apf.h>
#include <PCU.h>
#include <lionPrint.h>
#include <pcu_util.h>
#include <cstdlib>
#include <string.h>
/* tags on vertices */
#define INTERIORTAG 0
#define BOTTOMTAG 1
#define TOPTAG 2
#define P... |
#include <atomic>
#include <future>
#include <igl/file_dialog_open.h>
#include <igl/file_dialog_save.h>
#include <igl/opengl/glfw/Viewer.h>
#include <igl/opengl/glfw/imgui/ImGuiHelpers.h>
#include <igl/opengl/glfw/imgui/ImGuiMenu.h>
#include <igl/writePLY.h>
#include <iostream>
#include <pcp/pcp.hpp>
#include <range/v3... |
/* Copyright 2015 The math21 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 agree... |
extern "C" {
#include "ffmpeg/include/libavcodec/avcodec.h"
#include "ffmpeg/include/libavdevice/avdevice.h"
#include "ffmpeg/include/libavfilter/avfilter.h"
#include "ffmpeg/include/libavformat/avformat.h"
#include "ffmpeg/include/libavutil/avutil.h"
#include "ffmpeg/include/libswscale/swscale.h"
#include "ffmpeg/incl... |
/////////////////////////////////////////////////////////////////////////////
// Name: md5.cpp
// Purpose: MD5 file checksum
// Author: <NAME>
// Created: 2005/07/13
// RCS-ID: $Id: md5.cpp,v 1.5 2005/10/20 16:06:01 frm Exp $
// Copyright: (c) 2005 <NAME>
// Licence: wxWidgets lice... |
#include "image_moments.h"
ImageMoments_features::ImageMoments_features (int minI, int maxI, const ImageMatrix& im, const ImageMatrix& weighted_im)
{
const pixData& I = im.ReadablePixels();
calcOrigins(I);
calcSpatialMoments(I);
calcCentralMoments(I);
calcNormCentralMoments(I);
calcNor... |
#include "mimirHEAD.h"
#include <FS.h> //this needs to be first, or it all crashes and burns...
#include "SPIFFS.h"
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include "time.h"
SPIClass spiSD(HSPI);
#include <WiFi.h>
#include <DNSServer.h>
#include <WebServer.h>
#include <HTTPClient.h>
#include <WiFiManager.h... |
#include "dicom_pch.h"
#include "dicom/data/uri.h"
#include <cctype>
#include <sstream>
using namespace std;
namespace {
using namespace dicom::data;
//--------------------------------------------------------------------------------------------------------
[[nodiscard]] uint8_t ascii_to_lo... |
//************************************************************************
// *
// Copyright (C) 2004 *
// University Corporation for Atmospheric Research *
// All Rights Reserved *
// *
//**********************************************************... |
// VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
// Copyright (C) 1999-2003 Forgotten
// Copyright (C) 2004 Forgotten and the VBA development team
// Copyright (C) 2005-2006 VBA development team
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU... |
#include "frontend/lexer.h"
#include <algorithm>
#include <iostream>
#include <limits>
#include <map>
#include <optional>
#include <set>
#include <string_view>
#include <vector>
namespace {
using namespace cs160::frontend;
using State = int;
// Generate a fresh state
State genState() {
static State nextState = 0;... |
/*#ifdef __MSDOS__
#include "../../MT2D/MT2D_Terminal_Define.h"
#else
#include "../MT2D_Terminal_Define.h"
#endif
#ifdef SDL_USE
*/
#include <MT2D/SDL/MT2D_SDL_Defines.h>
#include <MT2D/SDL/MT2D_SDL_Redefine.h>
#include <MT2D/SDL/MT2D_SDL_Event_Handler.h>
#include <MT2D/MT2D_Debug.h>
/*GLOBAL VARS*/
int FRAMEBUFFER[... |
/*
+--------------------------------------------------------------------+
| libmemcached-awesome - C/C++ Client Library for memcached |
+--------------------------------------------------------------------+
| Redistribution and use in source and binary forms, with or without |
| modificatio... |
/*******************************************************************************
* Copyright (c) 2007, 2008, CerroKai Development
* 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 "MapInstructions.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/Passes/PassBuilder.h"
#include "llvm/Passes/PassPlugin.h"
#include "llvm/Transforms/Utils/ModuleUtils.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Constants.h"
//deb10-llv... |
// -*- C++ -*-
//
// Package: METAlgorithms
// Class: MuonMETAlgo
//
// Original Authors: <NAME>, <NAME> The University of Florida
// Created: August 30, 2007
//
//____________________________________________________________________________||
#include <cmath>
#include <vector>
#include "RecoMET/META... |
//===--- SemaCXXScopeSpec.cpp - Semantic Analysis for C++ scope specifiers-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// Copyright (C) 2011 <NAME>
//
// This file is part of DOLFIN.
//
// DOLFIN 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, either version 3 of the License, or
// (at your option) any later version.
... |
#include "kgd/external/cxxopts.hpp"
#include "../simu/simulation.h"
#include "../config/dependencies.h"
using SID = phylogeny::SID;
using Sex = simu::Plant::Sex;
using Simulation = simu::Simulation;
struct Count {
SID sid;
uint count;
friend bool operator< (const Count &lhs, const Count &rhs) {
if (lhs.co... |
#include <fstream>
#include <iostream>
#include "domain_language/Compiler.h"
Compiler::Compiler(){}
Compiler::~Compiler(){}
void Compiler::parsePrecedence(Precedence precedence){
advance();
// printf("looking for prefix rule for token %s \n", std::string(parser.previous.start, parser.previous.length).c_str());
... |
#define CRASH_ON_ASSERT true
#include <glm/gtc/matrix_transform.hpp>
#include "SDLhelper.h"
#include "TestModel.h"
#include "interpolation.h"
#include "intersection.h"
#include "utilities.h"
#include "camera.h"
using u8 = uint8_t;
using u16 = uint16_t;
using u32 = uint32_t;
using u64 = uint64_t;
using i8 = int8_t... |
#include "QZXing.h"
#include <zxing/common/GlobalHistogramBinarizer.h>
#include <zxing/Binarizer.h>
#include <zxing/BinaryBitmap.h>
#include <zxing/MultiFormatReader.h>
#include <zxing/DecodeHints.h>
#include "CameraImageWrapper.h"
#include "ImageHandler.h"
#include <QTime>
#include <QUrl>
#include <QFileInfo>
#includ... |
/* -------------------------------------------------------------------------------------------------------------------------- */
/* pmergesort-tpool.inl */
/* -----------------------------------------------------------... |
#include <iostream> // input/output
#include <string> // strings
#include <fstream> // input/output on hard drive
#include <list> // list
#include <map> // hash
#include <unordered_map> // unordered hash
#include <unistd.h> // for getopt()
#include <getopt.h> // for getopt() with long option
#include "... |
#include "pch.h"
#include "EdelsbrunnerTubes.h"
#include "..\Common\DirectXHelper.h"
using namespace HvyDX;
using namespace DirectX;
using namespace Windows::Foundation;
EdelsbrunnerTube::EdelsbrunnerTube(const std::shared_ptr<DX::DeviceResources>& device... |
/*
* Copyright (C) 2021 The Android Open Source Project
*
* 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 app... |
/*
*
* Copyright (c) 2003 by FORCE Computers.
* Copyright (c) 2005 by ESO Technologies.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This
* file and program are license... |
// Copyright (c) 2007-2009 Facebook
//
// 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... |
//------------------------------------------------------------------------------
// events-sapp.cc
// Inspect sokol_app.h events via Dear ImGui.
//------------------------------------------------------------------------------
#include "sokol_gfx.h"
#include "sokol_app.h"
#include "sokol_glue.h"
#include "imgui.h"
#de... |
/*
* MIT License
*
* Copyright (c) 2020 Mapless AI, 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,... |
// tractor.cpp
// implementazione dei metodi definiti in tractor.h
#include <stdio.h>
#include <math.h>
#ifdef __APPLE__
#include <OpenGL/gl.h>
#include <GLUT/glut.h>
#else
#include <GL/gl.h>
#include <GL/glu.h>
#endif
#include <vector>
#include "tractor.h"
#include "point3.h"
#include "mesh.h"
// mesh tractor
Me... |
#include <Windows.h>
#include <string>
#include <stdio.h>
#include <tchar.h>
#include <fstream>
#include <iostream>
#include <String>
using namespace std;
#pragma pack(push,1)
struct w3eheader1
{
char head[4];
long version;
char maintile;
long iscustomtiles;
long tilesets;
};
int cliffs;
struct w3eheader3
{
lo... |
/*
This file forms part of hpGEM. This package has been developed over a number of
years by various people at the University of Twente and a full list of
contributors can be found at http://hpgem.org/about-the-code/team
This code is distributed using BSD 3-Clause License. A copy of which can found
below.
Copyr... |
//===- MipsLegalizerInfo.cpp ------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// Name :
// Author : Avi
// Revision : $Revision: #42 $
//
// 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... |
/*
* Copyright (c) 2016, <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... |
/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrOvalEffect.h"
#include "GrFragmentProcessor.h"
#include "GrInvariantOutput.h"
#include "SkRect.h"
#include "glsl/GrGLSLFragmentProcessor.h"
#include "glsl/GrGLSLF... |
#include "System/RaiiSave.h"
#include "System/BoolVec.h"
#include "Inst/HostId.h"
#include "Inst/Cst.h"
#include "SlTrialDef.h"
#include "SurdefList.h"
#include "Wildcard.h"
#include "TypeDef.h"
#include "Varargs.h"
#include "Class.h"
#include "Scope.h"
#include "Def.h"
#include "Vm.h"
#include <cmath>
TypeDef::TypeDe... |
/*
* tokens.cpp
*
* The sorted table of strings and token values
*
* Note: if you insert new keywords, be sure to insert the corresponding
* i_keyword in the i_xxx enum in tokens.h. This enum defines the
* indices used by RTFWrit to output RTF control words.
*
* Original RichEdit 1.0 RTF conver... |
/**
[LICENSE BEGIN]
kyla Copyright (C) 2016 <NAME>
This file is distributed under the BSD 2-clause license. See LICENSE for
details.
[LICENSE END]
*/
#include <CLI/CLI.hpp>
#include "Kyla.h"
#include "KylaBuild.h"
#include <iostream>
#include <iomanip>
#include "Uuid.h"
#include <chrono>
#includ... |
/* -------------------------------------------------------------------------
*
* genam.cpp
* general index access method routines
*
* Portions Copyright (c) 2020 Huawei Technologies Co.,Ltd.
* Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the Un... |
// MIT License
// Copyright (c) 2021 <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, p... |
#pragma warning(disable: 4312)
#include "OpenCL.h"
#include <stdlib.h>
#include <stdio.h>
//#pragma comment(lib, "cuda_runtime_api.lib")
//#pragma comment(lib, "cuda_d3d11_interop.lib")
//#pragma comment(lib, "helper_cuda.lib")
//#pragma comment(lib, "helper_string.lib")
//#pragma comment(lib, "libloaderapi.lib")
//... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of th... |
/*
* menu.cpp
*
* Created: 19/07/2021 17:01:37
* Author: GuavTek
*/
#include "samd21.h"
#include "LEDMatrix.h"
#include "GenericOutput.h"
#include "menu.h"
#include "system_interrupt.h"
enum menu_status_t {
Navigate,
Learning,
EditBend,
SetEnvelope,
SetLFO,
SetRange,
Saving,
SetGroup
} menuStatus;
men... |
#include <ros/ros.h>
#include <std_msgs/Empty.h>
#include <std_msgs/Bool.h>
#include <tf/transform_listener.h>
#include <tf/transform_datatypes.h>
#include <pc_asctec_sim/pc_traj_cmd.h>
#include <pc_asctec_sim/pc_goal_cmd.h>
#include <pc_asctec_sim/pc_state.h>
#include <sensor_msgs/Joy.h>
#include <visualization_ms... |
#include "GridApp.h"
#include "Texture.h"
#include "Font.h"
#include "Input.h"
#include <algorithm>
#include <iostream>
#include <fstream>
#include <list>
using std::cout;
using std::endl;
using std::string;
GridApp::GridApp() {
}
GridApp::~GridApp() {
}
bool GridApp::startup() {
m_currentEditNumber = EDIT_0;
... |
/***********************************************************************************************************************
* *
* libscopeexports ... |
#include "TimeMgr.h"
#include "TOD.h"
#include "RenderOW.h"
#include "RViewPnt.h"
#include "Tex.h"
#include "falclib\include\fakerand.h"
#include "Drawtrcr.h"
#include "Draw2d.h"
#include "Graphics\DXEngine\DXTools.h"
#include "Graphics\DXEngine\DXDefines.h"
#include "Graphics\DXEngine\DXEngine.h"
#include "Graphics\D... |
#include "Generic2.h"
/*!
* Main function to set up Generic2 draw lists.
* This function figures out which vertices belong to which draw settings.
*/
void Generic2::setup_draws() {
if (m_next_free_frag == 0) {
return;
}
m_gs = GsState();
link_adgifs_back_to_frags();
process_matrices();
determine_dra... |
// 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/favicon/favicon_handler.h"
#include "build/build_config.h"
#include <vector>
#include "base/bind.h"
#include "base/bind_he... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.