text stringlengths 8.71k 38.4k |
|---|
// Copyright 2018 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 "codec_client.h"
#include "util.h"
namespace {
// The client would like there to be at least this many extra input packets in
// addition to th... |
//
// RPPG.cpp
// Heartbeat
//
// Created by <NAME> on 7/07/2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#include "RPPG.hpp"
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/core.hpp>
#include <opencv2/video.hpp>
#include "opencv.hpp"
using namespace cv;
using namespa... |
/*
* This source code is public domain.
*
* Authors: <NAME> <<EMAIL>>
*/
//////////////////////////////////////////////
// AMS module loader //
//////////////////////////////////////////////
#include "stdafx.h"
#include "sndfile.h"
//#pragma warning(disable:4244)
#pragma pack(1)
typedef st... |
// Copyright © 1996-2018, Valve Corporation, All rights reserved.
#include <assert.h>
#include <malloc.h>
#include "keyvalues.h"
#include "materialpatch.h"
#include "physdll.h"
#include "tier1/strtools.h"
#include "utilmatlib.h"
#include "vbsp.h"
void LoadSurfaceProperties(void);
IPhysicsSurfaceProps *physprops = N... |
// Copyright 2018 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... |
#include "Game.h"
/*Hàm tạo Paddlde trái và phải*/
void Game::CreatePaddle()
{
/*Tạo màu*/
PaddleLeft.setFillColor(sf::Color::Red);
PaddleRight.setFillColor(sf::Color::Blue);
/*Cập nhật vị trí Paddle trên màn hình chơi*/
PaddleLeft.setPosition(30, 225);
PaddleRight.setPosition(Width - 50, 225);
}
/*Hàm tạo các c... |
/*############################################################################
# Copyright (C) 2020 Intel Corporation
#
# SPDX-License-Identifier: MIT
############################################################################*/
#include "vpl/mfx_dispatcher_vpl.h"
// implementation of config context (mfxConf... |
/* $OpenBSD: rijndael.c,v 1.6 2000/12/09 18:51:34 markus Exp $ */
/* contrib/pgcrypto/rijndael.c */
/* This is an independent implementation of the encryption algorithm: */
/* */
/* RIJNDAEL by <NAME> and <NAME> */
/* */
/* which is a candidate algorithm in the Advanced Encry... |
#include "foliageeditor.h"
#include "filesystem.h"
#include "heightmap.h"
#include "scene/material.h"
#include "scene/shader.h"
#include "scene/autovariables.h"
#include "model/bmloader.h"
#include "model/model.h"
#include "widgets/filedialog.h"
#include <base/xml.h>
#include <base/png.h>
#include <base/texture.h>
usi... |
/* $NoKeywords: $ */
/*
//
// Copyright (c) 1993-2011 <NAME> & Associates. All rights reserved.
// OpenNURBS, Rhinoceros, and Rhino3D are registered trademarks of Robert
// McNeel & Associates.
//
// THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
// ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PART... |
/* Puts two galaxies on a specified orbit
*
* Originally by <NAME>
*
* modified by <NAME> to read in
* different galaxies and be self-contained
* into one file and read in the modified tipsy
* file format.
*
* */
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <iostream>
#include <string>... |
/*
This is part of the OTF library. Copyright by ZIH, TU Dresden 2005-2013.
Authors: <NAME>, <NAME>, <NAME>, <NAME>
*/
#include <fstream>
#include <iostream>
#include <map>
#include <set>
#include <vector>
#include "comparison.h"
using namespace std;
/* type for pairs in the distance map of CLINKAGE
* ('Pair' ... |
/*-----------------------------------------------------------------------------
Zone.cpp
This keeps track of the short multi-room sections within levels.
Good Robot
(c) 2015 Pyrodactyl
-----------------------------------------------------------------------------*/
#include "master.h"
#include "env.h"
#include "en... |
// Copyright 2021 <NAME>. All rights reserved.
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
#include <ArduinoOTA.h>
#include <Button2.h>
#include <SPI.h>
#include <TFT_eSPI.h>
#include <WiFi.h>
#include <esp_adc_cal.h>
#include <LeptonFLiR.h>
... |
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. The ASF licenses this
file to you 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.or... |
#include <bl/bl.h>
#include "rtv.h"
#include "rply.h"
// ---------------------------------------------------------------------------------------------------------------------
struct Triangle
{
vec3 v0 = vec3::ZERO;
vec3 v1 = vec3::ZERO;
vec3 v2 = vec3::ZERO;
};
struct AABB
{
vec3 min = vec3(math::limit_posf());
... |
//
// main.cpp
// MarchingCubes
//
// Created by <NAME> on 11/23/19.
// Copyright © 2019 <NAME>. All rights reserved.
//
#include <chrono>
#include <filesystem>
#include <iostream>
#include <random>
#include <set>
#include <stdexcept>
#include <string>
#include <vector>
#include <epoxy/gl.h>
#include <imgui/imgu... |
/************************************************************************/
/* */
/* AWG.cpp */
/* */
/* Function Gener... |
/*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
*
* updateEKF.cpp
*
* Code generation for function 'updateEKF'
*
*/
/* Include files */
#include <cmath>
#incl... |
//
// Copyright (C) <NAME> <<EMAIL>>. All rights reserved.
// Use of this source code is governed by a BSD-style license that can
// be found in the LICENSE.txt file.
//
#include "hdrimage.h"
#include "hdrimageraw.h"
#include "parallelfor.h"
#include "timer.h"
#include <ImathMatrix.h>
#include <spdlog/spdlog.h>
#inclu... |
/*
* Copyright (C) 2016, 2017, 2018 Computer Graphics Group, University of Siegen
* Written by <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, in... |
/*
Copyright 2012-2020 <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 writing, software
dis... |
#ifdef USE_OPENCV
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#endif // USE_OPENCV
#include <stdint.h>
#include <algorithm>
#include <map>
#include <vector>
#include "caffe/data_transformer.hpp"
#include "caffe/layers/annotated_data_layer.hpp"
#inclu... |
/*
* Original work Copyright (c) 2006-2011 <NAME> http://www.box2d.org
* Modified work Copyright (c) 2017 <NAME> https://github.com/louis-langholtz/Box2D
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use ... |
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <cmath>
#include <vector>
#include <random>
#include <QtGlobal>
#include <QMessageBox>
#include <QPainter>
#include <QMouseEvent>
#include <QDebug>
#include "center.h"
#include "kptree.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
MainWindow::Ma... |
#include "util/global.hpp"
#include "operator/st2eoperator.hpp"
#include "operator/deexcitationoperator.hpp"
#include "operator/excitationoperator.hpp"
#include "convergence/diis.hpp"
#include "util/iterative.hpp"
#include "task/task.hpp"
using namespace aquarius::op;
using namespace aquarius::input;
using namespace ... |
//===----- JITDwarfEmitter.cpp - Write dwarf tables into memory -----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include <iostream>
#include "DataFormats/EcalDetId/interface/EcalSubdetector.h"
#include "RecoEcal/EgammaCoreTools/interface/ClusterShapeAlgo.h"
#include "RecoCaloTools/Navigation/interface/CaloNavigator.h"
#include "Geometry/EcalAlgo/interface/EcalBarrelGeometry.h"
#include "Geometry/CaloTopology/interface/EcalBarre... |
//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-2021 <NAME> and <NAME>
//LIC//
//LIC// This lib... |
#include <algorithm>
#include <cctype>
#include "mpanimbuild.h"
#include "stb_image.h"
#include "AnimExFormat.h"
tinyxml2::XMLElement *AnimExFormat::GetFirstChildNode(tinyxml2::XMLElement *node)
{
if (node->FirstChildElement("root")) {
return node->FirstChildElement("root");
} else if (node->FirstChildElement("typ... |
//===-- XCoreFrameLowering.cpp - Frame info for XCore Target --------------===//
//
// 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
//
//===---------------------------... |
/*
* \file DTLocalTriggerBaseTask.cc
*
* \author <NAME> - CIEMAT
*
*/
#include "DQM/DTMonitorModule/src/DTLocalTriggerBaseTask.h"
// Framework
#include "FWCore/Framework/interface/EventSetup.h"
// DT DQM
#include "DQM/DTMonitorModule/interface/DTTimeEvolutionHisto.h"
// DT trigger
#include "DQM/DTMonitorModule/... |
#include "Warrior.h"
#include "mdCollision.h"
#include "mdProjectiles.h"
Warrior::Warrior(int x_pos, bool _fliped, int lane): Character() {
this->lane = lane;
//PROVISIONAL: Animations should be loaded from the xml
//Animations
idle.PushBack({ 0,0,195,158 });
idle.PushBack({ 195,0,195,158 });
idle.PushBack({ ... |
/*
* 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... |
//HepMC Headers
#include "HepMC/GenEvent.h"
#include "HepMC/GenVertex.h"
#include "HepMC/GenParticle.h"
//Framework Headers
#include "FWCore/ParameterSet/interface/ParameterSet.h"
//CMSSW Data Formats
#include "DataFormats/HepMCCandidate/interface/GenParticle.h"
#include "DataFormats/Candidate/interface/Candidate.h"
... |
/*
* InfoNES
* SDL ports by mata 03/04/19
* Modified by Jay 06/02/25
*
* Start Date: 2003.04.19
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <SDL.h>
#include "../InfoNES.h"
#include "../InfoNES_System.h"
#include "../InfoNES_pAPU.h"
/*---------------------... |
/**
@file frontend_main.cc
@ingroup Frontend
@brief Front-end main routine
@author <NAME>
@verbatim
Revision: $Revision$
Revision date: Dec 10, 2015
Committed by: <NAME>
This file is part of the Periscope performance measurement tool.
See http://www.lrr.in.tum.de/peris... |
/* Result Sets Interface */
#ifndef SQL_CRSR
# define SQL_CRSR
struct sql_cursor
{
unsigned int curocn;
void *ptr1;
void *ptr2;
unsigned int magic;
};
typedef struct sql_cursor sql_cursor;
typedef struct sql_cursor SQL_CURSOR;
#endif /* SQL_CRSR */
/* Thread Safety */
typedef void * sql_con... |
#ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include <cmath>
#include "EBIndexSpace.H"
#include "EBISLayout.H"
#include ... |
/*
* Created on: July 24, 2019
* Author: KmolYuan
*/
#include "calc.h"
#include <cmath>
#ifdef DEBUG
#include <iostream>
using namespace std;
#endif
///////////////////////////////////////////////////////////////////////
/// constraint defines (these make writing constraint equations easier)
////////////////////... |
#include "Angel.h"
#include <stdlib.h>
#include <dirent.h>
#include <time.h>
// Open Asset Importer header files (in ../../assimp--3.0.1270/include)
#include <assimp/cimport.h>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
// gnatidread.cpp is the CITS3003 "Graphics n Animation Tool Interface & Data Rea... |
/** @certifier.cc
This plugin performs two basic tasks:
1) Loads SSL certificates from file storage on demand. The total number of loaded certificates kept in memory can be configured.
2) (Optional) Generates SSL certificates on demand. Generated certificates are written to file storage for later retrieval.
@s... |
/* This file is part of Cloudy and is copyright (C)1978-2019 by <NAME> and
* others. For conditions of distribution and use see copyright notice in license.txt */
/*lines_hydro put H-like iso sequence into line intensity stack */
#include "cddefines.h"
#include "atmdat.h"
#include "dense.h"
#include "prt.h"
#include ... |
//
// Created by Administrator on 2017/4/7.
//
#define LOG_NDEBUG 0
#define TAG "YTX-GlslFilter-JNI"
#include <ytxplayer/ALog-priv.h>
#include <ytxplayer/GlslFilter.h>
#include <ytxplayer/ffmsg.h>
static const char gVertexShader[]=
"attribute vec4 a_position;\n"
"attribute vec2 a_texco... |
// ****************************************************************************
// PixInsight Class Library - PCL 02.00.13.0692
// ExternalTool Process Module Version 01.00.02.0144
// ****************************************************************************
// ExternalTool.cpp - Released 2014/11/14 17:19:24 UTC
// *... |
// Copyright (C) 2000-2001 Microsoft Corporation. All rights reserved.
// Filename: MBSchemaCompilation.cpp
// Author: Stephenr
// Date Created: 10/16/2000
// Description: This function takes an MBSchema.Xml (or MBExtensionsSchema.Xml) and merges the Metabase Schema with
// ... |
//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... |
//===- islClan.cpp ---------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-----------------------------------------------------------------... |
/* Copyright (c) <NAME>, 1997. */
/* This program is freely distributable without licensing fees
and is provided without guarantee or warrantee expressed or
implied. This program is -not- in the public domain. */
/* Example showing how to use OpenGL's feedback mode to capture
transformed vertices and outp... |
// Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
#include "caspr_rviz/Visualization.hpp"
Visualization::Visualization(){
nh = ros::NodeHandlePtr(new ros::NodeHandle);
marker_visualization_pub = nh->advertise<visualization_msgs::Marker>("visualization_marker", 100);
// Subscribers for CASPR model info
link_name_sub = nh->subscribe("/link_name", 100,... |
//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation 1996-2001.
//
// File: getuser.cpp
//
// Contents: implementation of CGetUser
//
//--------------------------------------------------------------------------... |
/*
* guardian_pad
* Copyright (c) 2011, Robotnik Automation, SLL
* 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
*... |
#define NOMINMAX
#include "SGP/Video.h"
#include <algorithm>
#include <ctime>
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stdexcept>
#include "FadeScreen.h"
#include "Local.h"
#include "SGP/Debug.h"
#include "SGP/FileMan.h"
#include "SGP/Font.h"
#include "SGP/HImage.h"
#include "SGP/Input.h"
... |
/*
Copyright (C) 2011 by <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,... |
// -*- c-basic-offset: 4 -*-
/*
* click2xml.cc -- translate Click configurations into and out of XML
* <NAME>
*
* Copyright (c) 2002 International Computer Science Institute
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the... |
/**
* DS1307 Time and alarm memory handling module by <NAME>
* extension to DS1307new Arduino library from <NAME> and <NAME>
*
* Use NV-RAM to store alarms according the following memory structure:
* - mem pos 0 contains token to reflect status of clock (set or not)
* - mem pos 1 contains bits for alarm days refl... |
#include <cstdlib>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/vec3.hpp>
#include <glm/mat4x4.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/geometric.hpp>
#include "Simulation3D.h"
#include "Utils.h"
#include "IniConfig.h"
using namespace std;
using namespace glm;
vector<GLCo... |
/* _______________________________________________________________________
DAKOTA: Design Analysis Kit for Optimization and Terascale Applications
Copyright 2014 Sandia Corporation.
This software is distributed under the GNU Lesser General Public License.
For more information, see the README file in t... |
#include <ros/ros.h>
#include <tf2_ros/transform_listener.h>
#include <tf2/LinearMath/Quaternion.h>
#include <tf2_ros/transform_broadcaster.h>
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#include <geometry_msgs/TransformStamped.h>
#include <string>
#include <tinyxml.h>
#include <lightsfm/sfm.hpp>
#include "rosmap.... |
#include "Application.h"
#include <Windows.h>
#include <filesystem>
#include <ctime>
#include <iostream>
#include <sstream>
#include <fstream>
#include "json.hpp"
#include "zip.h"
#include "dirent.h"
#include <imgui.h>
class MyApp;
void OnAppClose(int x, int y);
static MyApp* myApp;
static const char* moduleLanguag... |
/* -*-C++-*-
(c) Copyright 2003-2007, Hewlett-Packard Development Company, LP
See the file named COPYING for license details
Description: cryptographic utilities for dataseries
*/
#include <inttypes.h>
#include <cstring>
#include <boost/format.hpp>
#include <openssl/sha.h>
#include <openssl/aes.h>
#incl... |
#include <iostream>
#include "cuda_runtime_api.h"
#include "common.h"
static int get_width(int x, float gw, int divisor = 8) {
//return math.ceil(x / divisor) * divisor
if (int(x * gw) % divisor == 0) {
return int(x * gw);
}
return (int(x * gw / divisor) + 1) * divisor;
}
static int get_depth(... |
#include <parrlib/Vector4f.h>
#include <iostream>
#include <parrlib/stringutils.h>
#include <parrlib/otherutil.h>
Vector4f Vector4f::right() {
return Vector4f(1.0f, 0.0f, 0.0f, 0.0f);
}
Vector4f Vector4f::up() {
return Vector4f(0.0f, 1.0f, 0.0f, 0.0f);
}
Vector4f Vector4f::forward() {
return Vector4f(0.0f, 0.0f,... |
#include "DSCgi.h"
#include "DSCasts.h"
#include "DSDebug.h"
#include <wx/tokenzr.h>
#include <wx/file.h>
#include <wx/ffile.h>
#include <wx/regex.h>
#include <time.h>
#include <stdlib.h>
#include <errno.h>
#include <fcgi_stdio.h>
#include <wx/uri.h>
DynSoft::DSCgi::DSCgi(const bool useUnicode, const wxString &uploadD... |
/**
* @file new_sim_file.cpp
*
* The file includes the main class for parsing:\n
* NewSimulatorFile\n
* and some functions for the configuration of GScanner.
*
* @author <NAME> <<EMAIL>>
* @version 0.2
* @date 2010
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT AN... |
/*
* File: spellcheck.c
* Author: YOUR NAME HERE
* ----------------------
*/
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <vector>
#include <map>
#include <string>
#include <algorithm>
#include <iostream>
#include <time.h>
#include <math.h>
#include <fstream>
#includ... |
/*
Enc28J60NetworkClass.h
UIPEthernet network driver for Microchip ENC28J60 Ethernet Interface.
Copyright (c) 2013 <NAME> <<EMAIL>>
All rights reserved.
based on enc28j60.c file from the AVRlib library by <NAME>.
For AVRlib See http://www.procyonengineering.com/
This program is free software: you can redistri... |
#include "plugin.hpp"
#include <algorithm>
#include "RJModules.hpp"
#include "common.hpp"
#include "dsp/digital.hpp"
#include <iostream>
#include <cmath>
#include <sstream>
#include <iomanip>
#include <unistd.h>
/*
Display
*/
struct LeftHandRightHandSmallStringDisplayWidget : TransparentWidget {
std::string *value... |
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cassert>
#include <string>
#include <vector>
#include <list>
#include <utility>
#include <algorithm>
#include <cassandra.h>
#include <jsoncpp/json/json.h>
// -lpthread -lcassandra -ljsoncpp
typedef std::vector<std::string> St... |
#include <sokoban/solver.h>
#include "core/array_deque.h"
#include "core/auto.h"
#include "core/bits_util.h"
#include "core/format.h"
#include "core/range.h"
#include "core/small_bfs.h"
#include "core/string_util.h"
#include "core/thread.h"
#include "core/timestamp.h"
#include "core/util.h"
#include "phmap/phmap.h"
#i... |
/*
* Copyright (C) 2019 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... |
/*
Minetest
Copyright (C) 2013 celeron55, <NAME> <<EMAIL>>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This progr... |
/* ReadBlockProcessor_CoverageBlocks.cpp Reads coverage blocks
Copyright (C) 2021 <NAME>
Copyright (C) 2016 <NAME>
- original: https://github.com/williamritchie/IRFinder/tree/IRFinder-1.3.1)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation fi... |
#include "../../hypro/representations/GeometricObjectBase.h"
#include "../defines.h"
#include "gtest/gtest.h"
using namespace hypro;
template <typename Number>
class HPolytopeTest : public ::testing::Test {
protected:
virtual void SetUp() {
// A rectangle
Halfspace<Number> hp1( { Number( 1 ), Number( 0 ) }, Nu... |
/*
* Copyright 2007, Haiku. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME>, <<EMAIL>>
*/
//----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.... |
/*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001,2002 <NAME>. *
* All rights reserved. Email: <EMAIL> Web: www.q12.org *
* ... |
#include <Eigen/Core>
#include <Eigen/Geometry>
#include <cmath>
#include "UKF/Types.h"
#include "UKF/Integrator.h"
#include "UKF/StateVector.h"
#include "UKF/MeasurementVector.h"
#include "UKF/Core.h"
#include "cukf.h"
/*
This file implements the same UKF as was used for the 2014 UAV Challenge.
There are a number of ... |
//===-- serialbox/core/frontend/stella/UnittestSerializer.cpp -----------------------*- C++ -*-===//
//
// S E R I A L B O X
//
// This file is distributed under terms of BSD license.
// See LICENSE.txt for more information
//
//===-----------------------------------------------------... |
/******************************************************************************
*
* Project: PlanetLabs scene driver
* Purpose: Implements OGRPLScenesLayer
* Author: <NAME>, even dot rouault at spatialys.com
*
******************************************************************************
* Copyright (c) 2015... |
/************************
https://learn.adafruit.com/trinket-gemma-ir-remote-control/using-ir-codes-1
https://www.instructables.com/id/Clone-a-Remote-with-Arduino/
http://www.instructables.com/id/Clone-a-Remote-with-Arduino/
https://www.arduino.cc/en/Tutorial/ReadWrite
check this for sd and rf on the same ... |
#include <access.h>
#include <arch/context.h>
#include <debug.h>
#include <errno.h>
#include <syscall.h>
#include <syscall.h>
#include <task.h>
#include <thread.h>
/* Tell gcc not to use FPU registers */
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC target("general-regs-only")
#endif
const char *syscall_st... |
#define MLSDK20
#include "App.h"
#include <stdio.h>
#include <stdlib.h>
#include <chrono>
#include <cmath>
#include <sstream>
#include <ml_logging.h>
#include <ml_graphics.h>
#include <ml_lifecycle.h>
#include <ml_perception.h>
#include <ml_head_tracking.h>
#include <ml_input.h>
#include <ml_camera.h>
... |
#include <sstream>
#include "SelectStatement.h"
#include "Environment.h"
using namespace std;
SelectStatement::SelectStatement(vector<Table *> *tables) {
for (Table *t : *tables) {
tb_ind.insert(std::pair<std::string, int>(t->get_name(), this->tables.size()));
has_pk_cond.insert(std::pair<std::str... |
/*
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
/*
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 applicable law or agreed to in writing, software
dist... |
//=================================================================================================
//
// Low-Resolution Rendering Sample
// by MJP
// http://mynameismjp.wordpress.com/
//
// All code and content licensed under the MIT license
//
//====================================================================... |
/**
* switch.cpp
*
* @author <NAME> (nklapste)
* @version 0.0.0
*/
#include <assert.h>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <regex>
#include <signal.h>
#include <string>
#include <sys/stat.h>
#include <sys/signalfd.h>
#include <sys/types.h>
#include <unistd.h>
/* FIFO stuff */
#includ... |
//-----------------------------------------------------------------------------
//
// NodeNaming.cpp
//
// Implementation of the Z-Wave COMMAND_CLASS_NODE_NAMING
//
// Copyright (c) 2010 <NAME> <<EMAIL>>
//
// SOFTWARE NOTICE AND LICENSE
//
// This file is part of OpenZWave.
//
// OpenZWave is free software: you can re... |
#define _CRT_SECURE_NO_WARNINGS
#define CGLTF_IMPLEMENTATION
#include "cgltf.h"
#undef _CRT_SECURE_NO_WARNINGS
#include "animation/animation.h"
#include "editor/asset_compiler.h"
#include "editor/world_editor.h"
#include "editor/studio_app.h"
#include "engine/crc32.h"
#include "engine/crt.h"
#include "engin... |
// Copyright (c) 2009-2016 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
// Maintainer: joaander
#include "TablePotential2D.h"
namespace py = pybind11;
#include <stdexcept>
/*! \file TablePotential.cc
\brief Defines the TableP... |
// Copyright (c) 2017, Baidu.com, Inc. All Rights Reserved
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applic... |
#include <AI/Steering.h>
#include <Graphics/DebugRenderer.h>
#include <imgui.h>
#include <Core/World.h>
#include <Core/Game.h>
using namespace Osm;
Steering::Steering(Entity& entity)
: Component(entity)
, _flags(STEERING_NONE)
{
_physicsManager = GetOwner().GetWorld().GetComponent<PhysicsManager2D>();
_physicsBod... |
/**********************************************************************
*<
FILE: ImportMeshAndSkin.cpp
DESCRIPTION: Mesh and Skin Import routines
CREATED BY: tazpn (Theo)
HISTORY:
*> Copyright (c) 2006, All Rights Reserved.
**********************************************************************/
#include "stdafx.h"... |
/* 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
copies of t... |
#include <shared/scheduler.h>
#include <simpleServer/abstractService.h>
#include <shared/stdLogFile.h>
#include <shared/default_app.h>
#include <algorithm>
#include <iostream>
#include "../server/src/simpleServer/abstractStream.h"
#include "../server/src/simpleServer/address.h"
#include "../server/src/simpleServer/htt... |
/**
* \file navierstokes.cpp
* \brief Implementation of the class \c NavierStokesSolver.
* \copyright Copyright (c) 2016-2018, Barba group. All rights reserved.
* \license BSD 3-Clause License.
* \see nssolver
* \ingroup nssolver
*/
// PETSc
# include <petscviewerhdf5.h>
// Navier-Stokes solver
# include "navi... |
/* crypto/bn/bn_mont.c */
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by <NAME> (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
*... |
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
/**
Copyright (c) 2016, Ubiquity Robotics
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the follo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.