text stringlengths 8.71k 38.4k |
|---|
// Copyright 2017 Google Inc.
// Copyright 2020 The Open GEE Contributors
//
// 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
//
// Unles... |
// Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include <array>
#include <assert.h>
#include <functional>
#include <iterator>
#include <memory>
#include <stddef.h>
#include <string_view>
#include <tuple>
#include <utility>
using namespace std;
struct... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "JoyConController.h"
#include "Engine/Engine.h"
//#include "Windows/AllowWindowsPlatformTypes.h"
//#include <map>
#include "JoyConState.h"
#include "HAL/RunnableThread.h"
//#include "Windows/HideWindowsPlatformTypes.h"
FJoyConCo... |
#include "gtest/gtest.h"
#include <Configuration.h>
#include <Eigen/Dense>
#include <Utils/IO/IOUtilities.hpp>
#include <Utils/Math/MathUtilities.hpp>
// Robot, mpc and whole body controller
#include <PnC/RobotSystem/RobotSystem.hpp>
#include <PnC/WBC/IHWBC/IHWBC.hpp>
#include <PnC/MPC/CMPC.hpp>
// Draco Specific
#... |
#include <unistd.h>
#include "aligner.h"
#include "config.h"
void printCluster(std::pair<double, RNAProfileAlignment*> cluster,
unsigned int clusterNr, double minPairProb, const Options & options) {
std::cout << "RNA Structure Cluster Nr: " << clusterNr << std::endl;
std::cout << "Score: " <... |
/*
Copyright (c) 2010 <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, distribute, su... |
/*
* Map.cpp
*
* Created on: Jun 13, 2018
* Author: sujiwo
*/
#include <boost/archive/binary_oarchive.hpp>
#include <boost/archive/binary_iarchive.hpp>
#include <boost/graph/adj_list_serialize.hpp>
#include "VMap.h"
#include "KeyFrame.h"
#include "MapPoint.h"
#include "MapObjectSerialization.h"
#include "... |
#include "util/worker.h"
#include "ir/globals.h"
#include "ir/type.h"
#include "llvm_util/llvm2alive.h"
#include "smt/smt.h"
#include "tools/transform.h"
#include "util/config.h"
#include "util/errors.h"
#include "util/interp.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/Triple.h"
#include "llvm/Analysis/T... |
// -*- mode: c++; c-file-style: "k&r"; c-basic-offset: 4 -*-
/***********************************************************************
*
* store/benchmark/tpccClient.cc:
* Benchmarking client for tpcc.
*
**********************************************************************/
#include <gflags/gflags.h>
#include <... |
/****************************************************************************
**
** This file is part of the LibreCAD project, a 2D CAD program
**
** Copyright (C) 2010 <NAME> (<EMAIL>)
** Copyright (C) 2001-2003 RibbonSoft. All rights reserved.
** Copyright (C) 2016 ravas (github.com/r-a-v-a-s)
**
** This file may be ... |
#include <iostream>
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <assert.h>
#include <stdio.h>
#include "GLES2/gl2.h"
#include "EGL/egl.h"
#include "EGL/eglext.h"
#include "bcm_host.h"
#include <errno.h>
#include <regex.h>
#include <dirent.h>
#include <fcntl.... |
/**********************************************************************
Copyright (c) 2017, team frAIburg
Licensed under BSD-3.
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 so... |
//
// ofApp.cpp
// harlequin
//
// Created by <NAME> on 4/21/15.
//
//
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup() {
////////////////////
// image handlers //
////////////////////
imgEdtr = new imgEditor();
imgEdtr->setup("setting... |
/////////////////////////////////////////////////////////////////////////////
//
// ComPart.cpp
//
// Implementace CComPart - spolecny predek vsech casti kompilatoru
//
// A: <NAME>
//
/////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "ComPart.h"
#... |
//
// HelloWorldScene.cpp
// CutTheRopeDemo
//
// Created by guanghui on 5/10/13.
// Copyright __MyCompanyName__ 2013. All rights reserved.
//
#include "HelloWorldScene.h"
#include "SimpleAudioEngine.h"
#include "GLES-Render.h"
#include "LevelFileHandler.h"
#include "PineappleModel.h"
#include "RopeModel.h"
#includ... |
// Copyright (C) 2007 Id Software, Inc.
//
#include "../precompiled.h"
#pragma hdrstop
#if defined( _DEBUG ) && !defined( ID_REDIRECT_NEWDELETE )
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#include "Wakes.h"
// We need to move more than this before a new node get... |
//===- LazyCallGraph.cpp - Analysis of a Module's call graph --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include <G4NistManager.hh>
#include <G4Material.hh>
#include <G4LogicalVolume.hh>
#include <G4PVPlacement.hh>
#include <G4SDManager.hh>
#include "G4SystemOfUnits.hh"
#include <G4Box.hh>
#include <G4VisAttributes.hh>
#include <G4UserLimits.hh>
#include "G4BeamTestDetectorConstruction.h"
#include "G4BeamTestTank.h"
... |
/******************************************************************************\
* Technische Universitaet Darmstadt, Institut fuer Nachrichtentechnik
* Copyright (c) 2001
*
* Author(s):
* <NAME>
*
* Description:
* Wiener filter in time direction for channel estimation
*
**************************************... |
/******************************************************************
* File: superscript.cpp
* Description: Correction pass to fix superscripts and subscripts.
* Author: <NAME>
* Created: Mon Mar 12 14:05:00 PDT 2012
*
* (C) Copyright 2012, Google, Inc.
** Licensed under the Apache License, Versio... |
// 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/net/url_fixer_upper.h"
#include <algorithm>
#if defined(OS_POSIX)
#include "base/environment.h"
#endif
#include "base/file_... |
// clibpm
#include "clibpm.h"
std::mutex pmp_mutex;
// Global new and delete
void* operator new(size_t sz) throw (std::bad_alloc) {
void* ret = calloc(1, sz);
return ret;
}
void operator delete(void *p) throw () {
if (LIBPM <= (unsigned long long) p && (unsigned long long) p <= LIBPM + PMSIZE)
pfree(p... |
#include <fstream>
#include <math.h>
#include <uWS/uWS.h>
#include <chrono>
#include <iostream>
#include <thread>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "json.hpp"
#include "spline.h"
#include "helper.h"
#include "path_planner.h"
using namespace std;
// return lane nu... |
// Copyright (c) 2014 Intel Corporation. All rights reserved.
// Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "xwalk/application/tools/tizen/xwalk_package_installer.h"
#include <sys/... |
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/sendfile.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <iostream>
#include <ctime>
#include <cstring>
#include <string>
#include <string_view>
#include <ugorji/util/logging.h>
#include "simple_http_file_server_han... |
/*
* cgVerify.cpp - basic test of TP's CertGroupVerify
*
* cook up array of n key pairs;
* cook up cert chain to go with them;
* main test loop {
* numCerts = total # of incoming certs;
* test one of four or five "expected result" cases {
* case root in certGroup but not found in AnchorCerts:
* certGro... |
/*
* Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2006 - 2012 ScriptDev2 <http://www.scriptdev2.com/>
*
* Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/>
*
* Copyright (C) 2011 - 2012... |
// Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/stdcompat/bit.h>
#include <string.h>
#include <algorithm>
#include <fbl/alloc_checker.h>
#include <region-alloc/region-alloc.h>
// Support... |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* vim: set ts=8 sts=2 et sw=2 tw=80:
* 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/. */
... |
// cg_playerstate.c -- this file acts on changes in a new playerState_t
// With normal play, this will be done after local prediction, but when
// following another player or playing back a demo, it will be checked
// when the snapshot transitions like all the other entities
#include <bgame/impl.h>
/*
============... |
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>.
[1] <NAME>, <NAME>.... |
//
//
#include "DataFormats/Common/interface/Ref.h"
#include "TrackAssociatorByHitsImpl.h"
#include "SimTracker/TrackerHitAssociation/interface/TrackerHitAssociator.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/Exception.h"
//reco track
#include "DataFormats/TrackR... |
/***************************************************************************
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# * Redistributions of... |
/**
* Authors:
* <NAME> (<EMAIL>)
* <NAME> (<EMAIL>)
* Maintained by:
* <NAME> (<EMAIL>)
* <NAME> (<EMAIL>)
* Last Update: 17/12/2021
* License: MIT
* File: test_rotations.cpp
* Brief: Tests all the functions declared in rotations.hpp
*/
#include "dsor_utils/rotations.hp... |
/*
Extended DW1000 Ranging example for radino32 DW1000 and radinoL4 DW1000
Based on Decawave DW1000 example library
2017 In-Circuit GmbH
wiki.in-circuit.de
*/
#include "mainAnchor.h"
#include <EEPROM.h>
#include <SPI.h>
#include "IC_DW1000_Ranging_local.h"
#include "ICDWR_DW1000Device_local.h"
#inc... |
#include "main.hpp"
// SDL
int WINDOW_WIDTH = 1024;
int WINDOW_HEIGHT = 1024;
int WINDOW_BIT_DEPTH = 24;
bool fullscreen = false;
SDL_Event event;
// OpenGL
GLuint p;
GLuint v;
GLuint f;
GLuint fbo_texture_id;
GLuint fbo_id;
GLuint rbo_id;
const int FBO_TEXTURE_WIDTH = 256;
const int FBO_TEXTURE_HEIGHT = 256;
// ... |
/*
* Copyright (C) 2008 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... |
/*=================================================================
Functions for building and searching kmtree
Compile:
g++ -fPIC -shared -O3 -o km_dict_lib.so km_dict.cpp
Author: <NAME>, <EMAIL>, december 2020.
=================================================================*/
#include <vector>
#include <i... |
/* Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... |
#include <stdio.h>
#include "mujoco.h"
#include "glfw3.h"
#include "cito_params.h"
/// global variables
std::string modelName;
const char *modelPath, *logPath;
YAML::Node params;
const int maxgeom= 5000;
// model and data
mjModel* m = 0;
mjData* d = 0;
float* data = 0;
int recsz = 0;
long long numrec = 0;
long lon... |
/* ---
* This file define an API for working thread in clusters
*
* Author <baptiste.roux AT inria.fr>
* -------------------------------------------------------------------------- */
#include "clMgmtAPI.h"
using namespace clmgmt;
using namespace napi;
using namespace std;
/* ---
* intra-Cluster communication... |
#if defined _WIN32 && !defined _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <stdio.h>
#include "util/typeShortcuts.h"
#include "util/imgClass.h"
/* TODO:
*/
// - SUPPORTED formats:
// all uncompressed and RLE compressed TGA types (img type 1, 2, 3, 9, 10, 11)
//
// - NOT SUPPORTED... |
//=======================================================================
// Copyright <NAME> 2011-2016.
// Distributed under the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=======================================================================
/**
* eddic Pars... |
//===--- CodeGenFunction.cpp - Emit LLVM Code from ASTs for a Function ----===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/* PROJECT: Medo
* AUTHORS: <NAME>, Melbourne Australia
* COPYRIGHT: Zen Yes Pty Ltd, 2019-2021
* DESCRIPTION: Effect / Mask
*/
#include <cstdio>
#include <cassert>
#include <InterfaceKit.h>
#include <translation/TranslationUtils.h>
#include "Yarra/Render/Texture.h"
#include "Yarra/Render/SceneNode.h"
#includ... |
/******************************************************************************
Copyright (c) 2010, Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source co... |
#include "Globals.h"
#ifdef USING_ARDUINO
#include <Arduino.h>
#endif
#include "Common.h"
#include <math.h>
#include <string.h>
#include <stdio.h>
//comment here for test
//Globals from Common.cpp
//global variables
char buffer[BUFFSIZ]; // string buffer for the sentence
char dataString[BUFFSIZ];
vo... |
/* 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, distribute, sublicense, and/or sell
*... |
/*
Copyright [2011] [<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 applicable law or agreed to in writ... |
#include <iostream>
#include <fstream>
#include <vector>
#include <array>
#include <algorithm>
#include <boost/mpi.hpp>
#include <boost/optional/optional_io.hpp>
#include <thread>
#include <tbb/concurrent_queue.h>
#include <arrayfire.h>
#include <boost/serialization/vector.hpp>
namespace mpi = boost::mpi;
using af::s... |
/*The MIT License (MIT)
Copyright (c) 2014 <NAME>
https://github.com/natcl/Artnet, http://forum.pjrc.com/threads/24688-Artnet-to-OctoWS2811
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... |
// an improved Hunter by rrtn & Runsttren :)
#include "PlayerbotHunterAI.h"
#include "PlayerbotMgr.h"
class PlayerbotAI;
PlayerbotHunterAI::PlayerbotHunterAI(Player* const master, Player* const bot, PlayerbotAI* const ai) : PlayerbotClassAI(master, bot, ai)
{
// PET CTRL
PET_SUMMON = ai->i... |
/*
MIT License
Copyright (c) 2020 wild-ig
*/
#include <vector>
#include <numeric>
#include <opencv2\opencv.hpp>
#include "moments.hpp"
using namespace cv;
// Processing/operational matrices
Mat XY, YZ, XZ, XZY, X_ZY;
void ResetOperationalImages() {
XY = 0;
YZ = 0;
XZ = 0;
XZY = 0;
X_ZY = 0;
}
... |
/* Main program for running workers + driver */
//#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_INFO
//#include <spdlog/spdlog.h>
#include <stdint.h>
#include <sys/time.h>
#include <sys/mman.h>
#include <algorithm>
#include <cmath>
#include <fstream>
#include <future>
#include <iostream>
#include <random>
#include <vecto... |
#include <cstring>
#include <cmath>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
#include "lwip/ip_addr.h"
#include "lwip/dns.h"
#include "lwip/udp.h"
#include "lwip/api.h"
#include "sntp.hpp"
static const char *TAG = "SNTP";
using namespace jhall;
// Not all NTP timeservers perfo... |
// Copyright(c) 2020, Intel Corporation
//
// 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 ... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "Replay.h"
#include <math.h>
FActionRecord UReplay::GetTurn(int32 Turn, int32 Offset) {
TArray<uint8> DifferenceToNextTurn;
int32 StreamBegin = (6 + 8 * Turn) + Offset;
int32 StreamEnd = (6 + 8 * (Turn + 1)) + Offset;
for (i... |
#include <map>
#include <string>
#include <vector>
#include <iostream>
#include "spec.h"
#include "disassembler.h"
/* from ../armv7/armv7.h */
#include "armv7.h"
using namespace armv7;
using namespace std;
/* helper prototypes */
int get_reg_name(int reg_idx, char *reg_name);
/* decompose an instruction stream int... |
/*
* Model.cpp
*
* Created on: Nov 19, 2015
* Author: laetus
*/
#include "Model.hpp"
Model::Model(int nTimesteps, int horizon, int t_f) {
this->nTimesteps = nTimesteps;
this->horizon = horizon;
this->n_f = t_f;
this->isRealtime = false;
}
list<Component*>* Model::getComponents() {
return this->compon... |
#include <bits/stdc++.h>
#ifdef LOCAL
#include "code/formatting.hpp"
#else
#define debug(...) (void)0
#endif
using namespace std;
inline namespace lib {
__int128_t abs(__int128_t x) { return x >= 0 ? x : -x; }
// For 3D computational geometry problems on points with integer coordinates
struct Point {
using P =... |
#include "RFProtocolNooLite.h"
#include <cmath>
#include "../libutils/DebugPrintf.h"
#include "../libutils/Exception.h"
#include "../libutils/logging.h"
typedef std::string string;
using namespace strutils;
using std::ostream;
static const range_type g_timing_pause[7] = {
{ 380, 750 },
{ 851... |
//
// PointCloudManipulation.cpp
// PointPairFeatures
//
// Created by <NAME> on 02.08.14.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#include "PointCloudManipulation.h"
#include "Visualize.h"
#include "PointPairFeatures.h"
namespace ICP {
//K called correlation matrix in eggert_comparison_mva97, is a... |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkColorFilter.h"
#include "SkDevice.h"
#include "SkDraw.h"
#include "SkDrawFilter.h"
#include "SkImage_Base.h"
#include "SkImageCacherator.h"
#include "SkImageFilter... |
#include "RecoEgamma/EgammaElectronProducers/interface/LowPtGsfElectronFeatures.h"
#include "CommonTools/BaseParticlePropagator/interface/BaseParticlePropagator.h"
#include "DataFormats/GsfTrackReco/interface/GsfTrack.h"
#include "DataFormats/ParticleFlowReco/interface/PFCluster.h"
#include "DataFormats/ParticleFlowRec... |
/**
* @file persistence.cpp
*
* This file contains file based persistence related functions.
*/
#include "zurbank/persistence.h"
#include "zurbank/dex.h"
#include "zurbank/log.h"
#include "zurbank/mdex.h"
#include "zurbank/zurbank.h"
#include "zurbank/rules.h"
#include "zurbank/sp.h"
#include "zurbank/tally.h"
#i... |
/*
i960SxManagementEngine
Copyright (c) 2020-2022, <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 c... |
//
//
// MIT License
//
// Copyright (c) 2017 Stellacore 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 restriction, including
// without limitation the rights to ... |
//===- Evaluator.cpp - LLVM IR evaluator ----------------------------------===//
//
// 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
//
//===---------------------------... |
#include <CLunar.h>
#include <CMathGen.h>
#include <CMathRand.h>
#include <CRGBA.h>
#include <CRGBName.h>
//uchar PALETTE[16]={0,1,2,3,4,5,20,7,56,57,58,59,60, 61,62,62};
CLunar::
CLunar()
{
y_max = 280;
radius = 150;
x_center = -100;
y_center = 0;
}
void
CLunar::
draw(int w, int h)
{
w_ = w;
h_ = h;
... |
// Copyright 2017 Google Inc.
// Copyright 2020 The Open GEE Contributors
//
// 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
//
// Unles... |
#include <string>
#include <vector>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <csignal>
#include "NP.hh"
#include "Randomize.hh"
#include "G4MaterialPropertyVector.hh"
#include "G4Material.hh"
#include "G4PhysicsTable.hh"
#include "G4PhysicalConstants.hh"
#include "G4Syste... |
/*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free... |
// 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/ime/input_method_win.h"
#include <stddef.h>
#include <stdint.h>
#include <cwctype>
#include "base/auto_reset.h"
#include "base/bin... |
// ImGui Renderer for: OpenGL3 (modern OpenGL with shaders / programmatic pipeline)
// This needs to be used along with a Platform Binding (e.g. GLFW, SDL, Win32, custom..)
// (Note: We are using GL3W as a helper library to access OpenGL functions since there is no standard header to access modern OpenGL functions easi... |
#include "mainwindow.h"
#include "ui_mainwindow.h"
/* Constructs a new Cell struct
* @param x is the x coordinate of the cell
* @param y is the y coordinate of the cell
* @param value is the value of the cell (-2, -1, 0 or Natural Number)
*/
Cell::Cell(int x, int y, int value) {
this->x = x;
this... |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "core/fpdfapi/edit/cpdf_creator.h"
#include <algorithm>
#include "c... |
#include <stdio.h>
#include <iostream>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtc/quaternion.hpp>
#include <glm/gtx/quaternion.hpp>
#include <math.h>
#include <vector>
//... |
#include <fstream>
#include <functional>
#include <filesystem>
#include <spdlog/sinks/basic_file_sink.h>
#include <spdlog/spdlog.h>
#include <nlohmann/json.hpp>
#include <magic_enum.hpp>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "Engine/helpers/overloaded.hpp"
#include "Engine/component... |
#include <chrono>
#define _USE_MATH_DEFINES
#include <cmath>
#include <string.h>
#include <thread>
#include <chrono>
#include <cstdio>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "IAppFramework.h"
#include "DataFlow.h"
#include "Shader.h"
#include "Mesh.h"
#include "Camera.h"
#include "ut... |
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2009 <NAME>
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/or modif... |
#include "sdk.h"
#include "Misc.h"
#include "global.h"
#include <chrono>
#include "GameUtils.h"
#include "Menu.h"
#include "Math.h"
#include "xor.h"
#include <chrono>
CMisc* g_Misc = new CMisc;
//using RevealAllFn = void(*)(int); Double V fix: Can't use this syntax with my VS version!
typedef void(*RevealAll... |
/***************************************************************************
* *
* Copyright (C) 2007 by Kanardia d.o.o. [see www.kanardia.eu] *
* Writen by: *
* <NAM... |
//
// main.cpp
//
// MD simulation code for water molecules using IPS/Tree method
//
// <NAME> 2017/09/20
//
// Known problem:
// nothing
#include<iostream>
#include<fstream>
#include<unistd.h>
#include<sys/stat.h>
#include<particle_simulator.hpp>
#include <string>
#include <vector>
#include <unit.h>
#include <pdb_m... |
#include "HeavyFlavorAnalysis/SpecificDecay/plugins/BPHHistoSpecificDecay.h"
#include "HeavyFlavorAnalysis/SpecificDecay/interface/BPHParticleMasses.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "DataFormats/PatCandidates/interface/Muon.h"
#include "MagneticField/Records/interface/IdealMagneticFie... |
//
// star.cxx
// functions for star structure
//
// Copyright (c) 2000 IPA and Keio University SFC Research Institution
//
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
//
#include <math.h>
#include <stdlib.h>
#include <assert.h>
#include "smd.h"
#include "ppdv... |
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "main/iroha_conf_loader.hpp"
#include <cctype>
#include <cstddef>
#include <cstdlib>
#include <fstream>
#include <functional>
#include <iterator>
#include <limits>
#include <optional>
#include <ostream>
#incl... |
auto PPU::readIO(uint32 addr) -> uint8 {
switch(addr) {
//DISPCNT
case 0x0400'0000: return (
Background::IO::mode << 0
| io.gameBoyColorMode << 3
| Background::IO::frame << 4
| objects.io.hblank << 5
| objects.io.mapping << 6
| io.forceBlank << 7
);
case 0x0400'0001: return (
... |
//***************************************************************************
// * File: This file is part of TS2.
// * Created on: 07 Nov 2016
// * Author: <NAME>, <NAME>
// *
// * Copyright: (C) 2016 Northumbria University, UK.
// *
// * TS2 is free software; you can redistribute it and/or... |
/**********************************************************************************
Copyright 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... |
// This file is part of snark, a generic and flexible library for robotics research
// Copyright (c) 2011 The University of Sydney
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// 1. Redistr... |
#include <iostream>
#include <cerrno>
#include <cstdint>
#include <ctime>
#include <cstring>
#include <string>
#include <sstream>
#include <iterator>
#include <vector>
#include <cmath>
#include <stdexcept>
#include "wiringPiI2C.h"
#include "BME280.h"
#include "VCNL4010.h"
#include "ADS1115.h"
#include "SH1106.h"
#incl... |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
#include <submap3d_server/Submap3dServer.h>
#include <sstream>
using namespace octomap;
using octomap_msgs::Octomap;
bool is_equal (double a, double b, double epsilon = 1.0e-7)
{
return std::abs(a - b) < epsilon;
}
namespace submap3d_server{
Submap3dServer::Submap3dServer(const ros::NodeHandle private_nh_, cons... |
#include "astVisitor.h"
#include <unusedvariablemacro.h>
using namespace clang;
static const Type*
getBaseType(VarDecl* D){
auto ty = D->getType().getTypePtr();
while (ty->isPointerType() && !(ty->isFunctionPointerType() || ty->isFunctionProtoType())){
ty = ty->getPointeeType().getTypePtr();
}
return ty;
... |
/**
* @file vpc_debug.cpp
*
* @author <NAME>
* @date 2018-12-25
*/
#include "vpc_debug.hpp"
#include "utility.hpp"
#include "VPCParameters.hpp"
using namespace VPCParametersNamespace;
#include "VPCEventHandler.hpp"
#include "SolverHelper.hpp"
#include "PartialBBDisjunction.hpp" // for generationPartialTree
#ifde... |
/*-------------------------------------------------------------------------
*
* ginvacuum.c
* delete & vacuum routines for the postgres GIN
*
*
* Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* ... |
/*******************************************************
Program: 'lognormal.cc'
Author: <NAME> (OAUV)
Creation date: 04/06/2009
Last modification date: 09/09/2009
Program to generate a random log-Gaussian field inside a
cubic box.
This is a modification of 'simulgausbox.cc' (see comments
below), just making the la... |
/*----------------------------------------------------------------------------*\
| |
| Steal This Piece |
| The machine that creates a machine that creates a piece (of music). ... |
#include <math.h>
#include <celib/macros.h>
#include <celib/module.h>
#include <celib/memory/memory.h>
#include <celib/id.h>
#include <celib/api.h>
extern "C" {
#include <cetech/debugui/icons_font_awesome.h>
#include <cetech/node_graph/node_graph.h>
#include <cetech/resource_editor/resource_editor.h>
#include <cetech... |
/*
* Copyright (c) 2014 <NAME> <<EMAIL>>
*
* The code in this repository is available under the MIT License.
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution.
*
* See https://github.com/harisusmani/ofxCorrectPerspective for... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.