text stringlengths 5.71k 33.7k |
|---|
/*
* Analysis code for the Gray-Scott application.
* Reads variable U and V, compresses and decompresses them at each step,
* runs zchecker to compare the original and decompressed data
* Writes zchecker statistics to separate files per variable, per step
*/
#include "zchecker.h"
#include "ftk_3D_interface.h"
i... |
/*
* Copyright 2006-2012, <NAME> <<EMAIL>>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "FontRegistry.h"
#include <new>
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#include <ft2build.h>
#include FT_SFNT_NAMES_H
#include <freetype/ttnameid.h>
#include <Directo... |
/**
* @file test_path.cxx
* @brief Test of path.cxx module.
*/
#include <stdexcept>
#include <basis/config.h> // WINDOWS, UNIX macros
#include <basis/test.h> // unit testing framework
#include <basis/os.h> // testee
#if UNIX
# include <stdlib.h> // the system() function is used to create symbolic links
#... |
// OSL_common.cxx : This file contains the 'main' function. Program execution begins and ends there.
#include <OpenSimLiveConfig.h>
#include <OpenSim.h>
#include <IMUPlacerLive.h>
#include <IMUInverseKinematicsToolLive.h>
#include "conio.h" // for non-ANSI _kbhit() and _getch()
#include <XMLFunctions.h>
#include <Thre... |
/*
* Labyrinth Crawl
* C++ Terminal Game
*
* Written by <NAME>
*
* 8/6/2013
*
* www.EpicCrawl.com
*
* Features are represented by characters printed out to terminal.
* W for walls, C for character, E for enemies, and S for stairs.
* Object of the game is to get to the stairs without dieing.
* There are 10 ... |
//===- ConcatOutputSection.cpp --------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/*
Copyright (c) 2019-2020, Intel 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 co... |
// Copyright 2017 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <algorithm>
#include <memory>
#include <utility>
#include <base/bind.h>
#include <base/callback.h>
#include <base/strings/string_number_conve... |
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... |
#include "Computerscare.hpp"
#include "dsp/digital.hpp"
#include "dsp/filter.hpp"
#include <string>
#include <sstream>
#include <iomanip>
#define NUM_LINES 16
struct ComputerscareDebug;
std::string noModuleStringValue = "+0.000000\n+0.000000\n+0.000000\n+0.000000\n+0.000000\n+0.000000\n+0.000000\n+0.000000\n+0.000000... |
/**
* Copyright (C) 2013-2014 The Gona Project
*
* Contact: <EMAIL>
*/
#include "GnGLRenderer.h"
#include <math.h>
#include "../GnImageLoader_png.h"
#define VTX_BUF_INIT_SIZE 256
#define VTX_BUF_GROW_SIZE 128
static const char gFontName[] = "font.ttf";
static const char gCircleImg[] = "circle.png";... |
#include <Eigen/Eigenvalues>
#include <Eigen/Geometry>
#include <algorithm>
#include <cstring>
#include <elasty/constraint.hpp>
#include <elasty/fem.hpp>
#include <elasty/particle.hpp>
namespace
{
inline Eigen::Matrix3d convertVecToCrossOp(const Eigen::Vector3d& vec)
{
Eigen::Matrix3d mat = Eigen::Matr... |
// clparticles.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <GL/gl3w.h> // This example is using gl3w to access OpenGL functions (because it is small). You may use glew/glad/glLoadGen/etc. whatever already works for you.
#include <GLFW/glfw3.h>
#include <glm/gtc/m... |
// Copyright (c) 2020 The Beans Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <crypto/common.h>
#include <crypto/sha256.h>
#include <crypto/siphash.h>
#include <primitives/transaction.h>
#include <test... |
/*
Copyright (c) 2012 TOSHIBA CORPORATION.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distr... |
/*
The MIT License (MIT)
Copyright (c) 2016 British Broadcasting Corporation.
This software is provided by Lancaster University by arrangement with the BBC.
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... |
/*******************************************************************************
* Copyright 2014 GeoData <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.... |
#include "autowall.hpp"
#define HITGROUP_GENERIC 0
#define HITGROUP_HEAD 1
#define HITGROUP_CHEST 2
#define HITGROUP_STOMACH 3
#define HITGROUP_LEFTARM 4
#define HITGROUP_RIGHTARM 5
#define HITGROUP_LEFTLEG 6
#define HITGROUP_RIGHTLEG 7
#define HITGROUP_GEAR 10
float Autowall::GetHitgroupDamageMultiplier(... |
/* (c) <NAME>. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <base/math.h>
#include <engine/client.h>
#include <engine/graphics.h>
#include <engine/textrender.h>
#include <game/generated... |
/*------------------------------------------------------------*/
/* filename - teditor2.cpp */
/* */
/* function(s) */
/* TEditor member functions ... |
/* 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>
using namespace ... |
// Cubic3D.cpp: implementation of the CCubic3D class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "ImageProcessing.h"
#include "Cubic3D.h"
#include "Image.h"
#include <cmath>
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG... |
/*
Copyright (c) 2015 - 2021 Advanced Micro Devices, Inc. All rights reserved.
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... |
#include <cmath>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <iomanip>
#include <string>
using namespace std;
#include "Generator_polar.hpp"
using namespace aff3ct::generator;
using namespace aff3ct::tools;
Generator_polar
::Generator_polar(const int& K,
const int& N,
... |
#include "app_functions.hpp"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
void processInput(GLFWwindow *window);
void mouse_callback(GLFWwindow* window, double xpos, double ypos);
void scroll_callback(GLFWwindow* window, double xoffset, double yoffset);
/* Window settings */
const unsigned int SCR_WIDTH = ... |
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... |
/** @file
@brief Example program that uses the OSVR direct-to-display interface
and OpenGL to render a scene with low latency, using a custom
OpenGL window library (in this case, Qt5) rather than the built-in
SDL2 library.
@date 2016
@author
<NAME>
<http://sensics.... |
/*
* Copyright (C) 2010, CCNY Robotics Lab
* <NAME> <<EMAIL>>
*
* http://robotics.ccny.cuny.edu
*
* Based on implementation of Madgwick's IMU and AHRS algorithms.
* http://www.x-io.co.uk/node/8#open_source_ahrs_and_imu_algorithms
*
*
* This program is free software: you can redistribute it and/or modify... |
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmExportInstallFileGenerator.h"
#include <memory>
#include <sstream>
#include <utility>
#include "cmExportSet.h"
#include "cmGeneratedFileStream.h"
#include "cm... |
//
// Sfml.cpp for Sfml in /home/linh/rendu/cpp/arcade/arcade
//
// Made by <NAME>
// Login <<EMAIL>>
//
// Started on Thu Mar 16 15:41:45 2017 <NAME>
// Last update Sun Apr 9 18:58:28 2017 <NAME>
//
#include <SFML/Graphics.hpp>
#include <SFML/System.hpp>
#include <string>
#include "Sfml.hpp"
Sfml::Sfml()
{
... |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
*
* THE BSD LICENSE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistribut... |
//----------------------------------------------------
// file: CEditableObject.cpp
//----------------------------------------------------
#include "stdafx.h"
#pragma hdrstop
#include "EditObject.h"
#include "EditMesh.h"
#include "bone.h"
#include "motion.h"
#ifdef _EDITOR
#include "exportskeleton.h"
... |
/*
* ofxLeapMotion.cpp
* ofxLeapMotion
*
* Created by theo on 1/3/13.
* Copyright 2013 __MyCompanyName__. All rights reserved.
*
*/
#include "ofxLeapMotion.h"
// ofxLeapMotionSimpleHand
//--------------------------------------------------------------
void ofxLeapMotionSimpleHand::debugDraw(){
ofPushStyle(... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
#define PI 3.14159265
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF()
{
// if this is false, laser measurements will be... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* @param {n_x} - number of state parameters
* @param {n_aug} - number of state + noise parameters for the augmented state
* @p... |
// -*- C++ -*-
/**
* @file macwrapper.cpp
* @brief Replaces malloc family on Macs with custom versions.
* @author <NAME> <http://www.cs.umass.edu/~emery>
* @note Copyright (C) 2010-2012 by <NAME>, University of Massachusetts Amherst.
*/
#ifndef __APPLE__
#error "This file is for use on Mac OS only."
#endif
... |
#include "voatol_internal.h"
#include "algorithm_utils.h"
#include "blas.h"
#include "sort.h"
bool verbose = false;
int mat_size = 128;
int main(int argc, char **argv) {
struct timeval start, end, total_start, total_end;
gettimeofday(&total_start, NULL);
// timing variables
double t_total = 0.0;
double ... |
// Copyright (c) 2019 Graphcore Ltd. All rights reserved.
#define BOOST_TEST_MODULE BroadcastGeneratePatterns
// Test for generating a broadcastOp pattern.
// Used to generate customised patterns that may require optimised vertices.
//
#include <poplar/Engine.hpp>
#include <poplibs_support/TestDevice.hpp>
#include <pop... |
/*******************************************************************************
* CIFT : Compiler Instrumentation Function Tracer
*
* Copyright (c) 2011 <NAME> <EMAIL>
*
* This is free software released under the terms of the MIT license:
*
* Permission is hereby granted, free of charge, to any person obtaining a cop... |
#include "app_options.hpp"
#include "file_saver.hpp"
#include "magic_number.hpp"
#include "math_helpers.hpp"
#include "string_helpers.hpp"
#include "terrain_builder.hpp"
#include "ucfb_reader.hpp"
#include "glm/glm.hpp"
#include "tbb/task_group.h"
#include <gsl/gsl>
#include <array>
#include <cmath>
#include <cstdi... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkCorrelativeStatistics.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distrib... |
#include "ewmh.h"
#include <X11/Xatom.h>
#include <X11/Xlib.h>
#include <algorithm>
#include <cstdio>
#include "client.h"
#include "globals.h"
#include "hlwmcommon.h"
#include "layout.h"
#include "monitor.h"
#include "monitormanager.h"
#include "mousemanager.h"
#include "root.h"
#include "settings.h"
#include "stack.... |
#include <iostream>
#include <iomanip>
#include <sstream>
#include <fstream>
#include <string>
#include "color/color.hpp"
template < typename category_name >
std::string print_sizeof_one( )
{
std::stringstream ss;
if( false == ::color::trait::info< category_name >::meaningful_entity )
{
... |
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <array>
#include <vector>
static const int num_iter = 1000;
static const double gam = 1.4f;
static const double gm1 = gam - 1.0f;
static const double cfl = 0.9f;
static const double eps = 0.05f;
static const double mach = 0.4f;
stat... |
/* Copyright 1989, 1990 by Abacus Research and
* Development, Inc. All rights reserved.
*/
/* Forward declarations in ListMgr.h (DO NOT DELETE THIS LINE) */
#include <base/common.h>
#include <EventMgr.h>
#include <ToolboxEvent.h>
#include <ToolboxUtil.h>
#include <OSEvent.h>
#include <ControlMgr.h>
#include <ListM... |
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2009-2010 <NAME>
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <stdarg.h>
#ifndef WIN32
// for posix_fallocate
#ifdef __linux_
#ifdef _POSIX_C_S... |
/*
* Copyright (c) 2022, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Types.h>
#include <LibCompress/BrotliDictionary.h>
// Include the 119.9 KiB of dictionary data from a binary file
extern u8 const brotli_dictionary_data[];
#if defined(__APPLE__)
asm(".const_data\n"
".globl _br... |
/*
* ActSelection.cpp
*
* Created on: May 15, 2017
* Author: Carl
*/
#include "ActSelection.h"
void ActSelection::Init()
{
debug = false;
LevelsCompleted = 1; // How many levels player has unlocked
levelIndex = 1; // Current index for level
selectedLevel = -1; // Current index for level selected
/... |
//
// FILE NAME: CIDKernel_Error_Linux.Cpp
//
// AUTHOR: <NAME>
//
// CREATED: 10/20/1998
//
// COPYRIGHT: Charmed Quark Systems, Ltd - 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (<NAME>.) It is licensed under the MIT Open Source
// license:
//
// https://opensource.... |
// LASFormatFile.cpp: implementation of the CLASFormatFile class.
//
//////////////////////////////////////////////////////////////////////
#include "LASFormatFile.h"
#include <string.h>
#include <stdlib.h>
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
////////////////... |
/*
Authors:
<NAME>
<EMAIL>
*/
#include <stdio.h>
#include<unistd.h>
#include <stdlib.h>
#include <getopt.h>
#include <string.h>
#include <ctype.h>
#include <pthread.h>
#include "Auxiliary.h"
#include "Process_CommandLines.h"
#include "bwt.h"
int is_index = 0;
int is_search = 0;
int is_meth... |
#include "stdafx.h"
#include "General.h"
#include "BarbaUtils.h"
std::tstring BarbaUtils::GetModuleFolder()
{
TCHAR file[MAX_PATH];
::GetModuleFileName(NULL, file, MAX_PATH);
return GetFileFolderFromUrl(file);
}
bool BarbaUtils::GetPortRange(LPCTSTR value, u_short* startPort, u_short* endPort)
{
//VirtualIpRange
... |
//===---- CGDynamicCheck.cpp - Emit LLVM Code for Checked C Dynamic Checks -===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------------... |
#include "stdhdr.h"
#include "hdigi.h"
#include "sensors.h"
#include "falcmesg.h"
#include "simveh.h"
#include "fcc.h"
#include "sms.h"
#include "object.h"
#include "MsgInc\airaimodechange.h"
#include "campwp.h"
#include "falcsess.h"
#include "simdrive.h"
#include "camp2sim.h"
#include "campbase.h"
#include "team.h"
#i... |
#include "PyScaffolder.hpp"
#include "OptimalSlice.hpp"
#include "MeshOperation.h"
#include "implicit_function.h"
#include "QuadricSimplification.h"
#include "dualmc/dualmc.h"
#define LOG std::cout
#define IS_INSTANCE_ARRAYLIST(x) (py::isinstance<py::list>(x) || py::isinstance<py::tuple>(x) || py::isinstance<py::array... |
#pragma once
#include "Lib.hpp"
namespace Engine
{
//----------------------------------------------------------------------------//
// Log
//----------------------------------------------------------------------------//
#define LOG_MSG(level, msg, ...) Engine::LogMessage(level, msg, ##__VA_ARGS__)
#def... |
/************************************************************************************//**
// Copyright (c) 2006-2015 Advanced Micro Devices, Inc. All rights reserved.
/// \author AMD Developer Tools Team
/// \file
****************************************************************************************/
#include "w_cpip... |
#include "platform.h"
#include <stdio.h>
#include "jlib.hpp"
#include "jio.hpp"
#include "jmisc.hpp"
#include "jfile.hpp"
#include "jsuperhash.hpp"
#include "mpbase.hpp"
#include "mpcomm.hpp"
#include "portlist.h"
#ifdef _WIN32
#include <conio.h>
#else
#define _getch getchar
#define _putch putchar
#endif
#include "sac... |
// Copyright (C) 2000-2011 <NAME> and various contributors.
// Copyright (c) 2013 Intel Corporation. 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/tizen/mobile/ui/tizen_system_indicator_watcher.h"
#include <arpa/inet.h>
#in... |
// Copyright 2018 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 "media/capture/video/linux/fake_v4l2_impl.h"
#include <string.h>
#include <sys/mman.h>
#include <sys/time.h>
#include <unistd.h>
#include <queue... |
// $Id$
// Shotgun sequence simulator
//
// Simulates a set of paired/unpaired reads at a certain coverage.
// STL includes
#include <vector>
#include <algorithm>
#include <map>
#include <string>
// C++ includes
#include <fstream>
#include <iostream>
// generic C includes
#include <ctype.h>
#include <getopt.h>
#in... |
#include "DarkSDK.h"
#include "physics.h"
float g_fSpeed = 0.1f;
float g_fTurn = 0.03f;
float g_fOldCamAngleX = 0.0f;
float g_fOldCamAngleY = 0.0f;
float g_fCameraAngleX = 0.0f;
float g_fCameraAngleY = 0.0f;
void userInput ( void );
void showFPS ( void );
void DarkSDK ( void )
{
dbPhyStart ( );
... |
// this module refers throughout to "bonds" and "atoms", but the functions
// actually assume nothing about molecular structures and could be used
// for any similar object. the one exception is the handling of hydrogens,
// which are often "implicit" in calculations and graphical display,
// whether or not explicit a... |
/************ TabOccur CPP Declares Source Code File (.CPP) ************/
/* Name: TABOCCUR.CPP Version 1.2 */
/* */
/* (C) Copyright to the author <NAME> 2013 - 2017 */
/* ... |
#include <Ayo.h>
#include "ImGui/imgui.h"
#include "AppSettings.h"
class ExampleLayer : public Ayo::Layer
{
public:
ExampleLayer()
: Layer("Example")
{
SetupExampleScene();
Ayo::Time::Initialize();
}
void SetupExampleScene()
{
// Setup a mesh
m_NanosuitMo... |
#include "art/Framework/Art/detail/prune_configuration.h"
#include "art/Framework/Art/detail/exists_outside_prolog.h"
#include "art/Framework/Art/detail/fhicl_key.h"
#include "boost/algorithm/string.hpp"
#include "canvas/Utilities/Exception.h"
#include "cetlib/container_algorithms.h"
#include "fhiclcpp/extended_value.h... |
#include "App.h"
#include "Input.h"
#include "Textures.h"
#include "Audio.h"
#include "Render.h"
#include "Window.h"
#include "SceneGameplay.h"
#include "EntityManager.h"
#include "PathFinding.h"
#include "SceneLogo.h"
#include "SceneTitle.h"
#include "SceneWin.h"
#include "SceneLose.h"
#include "Input.h"
#include "Sce... |
/* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*-
*
* Copyright (c) 1996 Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* ... |
/********************************************************************************************
* NxWidgets/nxwm/src/glyph_minimize42x42.cxx
*
* Copyright (C) 2014 <NAME>. All rights reserved.
* Author: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are ... |
#include "GameLogic.h"
Line mainPV;
uint64_t endTime = 1000000000;
uint64_t nodeCounter = 0u;
#ifndef TRAIN
Weights<int16_t> gameWeights;
#else
Weights<double> gameWeights;
#endif
SearchGlobal glob;
Network network;
bool u_classical = false;
Value last_eval;
void initialize() {
gameWeights.l... |
// serialize.cpp - <NAME> - BSD-3-Clause (see LICENSE)
//
// Serialize / deserialize circuits & components
#include "serialize.h"
#include "lsim_context.h"
#include "model_circuit_library.h"
#include "model_circuit.h"
#include "error.h"
#include <cassert>
#include <unordered_map>
#include <pugixml.hpp>
namespace {
... |
///----------------------------------------------------------------------------------------
/**
* \file app.cpp
* \author <NAME>
* \date 2017/08/01
* \brief Runable code of project.
**/
///----------------------------------------------------------------------------------------
#include <gl/sce... |
#include <stdio.h>
#include <math.h>
#include "FieldPrime.h"
#include "EnigmaWrappers.h"
#include <intrin.h>
#pragma intrinsic(_BitScanReverse64)
int FieldPrime::num_live_field_elts = 0;
FieldPrime::FieldPrime(FieldDescription* field, int bitsPerElt) {
assert(field);
this->bits_per_elt = bitsPerElt;
... |
#include <stdio.h>
#include "opencv2/opencv.hpp"
#include <iostream>
#include <algorithm>
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "iostream"
using namespace cv;
int getPloarPeak(Mat &lineMat){
//Mat plate;
//plotter p(plate,cv::Size(800,800));
//p.plot_circle(plat... |
#include "PCA9539A.h"
#include <functional>
#include <iostream>
#include <cassert>
#include <cstring>
PCA9539A::PCA9539A() :
regs_(), pins_to_port_number_(),
pins_to_index_(),
pins_direction_(),
port_made_int_(P0) {
i2c_slave_ = CreateI2cSlave();
i2c_slave_->SetMasterReadCommand... |
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "RecoEcal/EgammaCoreTools/interface/EcalClusterLazyTools.h"
#include "RecoEcal/EgammaCoreTools/interface/EcalClusterTools.h"
#include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
#include "DataFormats/EcalDetId/interface/EcalSubdetector.... |
#include "Scheduler.h"
#include "AllQueueHeader.h"
#include <algorithm>
#include <fstream>
#include <sstream>
#include <time.h>
#include <queue>
#include<Windows.h>
INPUT_VALUES store;
struct poolDisplay { //to display the ID
void operator()(PCB* &a) const {
//cout << typeid(*a).name() << endl;
a->di... |
/* Copyright 2016 The TensorFlow 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 by applicable law or a... |
// $Id$
/*
Copyright (c) 2007-2012, Trustees of The Leland Stanford Junior University
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright... |
// Machine Interface
// <NAME> 2018
// Provides some wiring for the Bus Raider
// The ESP32 has three serial interfaces:
// - programming/logging
// - Pi
// - Target serial (e.g. Z80 68B50)
// The CommandSerial.h file contains code which communicates with the Pi using and HDLC frame protocol
// when a frame is ready ... |
/*
* (c) Copyright 2019 Xilinx, 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 ap... |
#include "DQM/SiStripCommissioningSummary/interface/CalibrationSummaryFactory.h"
#include "CondFormats/SiStripObjects/interface/CalibrationAnalysis.h"
#include "DataFormats/SiStripCommon/interface/SiStripEnumsAndStrings.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iostream>
#include <sstream>
... |
/*
* Copyright(c) 2019 Intel Corporation
* SPDX - License - Identifier: BSD - 2 - Clause - Patent
*/
/******************************************************************************
* @file SvtAv1E2EMultiInstantTest.cc
*
* @brief Impelmentation of multipule instant of encoder test at same time
*
* @author Cidana... |
#include "ira_laser_tools/laserscan_multi_merger.hpp"
#include <algorithm>
#include <string>
#include <limits>
#include <memory>
#include <map>
#include <vector>
#include <utility>
namespace laserscan_multi_merger
{
LaserscanMerger::LaserscanMerger()
: Node("laser_multi_merger")
{
destination_frame_ = this->declare... |
/*
* Copyright 2021 4Paradigm
*
* 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 w... |
#include <iostream>
#include <vector>
#include <assert.h>
#include <stdlib.h>
#include <time.h>
#include <cstdlib> // For srand() and rand()
#include <math.h>
#include "ros/ros.h"
// #include "underwater_path_planning/Path.h"
#include "underwater_path_planning/PathPlan.h"
#include <visualization_msgs/Marker.h>
#includ... |
#include "utils/MemoryMLFeatures.h"
#include "llvm/ADT/Optional.h"
#include "llvm/Analysis/CallGraph.h"
#include "llvm/Analysis/MemoryBuiltins.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/IR/CallSite.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Module.h"
#include... |
/* GRAPHITE2 LICENSING
Copyright 2010, SIL International
All rights reserved.
This library 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 License, or
(at yo... |
/*-----------------------------------------------------------------------------
Machine.cpp
Good Robot
(c) 2015 Pyrodactyl
This manages the complex vending machine objects that can be spread around
the gameworld. This is actually inherited from an fx object, just like bullets
and pickups, but this one is a bit too l... |
#include "App.h"
#pragma region KEY_STAGE
#define KEY_W 0
#define KEY_A 1
#define KEY_S 2
#define KEY_D 3
#define KEY_Q 4
#define KEY_E 5
#define KEY_ESC 6
#define KEYS_COUNT 7
struct _keyState {
SHORT keys[KEYS_COUNT];
} keysState1, keysState2;
void GetMousePosition(POINT* p) {
GetCursorPos(p);
ScreenToClient(G... |
#include "worker_thread.h"
#include "mono_functions.h"
#include "mono_profiler.h"
#include "logger.h"
#include <thread>
#include <string>
#include <execution>
#include <cassert>
#include <mono/metadata/object.h>
using namespace owlcat::mono_functions;
volatile size_t map_size = 0;
namespace owlcat
{
/*
A callbac... |
/**
* Copyright 2017 Food Tiny Project. 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 an... |
/*
Copyright (c) 2013, Regents of the University of Alaska
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 cond... |
// __BEGIN_LICENSE__
// Copyright (c) 2009-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NGT platform is licensed under the Apache License, Version 2.0 (the
// "License"); you may not use this file excep... |
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <ctime>
using namespace std;
// Fill the gameboard as it final state
void Init_GAMEBOARD( int ** GameBoard, int size ) ;
// Print the gameboard
void Print_GAMEBOARD( int ** GameBoard, int size ) ;
// if same return 1 , if it is not return 0
int Chec... |
/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
This softwa... |
#include "uts.h"
#include <Grappa.hpp>
#include <Cache.hpp>
#include <ParallelLoop.hpp>
#include <GlobalAllocator.hpp>
#include <Addressing.hpp>
#include <PerformanceTools.hpp>
#include <GlobalCompletionEvent.hpp>
#include <Array.hpp>
#include <Metrics.hpp>
#include <iostream>
#include <stdio.h>
/* ***************... |
// MIT License
//
// Copyright (c) 2019 degski
//
// 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, me... |
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include "../src/BigInteger.h"
#include <chrono>
namespace py = pybind11;
BigInteger to_biginteger(py::int_& value) {
/* The following code converts a py::int to byte array following the example here
* https://github.com/CityOfZion/neo-python/blob/f34... |
#include <cstdio>
#include <string>
#include <vector>
#include <set>
#include <cassert>
#include <cmath>
#include <queue>
#include <algorithm>
#define BUFFER_SIZE 1024
#define INFD 1e8
#define EPSLOOSE 0.1
#define EPS 1e-8
#define TOLERATE 2.0
using std::min;
using std::max;
using std::make_pair;
class Vector {
dou... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.