text stringlengths 5.71k 33.7k |
|---|
#include "graphics/culling/culling.h"
#include "graphics/culling/build_bvh.h"
#include <glm/vec4.hpp>
#include <glm/glm.hpp>
#include "graphics/renderer/renderer.h"
#include "graphics/rhi/pipeline.h"
#include "components/transform.h"
#include "graphics/assets/assets.h"
#include "graphics/renderer/model_rendering.h"
#in... |
/*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
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 condit... |
//
// Created by Nikita on 18.11.2020.
//
//#include <easy/profiler.h>
#include "Window/Window.h"
#include <Debug.h>
#include <iostream>
//#include <GUI/ICanvas.h>
#include <GUI/old/GUIWindow.h>
#include <ResourceManager/ResourceManager.h>
#include <glm/gtx/string_cast.hpp>
#include <Utils/StringUtils.h>
using na... |
/*
Copyright NTU CSIE CMLAB 2005 - 2012
Distributed under the Boost Software License, Version 1.0.
(See accompanying file ../../../../LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#include <stdexcept>
#include <numeric>
#ifdef _MSC_VER
#pragma warning(disable:4267 4996)
#endif
#include <cstdio>... |
/* vim:set tw=78: set sw=4: set ts=4: */
/**
*
*
* RESCUER - IST-2003-511492 (c) 2004-2008
*
* Improvement of the Emergency Risk Management through Secure Mobile
* Mechatronic Support to Bomb Disposal and Rescue Operations
*
* @file UDPGenerator.cpp
* @brief Sends received UDP packets.
* @v... |
#include "Standard.h"
#include "Scene_MainMenu.h"
#include "Application.h"
#include "Resources.h"
#include "Scene_MGZ.h"
#include "S3Object.h"
#include "LevelScene.h"
#include "Scene_CNZ.h"
#define Z_MID 0
#define Z_FRONT -1
#define Z_BACK 1
#define T(name) App->Textures[name]
#define S(name) App->Sprites[name]
// U... |
#include <verilated.h>
#include <iostream>
#include <stdio.h>
#include VERILATORFILE
#include <queue>
#include "harness.h"
#include <sys/time.h>
vluint64_t main_time = 0; // Current simulation time
// This is a 64-bit integer to reduce wrap over issues and
// allow modulus. You can also use a double, if you wi... |
/**********************************************************************************/
/* This file is part of Ignimbrite project */
/* https://github.com/EgorOrachyov/Ignimbrite */
/****************************************************************... |
#include <iostream>
#include <string>
#include <GL/glew.h>
#include <GL/glut.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glext.h>
#include <cstring>
#include <stdio.h>
#include "vbo.h"
#include "texture.h"
#include "mmio.h"
/*
External variables
*/
extern int g_n_vcycle_count;
extern int... |
#include <lalr/ParserStateMachine.hpp>
#include <lalr/ParserState.hpp>
#include <lalr/ParserTransition.hpp>
#include <lalr/ParserSymbol.hpp>
#include <lalr/ParserAction.hpp>
#include <lalr/LexerStateMachine.hpp>
#include <lalr/LexerState.hpp>
#include <lalr/LexerTransition.hpp>
#include <lalr/LexerAction.hpp>
using n... |
/******************************************************************************
* Copyright 2016-2017 Cisco Systems, Inc. *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
... |
#pragma once
#include "ModuleSceneGame.h"
#include "Application.h"
#include "ModuleRender.h"
#include "ModuleInput.h"
#include "ModuleTextures.h"
#include "ModuleAudio.h"
#include "ModuleFadeToBlack.h"
#include "Cordinates.h"
#include "ModuleUi.h"
#include "ModulePlayer.h"
ModuleSceneGame::ModuleSceneGame(Application*... |
/* Wake Language Server Protocol implementation
*
* Copyright 2020 SiFive, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You should have received a copy of LICENSE.Apache2 along with
* this software. If not, you may o... |
//
// Created by JunhaoW on 2020/12/12.
//
#include "gui.h"
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <imgui/imgui_impl_glfw.h>
#include <imgui/imgui_impl_opengl3.h>
#include "../forker_engine.h"
#include "../core/resource_manager.h"
#include "../core/cube.h"
// constants
const char* IMGUI_FO... |
#include "TransformFusion.h"
#include <nav_msgs/Odometry.h>
using namespace std;
// Constructor
TransformFusion::TransformFusion(ros::NodeHandle n) : n_(n) {}
//init
void TransformFusion::init() {
// Create private node handle
ros::NodeHandle nh("~");
// Set noise parameters
gtsam::Vec... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
// Copyright (c) 2020 The PIVX developers
// Copyright (c) 2021- The ORO developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php.
#include "sapling/sapling_operation.h"
#include "coincontrol.h"
#include "net.h" // for g_conn... |
// 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 "ui/base/resource/data_pack.h"
#include <errno.h>
#include <algorithm>
#include <set>
#include <utility>
#include "base/command_line.h"
#in... |
#include "mpi.h"
#include "fem.h"
static MPI_Request *mpi_out_requests = NULL;
static MPI_Request *mpi_in_requests = NULL;
static int Nmess = 0;
void MaxwellsRun3d(Mesh *mesh, double FinalTime, double dt, double *Hx, double *Hy, double *Hz, double *Ex, double *Ey, double *Ez, float *vgeo, float *mapinfo, float *sur... |
#include "visualization.h"
using namespace ros;
using namespace Eigen;
ros::Publisher pub_odometry, pub_latest_odometry;
ros::Publisher pub_path, pub_loop_path;
ros::Publisher pub_point_cloud, pub_margin_cloud;
ros::Publisher pub_key_poses;
ros::Publisher pub_camera_pose;
ros::Publisher pub_camera_pose_visual, pub_po... |
#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
#define WINDOWS_LEAN_AND_MEAN // Please, not too much windows shenanigans
#endif
// Standard libs
#include <string>
#include <cstdio>
// GLM for maths
#define GLM_FORCE_PURE
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
// T... |
/*
* StEmcOfflineCalibrationElectronAnalysis.cxx
* <NAME>, University of Kentucky
* June 24, 2014
*
* This will combine old methods for creating
* ring, crate, and crateslice E/p histograms
* for the BEMC absolute calibration.
*/
// User defined includes
#include "StEmcOfflineCalibrationElectronAnalysis.h"
#in... |
/**
* Open Space Program
* Copyright © 2019-2020 Open Space Program Project
*
* 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 deal
* in the Software without restriction, including without li... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
#include <iomanip>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// Set is_initialized_ flag
is_initialized_ = fal... |
/*
Copyright (C) 2018 <NAME> Inc.
This file is part of the pfxbrick python module.
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... |
/**
Copyright 2018 Chia Network Inc
Modifications copyright (C) 2019 <NAME>
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 applica... |
#include "AnalysisDataFormats/TopObjects/interface/TtDilepEvtSolution.h"
#include "DataFormats/Math/interface/deltaR.h"
#include "DataFormats/Candidate/interface/Candidate.h"
#include "FWCore/Framework/interface/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/MessageLogger/interface/Messag... |
/*
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 distributed in the... |
//===-- lib/CodeGen/GlobalISel/InlineAsmLowering.cpp ----------------------===//
//
// 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
//
//===---------------------------... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may obtain a copy of... |
/*
MIT License
Copyright (c) 2019 <NAME> <<EMAIL>>
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, cop... |
/*
* Copyright 2019 Google LLC.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/tessellate/GrStencilPathShader.h"
#include "src/gpu/glsl/GrGLSLGeometryProcessor.h"
#include "src/gpu/glsl/GrGLSLVarying.h"
#include "src/gpu/glsl/GrGLSLVer... |
#include "model_loader.hpp"
#include <algorithm>
#include <cctype>
#include <cmath>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#define DATA_PER_VERTEX 10 // 3 coords + 3 normal + 4 color
#define MAX_COORDINATE 1
ModelLoader::ModelLoader ()
: is_loaded_ (false)
, sca... |
/*
Copyright (c) 2009-2011 250bpm s.r.o.
Copyright (c) 2007-2009 iMatix Corporation
Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file
This file is part of 0MQ.
0MQ is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public ... |
#include "spritecontroller.h"
#include <QInputEvent>
#include <QOpenGLWidget>
#include <QDebug>
#include <components/camera.h>
#include <components/actor.h>
#include <components/transform.h>
#include <editor/handles.h>
#include <editor/handletools.h>
#include "controllers/editorpipeline.h"
SpriteController::Sprite... |
#pragma once
//
// ofApp.h
// bridge
//
// Created by <NAME> on 30/08/2018.
//
#include "ofxAssimpModelLoader.h"
#include "ofxImGui.h"
#include "Mapamok.hpp"
#include "DraggablePoints.hpp"
#include "Projector.hpp"
#include "ofAutoShader.hpp"
#include "ofxPBR.h"
#include "World.hpp"
#include "ViewPlane.hpp"
#includ... |
/***************************************************************************
file : pref.cpp
created : Sat Apr 29 16:51:03 CEST 2000
copyright : (C) 2000 by <NAME>
email : <EMAIL>
version : $Id: pref.cpp,v 1.19.2.5 2012/02/09 22:36... |
// ****************************************************************************
//
// Copyright (c) 2014, <NAME>, <NAME>, Johns Hopkins University
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following condi... |
// Preprocessor Directives
#define STB_IMAGE_IMPLEMENTATION
// Local Headers
#include "glitter.hpp"
#include "shader.h"
#include "camera.h"
// Console Color
#include "consoleColor.hpp"
// System Headers
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/gtc/matrix_transform.hpp>
// Standard Headers
//#inc... |
/*
* Copyright 2021 Assured Information Security, 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 a... |
#include <QFileDialog>
#include "YooIRIS.h"
#include "VASIR/EyeDetection.h"
#include "VASIR/ImageQuality.h"
#include "VASIR/MatchAlg.h"
#include "VASIR/EyeRegionExtraction.h"
#include "Analysis/Analysis.h"
#include "Analysis/GetROC.h"
#if _MSC_VER
#ifndef sprintf
#define sprintf sprintf_s
... |
/*
* strategy_plfrompos.cpp
*
* Created on: 18. 10. 2019
* Author: ondra
*/
#include "strategy_plfrompos.h"
#include <cmath>
#include <imtjson/object.h>
#include <imtjson/string.h>
#include "../shared/logOutput.h"
#include "sgn.h"
using ondra_shared::logDebug;
using ondra_shared::logInfo;
double Strategy... |
// Copyright (c) 2017-2020, University of Tennessee. All rights reserved.
// SPDX-License-Identifier: BSD-3-Clause
// This program is free software: you can redistribute it and/or modify it under
// the terms of the BSD 3-Clause license. See the accompanying LICENSE file.
#include "test.hh"
#include <string>
// ----... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
/*++
Module Name:
errorstrings.cpp
Abstract:
Conversion of PAL error code to string
Revision History:
--*/
#include "pal/palinternal.h"
#inclu... |
/* The fundamental trick: the 4x4 board is represented as a 64-bit word,
* with each board square packed into a single 4-bit nibble.
*
* The maximum possible board value that can be supported is 32768 (2^15), but
* this is a minor limitation as achieving 65536 is highly unlikely under normal circumstances.
*
* ... |
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include "../SVICores.h"
#include "SVITexture.h"
#include "SVITextureManager.h"
#include "SVIRenderer.h"
#include "../NativeInterface/nativeSVIImage.h"
#define IS_POWER_OF_TWO(x) ((x != 0) && ((x & (x - 1)) == 0)) ? SVITRUE : SVIFALSE
jmp_buf g_jumper... |
#include <utility>
#include <sys/mman.h>
#include <arrow/api.h>
#include <arrow/ipc/api.h>
#include <fletcher/fletcher.h>
#include <fletcher/context.h>
#include <fletcher/platform.h>
#include <fletcher/kernel.h>
#include "./log.h"
#include "./opae_trip_report_impl.h"
/// Return Bolson error status when Fletcher error... |
/*
###############################################################################
# If you use PhysiCell in your project, please cite PhysiCell and the version #
# number, such as below: #
# ... |
/* SCRUB - transpose a mono input signal using sync interpolation
p0 = output start time
p1 = input start time
p2 = output duration (time to end if negative)
p3 = amplitude multiplier
p4 = transposition factor (literal)
p5 = sync width in samples
p6 = sync oversampling
p7 = input channel [optio... |
// Copyright 2019 The MWC Developers
//
// 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... |
/*! \file mexnetwork.cpp
** \brief Implementation of Network
*/
#include "mexnetwork.h"
#include "mexrecorder.h"
#include "csimlist.h"
#include "csimerror.h"
#include "csimmex.h"
/* *********** BEGIN MICHAEL PFEIFFER ********* */
#include "readout.h"
#include "physicalmodel.h"
/* *********** END MICHAEL PFEIFFER ***... |
/****************************************
* NDS NeHe Lesson 10 *
* Author: Dovoto *
****************************************/
// include your ndslib
#include <nds.h>
#include <malloc.h>
#include <stdio.h>
//needed to load pcx files
#include <nds/arm9/image.h>
#include <nds/arm9/trig_lut.h>
#include... |
// Peaberry CW - Transceiver for Peaberry SDR
// Copyright (C) 2015 <NAME> AE9RB
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any... |
#include <iostream>
#include "Lazynput/LazynputDb.hpp"
#include <math.h>
#include <SFML/Graphics.hpp>
#include <functional>
#ifdef LAZYNPUT_USE_SDL_WRAPPER
#include <SDL2/SDL.h>
#include "Lazynput/Wrappers/SdlWrapper.hpp"
#undef main
#else
#include "Lazynput/Wrappers/SfmlWrapper.hpp"
#endif
using namespace Lazynput::... |
// Copyright (C) 2019-2020 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
// This file is dedicated to testing vendor o... |
#pragma once
#include <vulkan/vulkan.h> // Vulkan
#include <optional> // std::optional
#include <string.h> // strcmp
#include <assert.h> // assert
#include <cmath> // ceil
#include <variant> // std::variant
#include <array> // std::array
#include <numeric> // std::accumulate
#include <algorithm> // std::for_each
#incl... |
/*
* 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 opti... |
//
// 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,... |
/*******************************************************************************
* Copyright 2021 Intel Corporation
*
* Licensed under the BSD-2-Clause Plus Patent License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource... |
#include "stdhdr.h"
#include "Object.h"
#include "simmover.h"
#include "camp2sim.h"
#include "team.h"
#include "MsgInc\TrackMsg.h"
#include "RadarDigi.h"
#include "campbase.h"
#include "simmath.h"
#include "Graphics\Include\drawbsp.h" // 2002-02-26 S.G.
#include "aircrft.h"
extern int g_nShowDebugLabels; // 2002-02-26... |
/*
Copyright (c) 2019 Trashbots, Inc. - SDG
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, distri... |
/*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... |
#include "drive/controller.h"
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <sys/time.h>
#include "drive/config.h"
using Eigen::Vector3f;
DriveController::DriveController() {
ResetState();
if (!V_[0].Init("vf4_1.bin")) {
perror(
"*** WARNING: no vf4_1.bin (value function) found, ... |
#include "demoloop.h"
#include "graphics/3d_primitives.h"
#include "graphics/mesh.h"
#include "helpers.h"
#include "graphics/shader.h"
#include <glm/gtx/rotate_vector.hpp>
using namespace std;
using namespace demoloop;
const uint32_t CYCLE_LENGTH = 10;
const static std::string shaderCode = R"===(
uniform mediump floa... |
#include "Model.h"
const int Model::meshTriangleName = 100;
Model::Model(void) : Resource() {
vertexes = nullptr;
uv_maps = nullptr;
normals = nullptr;
indexes = nullptr;
material = nullptr;
shader = nullptr;
fileName = "";
numVertices = 0;
numIndexes = 0;
for (int i = 0; i < ... |
/*********************************/
/* CS 590CGS Lab framework */
/* (C) <NAME> 2020 */
/* bbenes ~ at ~ purdue.edu */
/* Press +,- to add/remove points*/
/* r to randomize */
/* s to change rotation */
/* c to render curve */
/* t to render tangents */
/*... |
#include "ui_addressbookmainwindow.h"
#include <QSettings>
#include <QFileInfo>
#include <QSqlDatabase>
#include <QSqlError>
#include <QDebug>
#include <QKeyEvent>
#include <QSqlTableModel>
#include <QSqlQuery>
#include <QDesktopServices>
#include <QUrl>
#include <QDir>
#include <cstdlib>
#include "addressbookmainwindo... |
//LIC// ====================================================================
//LIC// This file forms part of oomph-lib, the object-oriented,
//LIC// multi-physics finite-element library, available
//LIC// at http://www.oomph-lib.org.
//LIC//
//LIC// Copyright (C) 2006-2022 <NAME> and <NAME>
//LIC//
//LIC// This lib... |
// Copyright 2020 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 <algorithm>
#include <numeric>
#include <vector>
#include "base/command_line.h"
#include "base/files/file_util.h"
#include "base/json/json_write... |
/*
* Copyright (c) 2019, Los Alamos National Laboratory
* All rights reserved.
*
* Authors: <NAME>, <NAME> and <NAME>.
*
* 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 ... |
//
// Lol Engine — Voronoi diagram tutorial
//
// Copyright © 2011—2015 Benjamin “Touky” Huet <<EMAIL>>
//
// Lol Engine is free software. It comes without any warranty, to
// the extent permitted by applicable law. You can redistribute it
// and/or modify it under the terms of the Do What the Fuck You Want
// to... |
#include "symbols.h"
#ifdef __cplusplus
//extern "C"{
#endif
//int (*OSDynLoad_Acquire)(const char *dynLoadExeName, uint32_t *outHandle);
//int (*OSDynLoad_FindExport)(uint32_t handle, bool isFromDataSection, const char * name, void **fpptr);
void __load_from_module(uint32_t module, const char *symbol, void **f) {
/... |
#include "HMC5883L.h"
using namespace HMC5883L_CFG;
bool HMC5883L::begin(int sda, int scl) {
aWire.begin(sda, scl);
if ((readSync8(REGISTERS::IDENT_A) != EXPECTED_IDENT::A) ||
(readSync8(REGISTERS::IDENT_B) != EXPECTED_IDENT::B) ||
(readSync8(REGISTERS::IDENT_C) != EXPECTED_IDENT::C)) {
... |
#include <CGnuPlotUsingCols.h>
#include <CGnuPlot.h>
#include <CParseLine.h>
#include <CStrUtil.h>
class CGnuPlotUsingColsFnObj : public CExprFunctionObj {
public:
typedef std::vector<CExprValuePtr> Values;
public:
CGnuPlotUsingColsFnObj(CGnuPlotUsingCols *cols) : cols_(cols) { }
protected:
CGnuPlotUsingCol... |
// This is brcv/shp/dbsk2d/dbsk2d_ishock_belm.cxx
//:
// \file
#include "dbsk2d_ishock_belm.h"
#include "dbsk2d_ishock_bpoint.h"
#include "dbsk2d_ishock_bline.h"
#include "dbsk2d_ishock_barc.h"
#include "dbsk2d_ishock_node.h"
#include "dbsk2d_ishock_edge.h"
// todo: make sure the loader can work when having these e... |
//===--- PropertyUnification.cpp - Rules added w/ building property map ---===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2021 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.... |
#include "core/Task.h"
#include "core/DiagnosticEmitter.h"
#include "core/Expression.h"
#include "core/IR.h"
#include "util/ADT.h"
#include <QQueue>
#include <functional>
bool Function::validate(DiagnosticEmitterBase& diagnostic, const Task& task)
{
// POSSIBLE IMPROVEMENT:
// 1. find unreachable expression... |
// RACC - AI development project for first-person shooter games
// (http://racc.bots-united.com/)
//
// Rational Autonomous Cybernetic Commandos AI
//
// dxffile.cpp
//
#include <racc.h>
// DXF buffer size (16 Mb should be enough)
#define DEBUG_DXF_SIZE 16000000
char *dxf_buffer;
long dxf_buffer_in... |
/*
* Copyright (c) 2018-2019, <NAME>, <NAME>
*/
// OpenMP
#include <omp.h>
// C++ standard library
#include <bits/stdc++.h>
// OpenCV
#include <opencv2/core.hpp>
#include <opencv2/opencv.hpp>
// Boost
#include <boost/program_options.hpp>
// Adapted from https://stackoverflow.com/questions/7616511/
float mean(std... |
/* -*-c++-*- */
/**
* convert Env map Regions to Lights
*/
void createLightsFromRegions(const SatRegionVector& regions, LightVector& lights, const float *rgba, const double maxLum, const int width, const int height, const int nc, const SummedAreaTable &lumSat)
{
const double maxR = lumSat.getMaxR();
const do... |
//========= Copyright 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <malloc.h>
#include <tier0... |
/*
* The MIT License (MIT)
*
* Copyright 2020 <NAME>, <NAME>
*
* This file is part of crazyflie_nmpc.
*
* 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 ... |
//===--------------------------------------------------------------------------------------------------------------===//
// src/CodeGen/CGExpr.cpp - Code Generator Expression implementation
//
// Part of the Fly Project https://flylang.org
// Under the Apache License v2.0 see LICENSE for details.
// Thank you to LLVM P... |
/*
* train_HOG-SVM.cpp
*
* Created on: Oct 1, 2015
* Author: evmavrop
*/
#include "opencv2/core.hpp"
#include <opencv2/cudaobjdetect.hpp>
#include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/ml.hpp"
#include <opencv2/imgcodecs.hpp>
#include <fstream>
#include <iostream>
#define T... |
//===-- WebAssemblyCFGStackify.cpp - CFG Stackification -------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#pragma once
#include <set>
#include "utils/id.hpp"
#include <limits>
#include <map>
// TODO Il faudrait refaire tout ça en mieux
template <typename Node, typename Edge>
class Graph
{
public:
// Efface tout ce qu’il y a dans le graphe
void clear();
// Renvoie le nombre de nœuds dans le graphe
inline std::si... |
//========= Copyright 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "hud.h"
#include "hudelement.h"
#include "hud_macros.h"
#include "hud_numericdisplay.h"
#include "icl... |
#include "imgui/imgui.h"
#include "imgui/imgui_impl_glfw.h"
#include "imgui/imgui_impl_opengl3.h"
#include <stdio.h>
#include <glad/glad.h> // Initialize with gladLoadGL
#include <GLFW/glfw3.h>
#if defined(_MSC_VER) && (_MSC_VER >= 1900) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS)
#pragma comment(lib, "legacy_stdio_... |
// FROM https://raw.githubusercontent.com/jlaako/bsex/master/bsex.cpp
/*
bsex - Botan based stream cipher utility for backup encryption
Copyright (C) 2018 <NAME>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are me... |
/*
* S C R P T M P S . C P P
*
* Scriptmaps cacheing
*
* Copyright 1986-1997 Microsoft Corporation, All Rights Reserved
*/
#include "_davprs.h"
#include "scrptmps.h"
#include "instdata.h"
// ========================================================================
// class CScriptMap
//
// Contain... |
#include "pch.h"
#include "edit_control/_edit_control/edit_control.h"
//#include "render.h" --> It's already included in edit_control.h
Render::Render(Edit_Control& EC)
:m_EC(EC)
{}
Render::~Render() {
CHECK_ERR(DeleteObject(m_EC.m_Bkg_Brush), ERR_MSG_DELETE_OBJECT);
CHECK_ERR(DeleteObject(m_Selection_Bru... |
/**
* This program performance tests for the range image likelihood library.
*
* Esc - quit
*
*/
#include <Eigen/Dense>
#include <cmath>
#include <iostream>
#include <boost/shared_ptr.hpp>
#ifdef _WIN32
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
#endif
#include <GL/glew.h>
#include <pcl/pcl_config.h>
#i... |
// Copyright (c) 2017 The Khronos Group Inc.
// Copyright (c) 2017 Valve Corporation
// Copyright (c) 2017 LunarG 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... |
#include "PatchMap.hpp"
//Create a PatchMap which synthesises a new map.
PatchMap::PatchMap(const MapLUT& lut, unsigned int x, unsigned int y, float windowWidth, float windowHeight):
lut(lut),
graph(RoadGraph((float)(xTiles * windowWidth), (float)(yTiles * windowHeight))),
patchWidth(windowWidth),
patchHeight(wind... |
#pragma warning(disable:4786)
#ifndef __SMTP_H__
#include "Smtp.h"
#endif
#include "..\Registry.h"
#include <time.h>
//#include <fstream.h>
#include "Base64.h"
//#include <iostream.h>
#include <winsock2.h>
// new smtp library
#include <CkMailMan.h>
#include <CkEmail.h>
#include <fstream>
using namespace std;
#in... |
#include "z3_fp_helpers.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/Metadata.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/raw_ostream.h"
#include "mk_debug.h"
#include "utils.h"
#include <cmath>
#include <iomanip>
#include <sstream>
using namespace llvm;
static std::map<llvm::Value *, unsigned> va... |
/*
// Licensed to DynamoBI Corporation (DynamoBI) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. DynamoBI licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vector>
#include <string>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/ext.hpp>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#define DEFAULT_WIDTH 1024
#define DEFAULT_HEIGHT 768
// Vertex Array attri... |
/***********************************************************************************************************************
* *
* libscopeprotocols ... |
/*
Info:
This program corresponds to the competitor "MaxFlow" in the PVLDB 2020 paper.
Feel free to use these lines as you wish.
This program implements the exact algorithm for the densest subgraph problem
and the k-clique densest subgraph problem. The algorithm for the former is
proposed by Goldberg in 198... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.