text stringlengths 5.71k 33.7k |
|---|
/*
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 program is distributed in the hope that it will be usefu... |
/*
* Copyright 2019 Solace 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.
* A copy of the License is located at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* or in the "license" file... |
// Copyright (c) 2013 The Chromium OS 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 "chromiumos-wide-profiling/address_mapper.h"
#include <algorithm>
#include <memory>
#include "base/logging.h"
#include "chromiumos-wide... |
/*
* VERSION: SCS-1.0.1
* DATE: 2013.Sep.1
* AUTHOR: <NAME>
*/
#include <stdio.h>
#include <time.h>
#include <GL/glut.h>
#include <ode/ode.h>
#include "mytime.h"
#include "simulation.h"
#include "key.h"
#include "car.h"
#include "track.h"
#include "common.h"
#include "draw.h"
#include "api.h... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include <KeyValues.h>
#include "cs_weapon_parse.h"
#include "cs_shareddefs.h"
#include "weapon_csbase.h"
#include "icvar.... |
/*
Renderer < VulkanEnvironment
< ModelData < VulkanEnvironment
< modelConfig < VulkanEnvironment
< getModelMatrix callbacks
< Input < Camera
*/
#include <iostream>
#include <cstdlib> // EXIT_SUCCESS, EXIT_FAILURE
#include <iomanip>
#include <map>
#include "renderer.hpp"
#includ... |
/* -*- c++ -*- */
/*
* Copyright 2018 <NAME> <<EMAIL>>
*
* This 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, or (at your option)
* any later version.
*
* This software is distribut... |
#include "RecoLocalCalo/EcalRecProducers/plugins/EcalRecHitWorkerRecover.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/Event.h"
#include "CondFormats/DataRecord/interface/EcalIntercalibConstantsRcd.h"
#include "CondFormats/DataRecord/interface/EcalTimeCalibConstantsRcd.h"
#... |
/** Copyright 2022 < j1okabe > */
#include "M5CoreInk.h"
// https://github.com/mktechlab/co2-sensor-board-scd4x
// https://www.switch-science.com/catalog/7530/
// https://ambidata.io/
/******************************************************************************/
#define UPLOAD_DATA_EN // Enable upload data to A... |
//88-Line 2D Moving Least Squares Material Point Method (MLS-MPM)[with comments]
#define TC_IMAGE_IO // Uncomment this line for image exporting functionality
#include <taichi.h> // Note: You DO NOT have to install taichi or taichi_mpm.
using namespace taichi;// You only need [taichi.h] - see below for instructions... |
#include "elph_qe_to_phoebe_app.h"
#include "bandstructure.h"
#include "eigen.h"
#include "io.h"
#include "qe_input_parser.h"
#include <iomanip>
#include <sstream>
#include <string>
void ElPhQeToPhoebeApp::run(Context &context) {
(void)context;
// actually, we only need the crystal
auto t1 = QEParser::parsePhHar... |
/*
Copyright (c) 2018, WINLAB, Rutgers University, USA
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 ... |
#include <coreutils/file.h>
#include <coreutils/log.h>
#include <coreutils/split.h>
#include <coreutils/utils.h>
#include <crypto/md5.h>
extern "C"
{
#include "drive.h"
#include "gfxoutput.h"
#include "init.h"
#include "initcmdline.h"
#include "lib.h"
#include "machine.h"
#include "maincpu.h"
#include "psid.h"
#includ... |
// license:BSD-3-Clause
// copyright-holders:<NAME>
#include "emu.h"
#include "includes/mexico86.h"
/*
$f008 - write
bit 7 = ? (unused?)
bit 6 = ? (unused?)
bit 5 = ? (unused?)
bit 4 = ? (usually set in game)
bit 3 = ? (usually set in game)
bit 2 = sound cpu reset line
bit 1 = microcontroller reset line
bit 0 = ? (unu... |
/* CirKit: A circuit toolkit
* Copyright (C) 2009-2015 University of Bremen
* Copyright (C) 2015-2017 EPFL
*
* 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, in... |
#include <stdio.h>
#include <csignal>
#include <unordered_map>
#include "args/args.hpp"
#include "dbmanager.h"
#include "debug/allocdebug.h"
#include "debug/backtrace.h"
#include "httpserver.h"
#include "rpcserver.h"
#include "winservice.h"
#include "yaml/yaml.h"
using namespace reindexer_server;
struct ServerConfig {... |
#include <string.h>
#include <cstring>
#include "TChain.h"
#include "TFile.h"
#include "TH1.h"
#include "TTree.h"
#include "TKey.h"
#include "TMath.h"
#include "Riostream.h"
#include <vector>
#include <sstream>
#include "TCanvas.h"
#include "TLegend.h"
#include "TROOT.h"
#include "TPaveStats.h"
#include "TObjArray.h"
#... |
#include "stdafx.h"
#include "RAPID.h"
#include "matvec.h"
__forceinline float fmax(float a, float b, float c)
{
float t = a;
if (b > t) t = b;
if (c > t) t = c;
return t;
}
__forceinline float fmin(float a, float b, float c)
{
float t = a;
if (b < t) t = b;
if (c < t) t = c;
return... |
// ======================================================================== //
// Copyright SCI Institute, University of Utah, 2018
// ======================================================================== //
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#ifdef _WIN32
# undef APIENTRY
# define GLFW_EXPOSE_NATIVE_WIN... |
#include "GLWindow.h"
#include "Utils.h"
#include <QMouseEvent>
#include <QOpenGLContext>
#include <QOpenGLFunctions>
#include <QOpenGLExtraFunctions>
#include <QOpenGLShaderProgram>
namespace
{
static void buildVAOs( const Scene::MeshList& meshList, QOpenGLShaderProgram& shader, DrawList& o_drawList )
{
auto cnt =... |
/**************************************************************
*
* 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 y... |
//--- Compute MD5 checksums.
//--- Copyright notice.
//
// Please see the header file.
//--- Includes.
//
#include <stdio.h>
#include <string.h>
#include "digest-md5.h"
//--- Preprocessor definitions.
//
#define S11 7
#define S12 12
#define S13 17
#define S14 22
#define S21 5
#define S22 9
#define S23 14
#defi... |
#include "bucket.h"
#include "splines.h"
#include "images.h"
#define BUCKET_IMPEDANCE_RATIO (32.0f)
#define BUCKET_PITCH_SCALE (1.0f)
#define BUCKET_PITCH_CENTER (-1.5f)
#define BUCKET_SUSTAIN_POWER (1.0f)
#define BUCKET_ATTACK_POWER (2.0f)
#define BUCKET_ATTAC... |
#include <numerics.hpp>
/* integral_R(K) : compute the integral of K^2 over [-inf, inf]. R(K) is the notation in the literature.
* --- K : Kernel name.
* utility for dpi */
inline double integral_R(const std::string& K) {
if (K == "gaussian") return 1/std::sqrt(4*M_PI);
else if (K == "parabolic") return 0.6;... |
#include <iostream>
#include <fstream>
#include <stdint.h>
#include <math.h>
#include <sys/stat.h>
#include <string.h>
#include "q24.h"
using namespace std;
/**
* A structure representing a die object with eight sides, useful
* for generating random digits between 1 and 8, based off of the
* hash input.
*/
struc... |
// -*- C++ -*-
// -*- coding: utf-8 -*-
//
// Author: <NAME>
// Copyright 2017-2018
//
#include "geometry.h"
#include <cmath>
#include <cstdio>
#include <limits>
#include <utility>
#include <pyre/journal.h>
#include <isce3/core/Basis.h>
#include <isce3/core/Ellipsoid.h>
#include <isce3/core/LUT2d.h>
#include <isce3... |
// NPC.cpp: implementation of the CNpc class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "NPC.h"
#include "vertextypes.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destr... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed in the hope that it will be us... |
/**
* Hyena: Sprint Invierno
* @file SQLExec.cpp - implementation of SQLExec class
* @author <NAME>
* @author <NAME>
* @author <NAME>
* @see "Seattle University, CPSC5300, Spring 2021"
*/
#include "SQLExec.h"
#include "EvalPlan.h"
using namespace std;
using namespace hsql;
// define static data
Tables *SQLExec... |
/*
Cafu Engine, http://www.cafu.de/
Copyright (c) <NAME> and other contributors.
This project is licensed under the terms of the MIT license.
*/
#include "FontGenerator.hpp"
#include "Bitmap/Bitmap.hpp"
#include "FileSys/FileManImpl.hpp"
#include "Templates/Array.hpp"
#include <iomanip>
#include <fstream>
#include <... |
#include <iostream>
#include <fstream>
#include <sstream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include "include/ocv_versioninfo.h"
#include "opencv2/features2d.hpp"
#include "blackjack_fwd.h"
#include <time... |
//
// Created by milinda on 9/8/16.
//
#include "meshBenchmark.h"
void meshBenchMark(char * ptsFile,bool genPts,unsigned int numPts,unsigned int dim, unsigned int maxDepth,unsigned int distribution,double tol,unsigned int sf_k,unsigned int options,char * prefix, MPI_Comm comm)
{
int rank,npes;
MPI_Comm_ran... |
#include <algorithm>
#include <cassert>
#include <iostream>
#include <iterator>
#include <sstream>
#include <string>
#include <vector>
#include <graphtyper/constants.hpp>
#include <graphtyper/graph/var_record.hpp>
#include <graphtyper/utilities/logging.hpp>
std::ostream & operator<<(std::ostream & os, std::vector<cha... |
/* -*- tab-width: 4; -*- */
/* vi: set sw=2 ts=4 expandtab: */
/*
* Copyright 2018-2021 <NAME>.
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @internal
* @file InstancedSampleBase.cpp
* @~English
*
* @brief Base for samplesusing instancing such as array texture display.
*
* @author <NAME>, www.edgewise-con... |
#include "stdafx.h"
#include <DbgHelp.h>
#include <string>
#include <tchar.h>
#ifndef INITGUID
#define INITGUID
#include <dxdiag.h>
#undef INITGUID
#else
#include <dxdiag.h>
#endif
#include <comdef.h>
#include <Wbemidl.h>
#include "KG_InfoSender.h"
#include "KG_HttpClient.h"
#include "Engine/md5.h"
#i... |
/*
==============================================================================
GalacticProcessor.cpp
Created: 20 Apr 2021 6:03:59pm
Author: Syl
==============================================================================
*/
#include "GalacticProcessor.h"
GalacticProcessor::GalacticProcessor()
... |
#include "sm-config.h"
#include "sm-log-alloc.h"
#include "stopwatch.h"
#include "../benchmarks/bench.h"
#include "../macros.h"
#include "../util.h"
using namespace RCU;
namespace {
uint64_t
get_starting_byte_offset(sm_log_recover_mgr *lm)
{
auto dlsn = lm->get_durable_mark();
auto *sid =... |
/*
* 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 requir... |
#include "utils.hpp"
std::vector<std::string> split(const std::string& s, char delimiter)
{
std::vector<std::string> tokens;
std::string token;
std::istringstream tokenStream(s);
while (std::getline(tokenStream, token, delimiter))
{
tokens.push_back(token);
}
return tokens;
}
std::vector<std::string> split(c... |
#include <cstdlib>
#include <string>
#include <algorithm>
#include "rf/utils.h"
#include "rf/context.h"
#include "rf/ui.h"
#include "definitions.h"
#include "Systems/water.h"
#include "Systems/atmosphere.h"
#include "Systems/planet.h"
#include "Game/sun.h"
#include "tests.h"
// PLATFORM
int RadarMain(int argc, char... |
#include "qe_project.h"
#include "qe.h"
#include "th_rewriter.h"
#include "smt2parser.h"
#include "arith_decl_plugin.h"
#include "reg_decl_plugins.h"
#include "arith_rewriter.h"
#include "ast_pp.h"
#include "qe_util.h"
#include "smt_context.h"
#include "expr_abstract.h"
#include "model_smt2_pp.h"
static expr_ref parse... |
/* Hackathon_demo1_plugin.cpp
* This is a test plugin, you can use it as a demo.
* 2019-5-16 : by YourName
*/
#include "v3d_message.h"
#include <vector>
#include <QString>
#include <iostream>
#include <fstream>
#include <QFile>
#include "Hackathon_demo1_plugin.h"
#include <basic_surf_objs.h>
#includ... |
/*
***************************************************************************************
MJM -2021-
canvas / bitmap Lib
=======================================================================================
File: canvas.hpp
Notes:
=================================================... |
//
// Created by nathan on 1/17/17.
//
extern "C" {
#include <noise.h>
}
#include <armadillo>
#include <queue>
#include "chunk.h"
#include "../util.h"
#include "../item.h"
#include "../draw.h"
#include "../cube.h"
#include "ChunkMesh.h"
#include "../model.h"
#include "../actors/World.h"
#include "../lighting/Scanl... |
#define _USE_MATH_DEFINES
#include <cmath>
#define EXIT_ON_CL_ERROR
#include "util/pico_json/picojson.h"
#include "util/cereal/archives/binary.hpp"
#include "sph_simulation.h"
#include "common/util.h"
const size_t kPreferredWorkGroupSizeMultiple = 64;
const std::string BUFFER_KERNEL_FILE_NAME = "kernels/sph.cl";
... |
/** @file
A brief file description
@section license License
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 und... |
#include "DNN.h"
#include "glog/logging.h"
#include "tiny_dnn/tiny_dnn.h"
#include "lib/random.h"
#include "lib/io/fstream.h"
namespace {
tiny_dnn::vec_t doubleVectorToVector(const DoubleVector& features) {
tiny_dnn::vec_t fFeatures(features.size());
for (size_t i = 0; i < features.size(); ++i) {
fFe... |
/* Copyright 2017 Gibbon aka 'atsb'
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 t... |
/**
* @file mkgraph.cc
*
* @section LICENSE
*
* The MIT License
*
* @copyright Copyright (c) 2017 Intel Corporation
*
* 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 rest... |
#include "Builder.h"
#include "util/Filesystem.h"
#include "llvm/IR/Module.h"
#include "llvm/PassManager.h"
#include "llvm/Assembly/PrintModulePass.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/raw_os_ostream.h"
#include "llvm/Bitcode/ReaderWriter.h"
#include <fstream>
void Builder::build(Module& mod... |
//===--- ASTVerifier.cpp - AST Invariants Verifier --------------*- C++ -*-===//
// Part of the Sora project, licensed under the MIT license.
// See LICENSE.txt in the project root for license information.
//
// Copyright (c) 2019 <NAME>
//===----------------------------------------------------------------------===//
... |
/** @file
@brief Implementation
@date 2014
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2014 Sensics, 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 L... |
//===--- EmitClass.cpp - ASTtool class source emitter -----------------*- C++
//-*-===//
//
// Part of the M2Lang Project, under the Apache License v2.0 with
// LLVM Exceptions. See LICENSE file for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------------... |
#include "device.h"
#define WIN32_LEAN_AND_MEAN
#include "common/exceptions.h"
#include "storage/signal.h"
#include <windows.h>
#include "daqx/Daqx.h"
#include "json/single_include/nlohmann/json.hpp"
#include <string>
using namespace device;
using nlohmann::json;
//====================PUBLIC====================
std::... |
/**
* @file video_display/rpi4_out.cpp
* @author <NAME> <<EMAIL>>
*/
/*
* Copyright (c) 2021 CESNET, z. s. p. o.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, is permitted provided that the following conditions
* are met:
*
* 1. Redistribut... |
/*
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
*/
#include "ISF_FastCaloSimEvent/TFCS1DFunctionSpline.h"
#include "ISF_FastCaloSimEvent/TFCS1DFunctionInt32Histogram.h"
#include <algorithm>
#include <iostream>
#include "TMath.h"
#include "TCanvas.h"
#include "TH2F.h"
#include "TRandom.h"
#... |
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <iostream>
#include <sstream>
#include <map>
#include <nodge/BasicGraph.hh>
#include <benejson/pull.hh>
#include "Algorithms.hh"
#include "ModelWriter.hh"
#include "posix.hh"
using BNJ::PullParser;
struct ParseState {
uin... |
//*****************************************************************************
// Copyright 2017-2018 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://w... |
/*
Copyright 2014 <NAME>, SAP AG
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 writing, software
... |
#include "QD3D.h"
#include "PommeDebug.h"
#include "Pomme.h"
#include "3DMFInternal.h"
#if !(POMME_DEBUG_3DMF)
#define printf(...) do{}while(0)
#endif
class Q3MetaFile_EarlyEOFException : public std::exception
{
public:
const char *what() const noexcept override
{
return "Early EOF in 3DMF";
}
};
static void A... |
/**
* @file llmodelloader.cpp
* @brief LLModelLoader class implementation
*
* $LicenseInfo:firstyear=2004&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Les... |
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... |
///////////////////////////////////////////////////////////////////////////
//
// Copyright 2010
//
// This file is part of starlight.
//
// starlight 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 Found... |
//
// Created by rsn8887 on 02/05/18.
#include <psp2/kernel/processmgr.h>
#include <psp2/touch.h>
#include <psp2/display.h>
#include "imgui_vita_touch.h"
#include <string.h>
#define SDL_BUTTON_LEFT 0
#define SDL_BUTTON_RIGHT 1
typedef int Uint8;
static int *touchmouse_x;
static int *touchmouse_y;
static bool *touch... |
// 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/chromeos/gdata/gdata_files.h"
#include <vector>
#include "base/utf_string_conversions.h"
#include "base/platform_file.h"
#i... |
#include "halley/core/graphics/painter.h"
#include "halley/core/graphics/render_context.h"
#include "halley/core/graphics/render_target/render_target.h"
#include "halley/core/graphics/material/material.h"
#include "halley/core/graphics/material/material_definition.h"
#include "halley/core/graphics/material/material_par... |
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <iostream>
#include <string>
#include "gui.h"
#include "core.h"
#include "label.h"
const int WIN_WIDTH = 480;
const int WIN_HEIGHT = 640;
const int MAX_CUSTOM_WIDTH = 30;
const int MAX_CUSTOM_HEIGHT = 24;
const int MIN_CUSTOM_WIDTH = 8;
const int ... |
// __BEGIN_LICENSE__
// Copyright (c) 2006-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NASA Vision Workbench is licensed under the Apache License,
// Version 2.0 (the "License"); you may not use this f... |
#include "EJConvert.h"
NSString * JSValueToNSString( JSContextRef ctx, JSValueRef v ) {
JSStringRef jsString = JSValueToStringCopy( ctx, v, NULL );
if( !jsString ) return NULL;
size_t stringUTF8Size = JSStringGetMaximumUTF8CStringSize(jsString);
char* c_string = (char*)malloc(stringUTF8Size);
JSS... |
#include <filesystem>
#include <unordered_map>
#include <unordered_set>
#include <algorithm>
#include <vector>
#include <array>
#include <string>
#include <iostream>
#include <regex>
#include <variant>
namespace std {
namespace fs=filesystem;
}
namespace {
size_t start_output_index=1;
std::unordered_... |
/********************* */
/*! \file theory_uf.cpp
** \verbatim
** Original author: <NAME>
** Major contributors: <NAME>, <NAME>
** Minor contributors (to current version): <NAME>, <NAME>
** This file is part of the CVC4 project.
** Copyright (c) 2009-2013 Ne... |
#include <tdme/utils/PathFinding.h>
#include <algorithm>
#include <string>
#include <map>
#include <stack>
#include <tdme/engine/Transformations.h>
#include <tdme/engine/physics/Body.h>
#include <tdme/engine/physics/World.h>
#include <tdme/engine/primitives/BoundingVolume.h>
#include <tdme/engine/primitives/OrientedB... |
#include "app_helper.hpp"
#include <cstdio>
#include <fstream>
#include <cstdint>
#include <string>
#include <complex>
TEST(Split, SimpleByToken) {
auto out = CLI::detail::split("one.two.three", '.');
ASSERT_EQ((size_t)3, out.size());
EXPECT_EQ("one", out.at(0));
EXPECT_EQ("two", out.at(1));
EXPEC... |
// D3D_driver.cpp
//
#include "stdafx.h"
#include <string.h>
#include <d3d9.h>
#include <d3dx9core.h>
#include "util.h"
#include "win32_util.h"
#include "PixelTypes.h"
#include "d3d_system.h"
#include "D3D_driver.h"
static COLORREF const CLR_WHITE = D3DCOLOR_ARGB( 255, 255, 255, 255 );
D3DXFONT_DESC D3D_driver::m_d3... |
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/opencv.hpp"
#include <iostream>
#include <fstream>
#include <sstream>
using namespace std;
using namespace cv;
const String filePath = "../images/hippocampal/";
const String labelFilePath = "../labels/";
const String outputFilePath = "../extracted_features/";
S... |
#include "assignment5.hpp"
#include "interpolation.hpp"
#include "parametric_shapes.hpp"
#include "airplane.hpp"
#include "config.hpp"
#include "core/Bonobo.h"
#include "core/FPSCamera.h"
#include "core/helpers.hpp"
#include "core/Misc.h"
#include "core/ShaderProgramManager.hpp"
#include <imgui.h>
#include <external/i... |
#include <iostream>
#include <stdio.h>
#include <cstdio>
#include <stdlib.h>
#include <cstdlib>
#include <ctime>
#include <math.h>
#include <windows.h>
#include <time.h>
#include <iomanip>
#include <string>
#include "mtrand/mtrand.h"
#include "fastonebigheader.h"
#define PI 3.14159265
using namespace std;
//Usage: g... |
/*
* Copyright (c) 2015, Nagoya University
* 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 ... |
#include "stdafx.h"
#include <stdlib.h>
#include <cstdlib>
#include <cassert>
#include <sstream>
#include <fstream>
#include <vector>
#include <map>
#include <windows.h>
#include <cstdio>
#include <iostream>
#include <Gl/GL.h>
#include <GL/GLU.h>
#include <GL/glut.h>
#include "tiny_obj_loader.h"
using namespace std;
... |
// Scintilla source code edit control
/** @file LexFlagShip.cxx
** Lexer for Harbour and FlagShip.
** (Syntactically compatible to other xBase dialects, like Clipper, dBase, Clip, FoxPro etc.)
**/
// Copyright 2005 by <NAME>
// Copyright 2010 by Xavi <jarabal/at/gmail.com> (Harbour)
// Copyright 1998-2003 by ... |
#include "../include/Tests.h"
#include "../include/ProjectTest.h"
#include "../include/SubTests.h"
#include <iostream>
#include <typeinfo>
#include <fstream>
#include <math.h>
#include <sstream>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <vector>
using std::vector;
using st... |
/*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... |
#include <cassert>
#include <map>
#include <sstream>
#include "ArtifactParser.h"
#include "AccessoryArtifactData.h"
#include "AccessoryType.h"
#include "ArmorMaterialType.h"
#include "ArmorType.h"
#include "ArtifactData.h"
#include "BodyArmorArtifactData.h"
#include "ConsumableType.h"
#include "HeavyArmorMaterial.h"
... |
/*************************************************************************/
/* doc_data.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include "farver.h"
#include "Comparison.h"
#include <memory>
//------------------------------------------------------------------------------
//--- Conversions --------------------------------------------------------------
//------------------------------------------------------------------------------
// this is wh... |
//
// AvatarHashMap.cpp
// libraries/avatars/src
//
// Created by <NAME> on 1/28/2014.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "AvatarHashMap.h"
#include <Qt... |
// -*- coding: utf-8 -*-
// Copyright (C) 2006-2011 <NAME> <<EMAIL>>
//
// This program 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... |
/*
MIT License
Copyright (c) 2018-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, di... |
// This synthetic multi-thread scheduler will create "fake" task ids, and
// queries the DB to find a worker. There won't be actual worker or load
// generator.
// The goal is to benchmark the basic latency, throughput, and scalability of
// parallel scheudlers.
#include <getopt.h>
#include <atomic>
#include <string>... |
#include <iostream>
#include <vector>
#include <algorithm>
#include <tuple>
#include <fstream>
#include "json.hpp"
using namespace std;
using json = nlohmann::json;
#define X first
#define Y second
using number = long long;
using P = pair<number, number>;
using pose = vector<P>;
struct Problem {
vector<P> hole;... |
// Created by <NAME> on 13.12.2019
// Copyright 2019 ETH Zurich
#ifdef _OPENMP
#include <omp.h>
#endif
#include <iostream>
#include <memory>
#include <stdexcept>
#include "distr.h"
#include "dump/raw.h"
#include "dump/xmf.h"
#include "reduce.h"
#include "report.h"
#include "util/filesystem.h"
#include "util/format.h... |
/* Copyright (c) 2012 the authors listed at the following URL, and/or
the authors of referenced articles or incorporated external code:
http://en.literateprograms.org/Red-black_tree_(C)?action=history&offset=20120524204657
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software an... |
/* file: neural_net_dense_asynch_distributed_mpi.cpp */
//==============================================================
//
// SAMPLE SOURCE CODE - SUBJECT TO THE TERMS OF SAMPLE CODE LICENSE AGREEMENT,
// http://software.intel.com/en-us/articles/intel-sample-source-code-license-agreement/
//
// Copyright 2017 Intel Co... |
// https://open.gl/depthstencils
// g++ -std=c++17 -Wextra -Wall -Werror -pedantic 2_reflection.cpp -lglfw -lGLEW
// -lGL -lSOIL
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <SOIL/SOIL.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <chrono>
#includ... |
/*
Copyright (c) 2017-2019,
Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable Energy, LLC. See
the top-level NOTICE for additional details. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
*/
#include "gtest/gtest.h"
#include "helics/core/BasicHandleInfo.hpp"
#... |
//
// SingleShotDectector.cpp
//
//
// Created by tim on 18/04/2017.
//
//
#include "SingleShotDetector.hpp"
#include "timer.hpp"
#include "log.hpp"
#include <fstream>
#include <memory>
#include "tensorflow/cc/client/client_session.h"
#include "tensorflow/cc/ops/standard_ops.h"
#include "tensorflow/core/framewo... |
/*
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... |
/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2004-2009 Kitware, Inc.
Copyright 2004 <NAME> (<EMAIL>)
Copyright 2013 <NAME> (<EMAIL>)
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Co... |
#include "ter.h"
#include <cstdio>
#include <cassert>
#include <iostream>
#include <limits>
#include <sstream>
#include <tr1/unordered_map>
#include <set>
#include <valarray>
#include <boost/functional/hash.hpp>
#include <stdexcept>
#include "tdict.h"
const bool ter_use_average_ref_len = true;
const int ter_short_cir... |
#include "gtest/gtest.h"
#include "LEMathCommon.h"
#include "LEFloatVector2.h"
#include "LEFloatVector3.h"
#include "LEFloatVector4.h"
#include "LEQuaternion.h"
#include "LEIntVector2.h"
#include "LEIntVector3.h"
#include "LEIntVector4.h"
#include "LEFloatMatrix4x4.h"
#define EXPECT_MATRIX_NEAR(a, b)\
EXPECT_NEAR(a.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.