text stringlengths 5.71k 33.7k |
|---|
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2020, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... |
/*
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... |
#include "CondFormats/PPSObjects/interface/PPSPixelTopology.h"
//#include <iostream>
// Constructors
PPSPixelTopology::PPSPixelTopology()
: runType_(""),
pitch_simY_(0.),
pitch_simX_(0.),
thickness_(0.),
no_of_pixels_simX_(0.),
no_of_pixels_simY_(0.),
no_of_pixels_(0.),
s... |
CGame *CGame_GetInstance()
{
static CGame s_Game;
return &s_Game;
}
CGame::CGame()
{
m_pCamera = NULL;
m_clrEnvironment = tagVector4(0.4f, 0.4f, 0.4f, 1.0f);
}
void CGame::Initilize(HWND hWnd)
{
CDevice::Initilize(hWnd);
CreateGroundTexture();
CreateGroundModel();
LoadKnightTextur... |
// Scintilla\ source code edit control
/** @file LexTCMD.cxx
** Lexer for Take Command / TCC batch scripts (.bat, .btm, .cmd).
**/
// Written by <NAME> (rconn [at] jpsoft [dot] com)
// based on the CMD lexer
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdl... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <cstddef>
#include <memory>
#include <optional>
#include "DataStructures/DataBox/Prefixes.hpp"
#include "DataStructures/Tensor/TypeAliases.hpp"
#include "Evolution/Systems/GeneralizedHarmonic/BoundaryCorrections/BoundaryCorre... |
/*(Copyright)
Microsoft Copyright 2017
Confidential Information
*/
#include "stdafx.h"
#include <stdint.h>
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include "RIoT.h"
#include "RiotCrypt.h"
#include "RiotDerEnc.h"
#include "RiotX509Bldr.h"
#include "DiceSha256.h"
//Debug
#define DEBUG
// Note that even thou... |
#include <iostream>
#include <cstring>
#include <unistd.h>
#include <assert.h>
#include <lsm_connector.h>
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <EGL/eglplatform.h>
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <wayland-client.h>
#include <wayland-egl.h>
#include <glib.h>
#include <glib-unix... |
/*
SHA-1 in C
By <NAME> <<EMAIL>>
100% Public Domain
-----------------
Modified 7/98
By <NAME> <<EMAIL>>
Still 100% Public Domain
Corrected a problem which generated improper hash values on 16 bit machines
Routine SHA1Update changed from
void SHA1Update(SHA1_CTX* context, unsigned char* data, unsi... |
//
// Lots of this based on ncolbans work
// https://github.com/nkolban/esp32-snippets
/*
MIT License
Copyright (c) 2017 <NAME> (Ebiroll)
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 r... |
#include "cbase.h"
#include "keyvalues.h"
#include "cdll_client_int.h"
#include "view_scene.h"
#include "viewrender.h"
#include "tier0/include/icommandline.h"
#include "materialsystem/IMesh.h"
#include "materialsystem/IMaterial.h"
#include "materialsystem/IMaterialSystemHardwareConfig.h"
#include "materialsystem/IMate... |
/**
* @file cvtColor.cpp
* @brief mex interface for cvtColor
* @author <NAME>
* @date 2012
*/
#include "mexopencv.hpp"
using namespace std;
using namespace cv;
/** Color conversion types for option processing
*/
const ConstMap<std::string,int> ColorConv = ConstMap<std::string,int>
("BGR2BGRA", cv::COL... |
#include "open_compressed.h" /* close_compressed(), open_compressed(), pfgets() */
#include "pretty_print.h" /* pretty_print() */
#include <errno.h> /* errno */
#include <list> /* list<> */
#include <stdio.h> /* EOF, fprintf(), printf(), stderr */
#include <stdlib.h> /* atol(), getopt(), optarg, optind */
#inclu... |
/* MIT License
*
* Copyright (c) 2018 <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, copy, mo... |
/*
* Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/>
*
* Copyright (C) 2012 - 2012 FrenchCORE <http://www.frcore.com/>
* Copyright (C) 2008 - 2012 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
*
* This program is free software; you c... |
// btlso_streamsocket.t.cpp -*-C++-*-
// ----------------------------------------------------------------------------
// NOTICE
//
// This component is not up to date with current BDE coding standards, and
// should not be used as an example f... |
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <errno.h>
#include "Poco/evdata/evpostgres/ev_postgres.h"
#include "Poco/evdata/evpostgres/ev_typeutils.h"
#define PIPE '|'
/*
* strip_var
*
* Strip any leading and trailing zeroes from a numeric variable
*/
static void strip_v... |
#include "sys/msys.h"
#include "intro.h"
#define GB_MATH_IMPLEMENTATION
#include "sys/gb_math.h"
#include "sys/ft2play.h"
#include <mmsystem.h>
#include "main.h"
#include "fontwriter.h"
#include "sprite.h"
#include "msx.h"
#include "twister.h"
FBOELEM render_fbo;
FBOELEM font_fbo;
GLuint scene_vao, scene_texture;
shad... |
#include <iostream>
#include "NFcore.hh"
#include <string>
// for labeling
#include <sstream>
#include <algorithm>
#include "../nauty24/nausparse.h"
using namespace std;
using namespace NFcore;
const int Node::IS_MOLECULE = -1;
Complex::Complex(System * s, int ID_complex, Molecule * m)
: is_canonical( false ), can... |
/*
Copyright (c) 2014, <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 condit... |
/*
* This code was created by <NAME> '99
* (ported to Linux/SDL by <NAME> '01)
*
* If you've found this code useful, please let me know.
*
* Visit Jeff at http://nehe.gamedev.net/
*
* or for port-specific comments, questions, bugreports etc.
* email to <EMAIL>
*/
#include <stdio.h>
#include <stdlib.h>
#i... |
#include "Target.h"
#include "Arrow.h"
#include <string>
#include <iostream>
#include "Target.h"
#include "Arrow.h"
#include <string>
#include <iostream>
#include <random>
#include <chrono>
#include <algorithm>
#include <vector>
#define TAM_GERACAO 50
#define NUM_ALVOS 2
#define NUM_GERACOES_PROCESSA 10
double mutati... |
// Copyright 2016 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
// Because the SendInput function is only supported in
// Windows 2000 and later, WINVER needs to be set as
// follows so that SendInput gets defined when windows.h
// is included below.
#define WINVER 0x0500
#include <Windows.h>
#include <pdh.h>
#include "tchar.h"
#include <QDateTime>
#include <QString>
#include <QTi... |
//
// This file is part of the FFEA simulation package
//
// Copyright (c) by the Theory and Development FFEA teams,
// as they appear in the README.md file.
//
// FFEA 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 ... |
///! \file
/// An implementation of the Langevin algorithm for the CP(N-1) model
/// with quartic action
#include "quartic_cpn_langevin.h"
#include "io.h"
#include "randgen.h"
#include <omp.h>
#include <type_traits>
int main(int argc, char *argv[])
{
// ------------------------------------------------------------... |
//
// repeat.cpp
// ultraP
//
#include "repeat.hpp"
void RepeatRegion::CreateLogo(SequenceWindow *window, UMatrix *matrix) {
logoMemory = (int *)malloc(sizeof(int) * repeatPeriod * (NUM_SYMBOLS + 1));
logo = (int **)malloc(sizeof(int *) * repeatPeriod);
for (int i = 0; i < repeatPeriod; ++i) {
int p = i ... |
/**
* author: sravi1210
* created: 20.10.2020 02:46:19
**/
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define ll long long int
// Global variables for Graph, EDDA, CMST, destination edge servers, CMST nodes and edges.
map<ll, ll> Wnodes;
vector<vector<ll>> G;
vecto... |
/** This is free and unencumbered software released into the public domain.
The authors of ISIS do not claim copyright on the contents of this file.
For more details about the LICENSE terms and the AUTHORS, you will
find files of those names at the top level of this repository. **/
/* SPDX-License-Identifier: CC0-1.0... |
// -----------------------------
//
// Offline DQM for razor triggers. The razor inclusive analysis measures trigger efficiency
// in SingleElectron events (orthogonal to analysis), as a 2D function of the razor variables
// M_R and R^2. Also monitor dPhi_R, used offline for QCD and/or detector-related MET tail
// r... |
/*
* Copyright (C) 2017 EEnginE 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 applicable law or agreed... |
/**
* instance.cpp
*
* Purpose: Defines the methods for the Instance() class.
*
* @author <NAME> <<EMAIL>>
* @version 0.00.00
*
* Copyright (C) 2018 <NAME>.
* All rights reserved.
*
* This software may be modified and distributed under the terms of the MIT license. See the
* LICENSE file for details.
*
*... |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2017, Poznan University of Technology
* 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 c... |
#include <stdafx.h>
#include "planet.h"
#include "helpers/glNurbs.h"
#define G3D_PLANET_HISTORY_GROW_BY 5000
CPlanet::CPlanet( ) : m_material( defaultPlanetColor )
{
m_name= "planet";
m_radius = 0;
m_mass = 0;
m_velocity = CVector3D( );
m_acceleration = CVector3D( );
m_isLocked = false;
m_drawAsPoint = false;
... |
#include <yangwebrtc/YangRtcVideoRecvTrack.h>
#include <yangrtp/YangRtpHeader.h>
#include <yangrtp/YangRtpRawPayload.h>
#include <yangrtp/YangRtpSTAPPayload.h>
#include <yangrtp/YangRtpFUAPayload2.h>
#include <yangrtp/YangRtpConstant.h>
#include <yangutil/sys/YangLog.h>
#include <yangutil/sys/YangEndian.h>
YangRtcVide... |
#include "routerNodeCeler.h"
Define_Module(routerNodeCeler);
/* initialization function to initialize debt queues to 0 */
void routerNodeCeler::initialize(){
routerNodeBase::initialize();
for (int i = 0; i < _numHostNodes; ++i) {
_nodeToDebtQueue[myIndex()][i] = 0;
nodeToDestNodeStruct[i].qu... |
//=====================================================================//
/*! @file
@brief RX64M/RX65N/RX72N Audio サンプル @n
SD-CARD にある MP3、WAV 形式のサファイルを再生する。@n
オーディオ出力として、マイコン内蔵 D/A 又は、SSIE を選択できる。@n
※ D/A を使う場合「#define USE_DAC」@n
※ SSIE を使う場合「#define USE_SSIE」(RX72N) @n
※ GLCDC を使う場合「#define USE_GL... |
#include <iostream>
#include <iomanip>
#include <sstream>
#include <map>
#include <string>
#include <vector>
#include <fstream>
#include "simif.h"
#include "processor.h"
#include "encoding.h"
#include "devices.h"
#include "disasm.h"
#include "mmu.h"
#include "CircularBuffer.hpp"
#include "ElfFile.h"
bool debug = fal... |
/*The MIT License (MIT)
Copyright (c) 2016 <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... |
#include "util/assert.h"
#include <xf86drmMode.h>
#include <xf86drm.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <cstring>
#include <drm_fourcc.h>
#include "SnpSourceGL.h"
#include "util/loguru.h"
#include <util/TimeUtil.h>
#include <math.h>
#include <EGL/egl.h>
#include <EGL/eglext.h>
////////////////////// ... |
/**
* @file curse.cc
* @author <NAME>
* @date 20 Jul 2018
* @version 0.1
* @brief Implementation of curses graphical user interface of the Tic-tac-toe game.
*/
#include <iostream>
#include <vector>
#include <cassert>
#include <cstring>
#include "curse.h"
/********* Game board window *********/
/*
... |
#include <cmath>
#include <algorithm>
#include <numeric>
#include <string>
#include <iostream>
#include "traji.hpp"
#include "traji_impl.hpp"
using namespace std;
using namespace std::placeholders;
namespace bg = boost::geometry;
namespace traji
{
TFloat PathPosition::to_s(const Path &path) const
{
re... |
/*
* Varian, Inc. All Rights Reserved.
* This software contains proprietary and confidential
* information of Varian, Inc. and its contributors.
* Use, disclosure and reproduction is prohibited without
* prior consent.
*/
#include <iostream>
#include <fstream>
#include <strstream>
#include <stdio.h>
#include "... |
// __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 "generalGammaDistributionFixedCategories.h"
#include "errorMsg.h"
#include "gammaUtilities.h"
generalGammaDistributionFixedCategories::generalGammaDistributionFixedCategories(const Vdouble& fixedBoundaries, MDOUBLE alpha, MDOUBLE beta) :
generalGammaDistribution()
{
_alpha = alpha;
_beta = beta;
... |
// Copyright 2017, 2018, 2019 InnoVisioNate Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ImagingBackEnd.h"
#include <process.h>
#include <time.h>
extern "C" int GetDocumentsLocation(HWND hwnd,char *);
HBI... |
// +
#include "zestxml.h"
using namespace std;
void ips_weight( SMatF* trn_X_Y, Parameters& params )
{
float A = params.get<float>("propensity_A");
float B = params.get<float>("propensity_B");
int N = trn_X_Y->nc;
float C = (log((float)N)-1)*pow(B+1,A);
VecI freq = trn_X_Y->get_freq( 1 );
... |
#include <yaml-cpp/yaml.h>
#include <yaml-cpp/node/parse.h>
#include <yaml-cpp/node/emit.h>
#include <central_node_yaml.h>
#include <central_node_database.h>
#include <central_node_firmware.h>
#include <central_node_history.h>
#include <iostream>
#include <sstream>
#include <log_wrapper.h>
#if defined(LOG_ENABLED) ... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <memory>
#include <vector>
#include "betting_abstraction.h"
#include "betting_tree.h"
#include "betting_tree_builder.h"
#include "constants.h"
#include "game.h"
#include "split.h"
using std::shared_ptr;
using std::vector;
int Bett... |
#include "hedcut.h"
#include <time.h>
bool compareSortableFloat(SortableFloat sf1, SortableFloat sf2)
{
return sf1.value < sf2.value;
}
Hedcut::Hedcut()
{
//cvt control flags
cvt_iteration_limit = 100; //max number of iterations when building cvf
max_site_displacement = 1.01f; //max tolerable site displacement... |
//This file is part of faust, faster annotation using shape-constrained trees.
//faust 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 ver... |
#include "ige/plugin/GltfPlugin.hpp"
#include "ige/asset/Material.hpp"
#include "ige/asset/Mesh.hpp"
#include "ige/asset/Texture.hpp"
#include "ige/core/App.hpp"
#include "ige/ecs/System.hpp"
#include "ige/ecs/World.hpp"
#include "ige/plugin/RenderPlugin.hpp"
#include "ige/plugin/TransformPlugin.hpp"
#include <cstddef>... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=2 sw=2 et 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/. */
... |
/**
* @file Quote.cc
*
* @section LICENSE
*
* The MIT License
*
* @copyright Copyright (c) 2018 TileDB, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction,... |
/*
* File: main.cpp
* Author: suh
*
* Created on May 4, 2013, 9:36 PM
*
* Version 3: Contingent conversion is handled as conv bond with no
* barrier with a knock-out option subtracted.
* Also, changed from log spot to regular spot.
*/
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <fstream... |
//-----------------------------------
// Copyright <NAME> 2013-2017
//-----------------------------------
// clang-format off
#include "Platform.h"
#include "BaseTypes.h"
// clang-format on
#include "EventUtils.h"
#include <evntrace.h>
#include <evntcons.h>
#include <in6addr.h>
#include <stdio.h>
#include <tdh.h>
#i... |
/*
Copyright (c) 2007 <NAME>. 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 require... |
/*********************************************************************
* BSD 3-Clause License
*
* Copyright (c) 2018, Rawashdeh Research Group
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are ... |
// ******************************************************
// Project Name : ForRocket
// File Name : flight_data_recorder.cpp
// Creation Date : 2019/10/20
// Copyright © 2019 <NAME>. All rights reserved.
// ******************************************************
#include "flight_data_recorder.hpp"
#includ... |
#include "ukf.h"
// #include "Eigen/Dense"
#include <iostream>
#include <fstream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// initial state vector
x_ = VectorXd(5);
... |
/*
* Vox-FE (Version 2): Voxel-based Finite Element Modelling
*
* Interface developed as a ParaView plugin by
* <NAME> and <NAME>
*
* Dept of Mechanical Engineering
* University of Hull
* Cottingham Road
* HU6 7RX
*
* Vox-FE (Version 1) was created by <NAME>, <NAME>, <NAME> and others.
*/
#include <vtkObje... |
/**
* @file Earth.cxx
* @brief A phenomenological model of the Earth based on EGRET measurements
* @author <NAME>
*
* $Header: /nfs/slac/g/glast/ground/cvs/flux/src/Earth.cxx,v 1.5 2005/05/26 03:53:33 burnett Exp $
*/
#include <iostream>
#include <cmath>
#include <cstdlib>
#include <stdexcept>
#include "facili... |
/*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>, <NAM... |
/*
* Player - One Hell of a Robot Server
* Copyright (C) 2003
* <NAME>, <NAME>
*
*
* 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 yo... |
#include <stdio.h>
#include <physics/GlutCamera.hpp>
#include "physics/Robot.hpp"
#include <physics/Environment.hpp>
#include <SimulatorGLUTThread.hpp>
#include "physics/RobotBallController.hpp"
#include <GLDebugFont.h>
#include <GL/freeglut.h>
using namespace std;
// Hooks for GLUT
static SimulatorGLUTThread* gSim... |
#if defined(__AVR_ATmega32U4__) //Leonardo
#define HOW_SLIM 3
#else
#define HOW_SLIM 0 //no slimming measures
#endif
// All the mcufriend.com UNO shields have the same pinout.
// i.e. control pins A0-A4. Data D2-D9. microSD D10-D13.
// Touchscreens are normally A1, A2, D7, D6 but the order varies
... |
#include "Parser.h"
#include "common/SCommand.h"
#include "common/Types.h"
#include <boost/fusion/include/adapted.hpp>
#include "boost/tuple/tuple.hpp"
#include "boost/variant.hpp"
#include <assert.h>
#include <ctype.h>
#include <array>
#include <iostream>
#include <optional>
#include <sstream>
#include <string>
#i... |
#include "MC_Domain.hh"
#include <vector>
#include <map>
#include <utility>
#include <string>
#include <iostream>
using std::cout;
using std::endl;
#include "Globals.hh"
#include "MonteCarlo.hh"
#include "MC_Cell_State.hh"
#include "macros.hh"
#include "MC_RNG_State.hh"
#include "PhysicalConstants.hh"
#include "MeshP... |
/**********************************************************************
* file: compgenepred.cc licence: Artistic Licence, see file
* LICENCE.TXT or
* http://www.opensource.org/licenses/artistic-license.php descr.:
* comparative gene prediction on multiple species authors: Mario
* Stanke, <NAME>, <NAME>
*
* date... |
#include <serverudp.h>
bool serverudp::init() {
WSADATA wsaData;
int iResult;
iResult = WSAStartup(MAKEWORD(2, 2), &wsaData);
if (iResult == 0) {
local.sin_family = AF_INET;
inet_pton(AF_INET, "0.0.0.0", &local.sin_addr.s_addr);
local.sin_port = htons(0);
socketS = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);... |
#include "ModuleDetour.h"
#include "DetourNavMesh.h"
#include "DetourNavMeshBuilder.h"
#include "DetourNavMeshQuery.h"
#include "DetourDebugDraw.h"
#include "DebugDraw.h"
#include "ResourceNavMesh.h"
#include "ImporterNavMesh.h"
#include "ModuleResourceManager.h"
#include "Application.h"
#include "Math.h"
#include "Mod... |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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 ... |
#include <vector>
#include <glad/glad.h>
#include <SDL.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include "imgui/imgui_impl_sdl.h"
#include "imgui/imgui_impl_opengl3.h"
#include "sem_capture_info.h"
#include "sem_capture_pixels.h"
#include <termios.h>
#include <thread>
#include <mutex>
#include "Logg... |
// $Id: GlastHistorySvc.cxx,v 1.1 2007/08/22 16:14:14 heather Exp $
#ifndef GLASTSVC_HISTORYSVC_H
#include "GlastSvc/HistorySvc/GlastHistorySvc.h"
#endif
#include "GaudiKernel/HistoryObj.h"
#include "GaudiHistory/JobHistory.h"
#include "GaudiHistory/AlgorithmHistory.h"
#include "GaudiHistory/AlgToolHistory.h"
#incl... |
#include <math.h>
#include "gen.hxx"
#define DEBUG
//
// CatmullSplineFldCore code
//
// appends src_arr to dest_arr and sets dest_size
// if dest_arr is null, allocate it
//
void Catmull_2_Catmull_2Mods_CatmullSplineFldCore::append_array(float*& dest_arr,
... |
/*
* Copyright 2019 Xilinx, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <sys/types.h>
#include <net/ethernet.h>
#include <boost/uuid/uuid_io.hpp>
#include "base/address_util.h"
#include "base/logging.h"
#include "db/db.h"
#include "db/db_entry.h"
#include "db/db_table.h"
#include "ifmap/ifmap_node.h"
#incl... |
/*
* IRIS Localization and Mapping (LaMa) for ROS
*
* Copyright (c) 2019-today, <NAME>, University of Aveiro - Portugal
* All rights reserved.
* License: New BSD
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and ... |
/*
* This file belongs to the Galois project, a C++ library for exploiting
* parallelism. The code is being released under the terms of the 3-Clause BSD
* License (a copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
/*
<NAME>
CS 222: Computer Architecture
Cache Simulation Assignment
Base Cache object
*/
#include <stdlib.h>
#include <inttypes.h>
#include <string>
#include <vector>
#include <iostream>
#include <cmath>
#include "Cache_Block.hpp"
#include "Cache_Set.hpp"
#include "AccessReturn.hpp"
long g_addressSize = 64; // t... |
#include "CCircleDetect.h"
#define min(a,b) ((a) < (b) ? (a) : (b))
#define max(a,b) ((a) > (b) ? (a) : (b))
int* CCircleDetect::buffer = NULL;
int* CCircleDetect::queue = NULL;
int CCircleDetect::width = 0;
int CCircleDetect::height = 0;
int CCircleDetect::len = 0;
//Variable initialization
CCircleDetect::CCircleD... |
#include "mbed.h"
#include "C12832.h"
C12832 lcd(SPI_MOSI, SPI_SCK, SPI_MISO, p8, p11);
// From https://os.mbed.com/users/dreschpe/code/Christmas-LCD
// graphics for the Christmas Demo
//
// Copyright (c) 2012 <NAME> - DC2PD
// made by hand - I have to look for a tool ;-)
// Released under the MIT License: http://mb... |
/* MikMod sound library
(c) 2003-2004 <NAME> and others - see file
AUTHORS for complete list.
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of
the License, or ... |
//
// Copyright 2014 <NAME>
//
// 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. Tra... |
/***************************************************************************
file : mycar.cpp
created : Mon Oct 10 13:51:00 CET 2001
copyright : (C) 2001-2002 by <NAME>
email : <EMAIL>
version : $Id: mycar.cpp,v 1.11.2.1 2008/05/29... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
#include <cmath>
#ifdef _WIN32
// pyconfig.h doesn't seem to like hypot, so we need to work around it.
namespace std {
template<typename T>
static inline T _hypot(T x, T y) {
return hypot(x, y);
}
}
#endif
#include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
#include "coreinfo.h"
#include "data.h"
#include "emu... |
// Copyright (c) 2021 Mathema GmbH
// SPDX-License-Identifier: BSD-3-Clause
// Author: <NAME> (Kio!)
// Copyright (c) 2021 <EMAIL>
// BSD 2-clause license
#include <stdio.h>
#include <math.h>
#include "pico/stdlib.h"
#include "pico/multicore.h"
#include "hardware/gpio.h"
#include "XY2-100.pio.h"
#include "cdefs.h"
#in... |
// nnet3bin/nnet3-egs-augment-image.cc
// Copyright 2017 Johns Hopkins University (author: <NAME>)
// 2017 <NAME>
// 2017 <NAME>
// See ../../COPYING for clarification regarding multiple authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not... |
/*=========================================================================
Program: Visualization Toolkit
Module: TestAMRGhostLayerStripping.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distr... |
#include <3ds.h>
#include <dirent.h>
#include <algorithm>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <ctime>
#include "cosmetics.hpp"
#include "menu.hpp"
#include "patch.hpp"
#include "preset.hpp"
#include "randomizer.hpp"
#include "settings.hpp"
#include "spoiler_log.hpp"
#include "location_acc... |
#include "../basic-abstract-game.h"
#include "../assetgen.h"
#include <set>
#include <queue>
#include "../mazegen.h"
const std::string NAME = "ninja";
const float GOAL_REWARD = 10.0f;
const int GOAL = 1;
const int BOMB = 6;
const int THROWING_STAR = 7;
const int PLAYER_JUMP = 9;
const int PLAYER_RIGHT1 = 12;
const ... |
/*
* transform.c
*
* Copyright (C) 1989, 1991, <NAME>
* All rights reserved.
*
* This software may be freely copied, modified, and redistributed
* provided that this copyright notice is preserved on all copies.
*
* You may not distribute this software, in whole or in part, as part of
* any commercial product ... |
/*
* testVtolUAV.cpp
*
* Created on: June 30, 2019
* Author: <NAME>
*/
#include <iostream> // std::cout
#include <stdlib.h>
#include <fstream> // std::ifstream
#include <sstream>
#include <string>
#include <time.h>
#include <math.h>
#include "../src/socp/shooting.hpp"
#include "../src/models/vtolU... |
//@file update.cpp
/**
* Copyright (C) 2008 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope th... |
#include <libdariadb/flags.h>
#include <libdariadb/storage/bystep/bystep_storage.h>
#include <libdariadb/storage/bystep/bysteptrack.h>
#include <libdariadb/storage/bystep/helpers.h>
#include <libdariadb/storage/bystep/io_adapter.h>
#include <libdariadb/storage/chunk.h>
#include <libdariadb/storage/settings.h>
#include ... |
// ==Montelight==
// <NAME>, <NAME>, <NAME>
#include <cmath>
#include <string>
#include <iomanip>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#define EPSILON 0.001f
using namespace std;
// Globals
bool EMITTER_SAMPLING = true;
struct Vector {
double x, y, z;
//
Vector(const Vec... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <math.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include "fastmath.h"
#include "Vec3.h"
#include "Mat3.h"
#include "quaternion.h"
#include "raytrace.h"
#include "Solids.h"
#include "Draw3D.h"
#include "AppSDL2OGL_3D.h"... |
#include <boost/graph/adjacency_list.hpp>
#include <fstream>
#include <limits>
#include <vector>
#include <deque>
#include <map>
using namespace std;
struct vertex_info {
string name;
bool stop_vertex; //if==1 it's a stop vertex
string lat, lon; //string to avoid rounding problem
};
struct edge_info {
string na... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.