text stringlengths 5.71k 33.7k |
|---|
#include "version.h"
#include "export.h"
#include "tools/editor/editor_settings.h"
#include "tools/editor/editor_import_export.h"
#include "tools/editor/editor_node.h"
#include "io/zip_io.h"
#include "io/marshalls.h"
#include "io/resource_saver.h"
#include "globals.h"
#include "os/file_access.h"
#include "os/os.h"
#inc... |
#include<vector>
#include<string>
#include<iostream>
#include<ros/ros.h>
#include<com_msgs/RC.h>
#include<com_msgs/Status.h>
#include<sensor_msgs/Image.h>
#include<opencv2/opencv.hpp>
#include<cv_bridge/cv_bridge.h>
#include<sensor_msgs/image_encodings.h>
#include<image_transport/image_transport.h>
#include<rc_proc.h... |
/* $Id: ClpPrimalColumnSteepest.cpp 1955 2013-05-14 10:10:07Z forrest $ */
// Copyright (C) 2002, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
/*
Authors
<NAME>, <NAME>
Last update: april 10, 201... |
//--------------------------------------------------------------------------
// MIT License
//
// Copyright (c) 2021 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without rest... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
/**
* \file src/opr/impl/dnn/batch_norm.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "A... |
#define REPORT_DEFINE_GLOBALS
#include <tlm.h>
#include <systemc.h>
#include <cstdlib>
#include <signal.h>
#include <unistd.h>
#include <vector>
#include <string>
#include <fstream>
#include <random>
#include <hardware/tile.hpp>
#include <hardware/memory.hpp>
#include <hardware/axi.hpp>
#include <software/channel.h... |
//=======================================================================
// Copyright (c) 2013-2020 <NAME>.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=======================================================================
... |
//date --set="01 Sep 2015 16:00:00"
//Opencv
#include <opencv2/opencv.hpp>
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/core/core.hpp"
#include "opencv2/contrib/contrib.hpp"
#include "opencv2/highgui/highgui.hpp"
//C++
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <... |
//
// Copyright (c) 2013 MASA Group <EMAIL>
//
// 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 of this software.
// Permission is granted to anyone to use this software for any purpose,
// including co... |
#include "lt.h"
/*
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,... |
// $Id: compile-lm.cpp 3677 2010-10-13 09:06:51Z bertoldi $
/******************************************************************************
IrstLM: IRST Language Model Toolkit, compile LM
Copyright (C) 2006 <NAME>, ITC-irst Trento, Italy
This library is free software; you can redistribute it and/or
modify it unde... |
// Name: JetAnaPythia
// Description: Example of analysis of Pythia produced partons & jets
// Based on Kostas Kousouris' templated JetPlotsExample.
// Plots are tailored to needs of dijet mass and ratio analysis.
// Author: <NAME>
// Date: 28 - Oct - 2008
#include "RecoJets/JetAnalyzers/i... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2022 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
#include "Graph.h"
#include <queue>
#include <algorithm>
#include <boost/math/constants/constants.hpp>
namespace {
double clamp(double val, double min, double max) {
return std::max(min, std::min(max, val));
}
bool pointOnLine(const std::array<cglib::vec3<double>, 2>& line, const cglib::vec3<dou... |
// Copyright (c) 2009-2022 The Regents of the University of Michigan.
// Part of HOOMD-blue, released under the BSD 3-Clause License.
// this include is necessary to get MPI included before anything else to support intel MPI
#include "hoomd/ExecutionConfiguration.h"
#include <fstream>
#include <functional>
#include... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 by EMC Corporation, 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... |
/** @file
*****************************************************************************
SHA2-specific gadgets.
*****************************************************************************
* @author This file is part of libsnark, developed by SCIPR Lab
* and contributors (see AUTHORS).
* @copyrig... |
/*
OneLoneCoder_PGE_ShadowCasting2D.cpp
What is this?
~~~~~~~~~~~~~
This is an implementation of two algorithms that work together
to produuce a "line-of-sight" or "shadow casting" effect depending
upon your perspective. To use it compile with olcPixelGameEngine.h,
place/remove blocks with left click and hold d... |
#include "gtest/gtest.h"
#include "lib/datastructures/unit_flow.hpp"
#include <algorithm>
#include <numeric>
#include <vector>
/**
Make sure 'addEdge' adds an edge in both ways with the correct 'backIdx'.
*/
TEST(UnitFlow, AddEdge) {
const int n = 3;
const std::vector<UnitFlow::Edge> es = {{0, 1, 5}, {0, 2, ... |
/*
* Copyright (c) 2003-2017 <NAME> <<EMAIL>>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
/// \file Match.cpp
//--------... |
#include <fstream>
#include <ftl/streams/filestream.hpp>
#include <ftl/timer.hpp>
#define LOGURU_REPLACE_GLOG 1
#include <loguru.hpp>
using ftl::stream::File;
using ftl::codecs::StreamPacket;
using ftl::codecs::Packet;
using std::get;
using ftl::codecs::Channel;
File::File(nlohmann::json &config) : Stream(config), o... |
/*
* Copyright (c) 2017-2020 ARM Limited
* Copyright (c) 2017-2020 STMicroelectronics
* SPDX-License-Identifier: Apache-2.0
*
* 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
*
* ht... |
/*
* Copyright (c) 2015 ARM Limited. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
* 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... |
/*
* Copyright (c) 2018 <NAME>
*
* Distributed under the MIT License. See LICENSE.md at
* https://github.com/LiquidPlayer/LiquidCore for terms and conditions.
*/
#include "HeapObjects.h"
#include "Isolate.h"
#include "Context.h"
using namespace V82JSC;
using namespace v8;
HeapObject * HeapAllocator::Alloc(Isola... |
// AMD AMDUtils code
//
// Copyright(c) 2018 Advanced Micro Devices, Inc.All rights reserved.
//
// Vulkan Samples
//
// Copyright (C) 2015-2016 Valve Corporation
// Copyright (C) 2015-2016 LunarG, Inc.
// Copyright (C) 2015-2016 Google, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a... |
/*****************************************************************************
Copyright (c) 2012, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License... |
#include "burnint.h"
#include "8255ppi.h"
#define MAX_PPIS 3
PPIPortRead PPI0PortReadA;
PPIPortRead PPI0PortReadB;
PPIPortRead PPI0PortReadC;
PPIPortWrite PPI0PortWriteA;
PPIPortWrite PPI0PortWriteB;
PPIPortWrite PPI0PortWriteC;
PPIPortRead PPI1PortReadA;
PPIPortRead PPI1PortReadB;
PPIPortRead PPI1PortReadC;
PPIPort... |
/*
Part of Newcastle University's Game Engineering source code.
Use as you see fit!
Comments and queries to: richard-gordon.davison AT ncl.ac.uk
https://research.ncl.ac.uk/game/
*/
#include "Matrix4.h"
#include "Matrix3.h"
#include "Maths.h"
#include "Vector3.h"
#include "Vector4.h"
#include "Quaternion.h"
using nam... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during i... |
#include "main.h"
#include "timer.h"
#include "sea.h"
#include "boat.h"
#include "objects.h"
#include "enemy.h"
using namespace std;
GLMatrices Matrices;
GLuint programID;
GLFWwindow *window;
/**************************
* Customizable functions *
**************************/
vector<Sphere> sphere;
vector<Cube> ... |
/*********************************************************************
*
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, University of Pennsylvania
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followi... |
// ==============================================================================================
// This file is part of the VRmagic VRmUsbCam2 C API Demo Application
// ==============================================================================================
// Camera Reading / Main Loop
// ---------------------... |
// ==============================================================
// ORBITER MODULE: Surveyor
// Copyright (C) 2022 <NAME>
// Released under the MIT License
//
// AutoPilot.cpp
// Autopilot implementation for Surveyor
//
// ============================================... |
#include "MyFrameMain.hpp"
#include <wx/rawbmp.h>
#include <wx/msgdlg.h>
#include <sstream>
#include <wx/dcclient.h> // For wxPaintDC
#include <wx/dcbuffer.h> // For wxBufferedPaintDC
#include <random>
#include <algorithm>
#include <array>
#include <thread>
#include <cmath>
#include <functional> // For std::ref
//#in... |
#include <Eigen/Cholesky>
#include <Eigen/Dense>
#include "Object.hpp"
const double PI = 3.141592653589793238;
void Object::internalProjection(const Eigen::Vector2d& obs) {
HeapType heap(edges);
for (size_t i = 0; i < edges.size(); i++) {
if (edges[i].valid)
heap.emplace(i);
}
whi... |
/** <NAME>, Drew University
* evaluate 3D mean value interpolant
* inputs must be transposed!!!! remember fortran C differenc row first vs columns first
* follows the pseudocode in Ju et al.*/
//#include "mex.h"
#include "stdafx.h"
#include "MeanValueCoordinate.h"
MeanValueCoordinate::MeanValueC... |
/** @file
@brief Main file for a unified video-based and inertial tracking system.
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance ... |
/*
*
* Copyright 2021 <NAME> and <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 ... |
#include "Game.h"
#include <SFML/Graphics.hpp>
#include <algorithm>
#include <random>
class RandomShapeFactory {
public:
static std::unique_ptr<TetrominoGraphic> create(GridLogic& grid_logic,
GridGraphic& grid_graphic) {
TetrominoPositionType init_pos... |
//
// Created by Fermi on 2017/11/18.
//
#include "processor.h"
processor::processor(string& model_file) :
_svm(Algorithm::load<SVM>(model_file)), _scale(1.0),
_hog(HOGDescriptor(Size(28, 28), Size(14, 14), Size(7, 7), Size(14, 14), 9, 1, -1, 0, 0.2, 0, 64, 1)) {
}
bool processor::tackle(sudoku s) {
... |
#include "AppWindow.h"
#include <stdlib.h>
#include <Application.h>
#include <Alert.h>
#include <Debug.h>
#include <Directory.h>
#include <Entry.h>
#include <File.h>
#include <FindDirectory.h>
#include <fs_info.h>
#include <InterfaceDefs.h>
#include <image.h>
#include <LayoutBuilder.h>
#include <Message.h>
#include <... |
/*
BSD 2-Clause License
Copyright (c) 2020, <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:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions a... |
/**
* \file draw_ay_range.cpp
* \brief Draws CS given yields as input.
*
*/
#include <numeric>
#include <type_traits>
#include "TROOT.h"
#include "TLegend.h"
#include "cli.hpp"
#include "init_ds.hpp"
#include "consts.hpp"
#include "csalg.hpp"
#include "beam.hpp"
#include "drawing.hpp"
#include "cuts_conf.hpp... |
#include "midgard/vector2.h"
#include "midgard/point2.h"
#include "midgard/util.h"
#include "test.h"
using namespace std;
using namespace valhalla::midgard;
namespace {
void TestCtorDefault() {
Vector2 target;
Vector2 expected{0.0f, 0.0f};
if (!(expected == target))
throw runtime_error("CtorDefault test fa... |
/* ---------------------------------------------------------------------------------
Implementation file of RECORDER class
Copyright (c) 2011-2013 AnS
(The MIT License)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software")... |
//===============================================================================
//
// Microsoft Press
// C++ AMP: Accelerated Massive Parallelism with Microsoft Visual C++
//
//===============================================================================
// Copyright (c) 2012-2013 <NAME> & <NAME>. All rights... |
// Compile with mex -v -largeArrayDims arena_packet_strip_tcp_mex.cpp
// -v: verbose
// -largeArrayDims: required for 64 bit
// Note: Matlab automatically deallocates memory from mx*alloc
// Note: Usually you need to cd into the directory containing the .cpp file before compiling
//
// Reads TCP/IP datastream R... |
#include <FastLED.h>
#include <ESP8266WiFi.h> // Include the Wi-Fi library
#include <PubSubClient.h>
#include <worldconst.h>
#include <networking.h>
// How many leds in your strip?
#define NUM_LEDS 66
// For led chips like WS2812, which have a data line, ground, and power, you just
// need to define DATA_PIN.... |
/*
*--------------------------------------------------------------------------
* NATIONAL UNIVERSITY OF SINGAPORE - NUS
* SINGAPORE INSTITUTE FOR NEUROTECHNOLOGY - SINAPSE
* Singapore
* Last update: 04/04/2018
*--------------------------------------------------------------------------
* Authors: <NAME>
* ... |
#include <Python.h>
#include <numpy/arrayobject.h>
#include "../src/icp/icp.h"
#include <string>
// docstrings for our module
// *************************
static char module_docstring[] = "This module provides a method to compute point to plane icp";
static char map_pt2pl_docstring[] = "Method that per... |
#include <ros/ros.h>
#include <std_srvs/Empty.h>
#include <sensor_msgs/Image.h>
#include <sensor_msgs/SetCameraInfo.h>
#include <cv_bridge/cv_bridge.h>
#include <image_transport/image_transport.h>
#include <camera_calibration_parsers/parse.h>
#include <sensor_msgs/image_encodings.h>
#include "media_server/StubSource.hp... |
/*
* Copyright 2011 <NAME> & <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... |
/**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include "... |
/* Copyright 2018, Roboti LLC
This file is licensed under the MuJoCo Resource License (the "License").
You may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.roboti.us/resourcelicense.txt
*/
#include <windows.h>
#include <thread>
#in... |
#include <caffe2/core/init.h>
#include <caffe2/core/tensor.h>
#include "blob.h"
#include "model.h"
#include "net.h"
#include "cmd.h"
C10_DEFINE_string(model, "char_rnn", "The RNN model.");
C10_DEFINE_string(train_data, "shakespeare.txt",
"/home/ryan/caffe2_cpp_tutorial-master/res/shakespeare.txt"... |
/* _ _
* _ __ ___ (_)_ __ | | __
* | '_ ` _ \| | '_ \| |/ /
* | | | | | | | | | | <
* |_| |_| |_|_|_| |_|_|\_\
*
* SPDX-License-Identifier: MIT
*
*/
#include "ws_server.h"
#include <json_rpc.h>
#include <daemon.h>
#include <atomic.h>
#include <gdt.pb.enums_only.h>
#include <zlib.h>
using d... |
#include "writer.hpp"
#include <iostream>
extern "C"{
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavutil/avutil.h>
#include <libavutil/time.h>
#include <libavutil/opt.h>
}
extern bool sDebug;
class ffmpeg_writer : public output_writer
{
/* check that a given ... |
#include "LinearHexaFullFormulation.hpp"
#include "domain/elements/ElementGeometry.hpp"
#include "domain/elements/FiniteElement.hpp"
#include "domain/elements/MatrixOption.hpp"
#include "domain/materials/MaterialModel.hpp"
#include "domain/physics/InfinitesimalState.hpp"
#include "domain/physics/UpdatedPhysicalState.hp... |
#include <vector>
#include <complex>
#include <cassert>
#include <utility>
#include <sstream>
#include <algorithm>
#include <functional>
#include <type_traits>
#include <iterator>
#include <spead2/send_stream.h>
#include <spead2/send_udp.h>
#include <spead2/common_endian.h>
#include "common.h"
#include "stats.h"
#defi... |
#include <iostream>
#include <iomanip>
#include <fstream>
#include <algorithm>
using std::cout;
#include "PJM_cline.h"
#include "LogPot.h"
#include "Torus.h"
#include "Random.h"
#include "FreeMemory.h"
#include "TNT_JAMA/jama_eig.h"
#include "WDMath.h"
// Torus InterpTorus(Torus ***Tgrid,Actions Jbar,Actions dJ,Ac... |
#include "par2vec.hpp"
#include "utils.hpp"
Par2Vec::Par2Vec(Corpus &corpus,
long long wordvec_dim,
int window_size,
real learning_rate,
int use_dm,
int use_dbow,
int use_hs,
int negative,
real sample,
int num_i... |
///////////////////////////////////////////////////////////////////////////////
// Copyright (c) Electronic Arts Inc. All rights reserved.
///////////////////////////////////////////////////////////////////////////////
#include <EABase/eabase.h>
#include <EAStdC/EAHashString.h>
#include <EAStdC/EAHashCRC.h>
#include ... |
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
#include <DNSServer.h>
#include <Ticker.h>
#include <ArduinoLog.h>
#include "WifiConfigStorage.h"
#include "FS_Persistence.h"
#include "HTMLHandler.h"
#include <ArduinoOTA.h>
#include <FS.h>
#include "ValveHandler.h"
#include "EEPROMWifiSto... |
#include "graphics/DirectionField.h"
#include "graphics/Window.h"
#define GL_GLEXT_PROTOTYPES
#include <GL/freeglut.h>
#include <queue>
#include <algorithm>
#include <iostream>
struct Segment {
glm::vec2 _a, _b, _v;
float _len;
Segment(const glm::vec2 &a, const glm::vec2 &b): _a(a), _b(b), _v(b-a) {
_len = glm... |
#pragma once
#include "../../sdk/structs/materials.hpp"
#include "../utilities/xor.h"
#define DECLARE_POINTER_HANDLE(name) struct name##__ { int unused; }; typedef struct name##__ *name
#define MAXSTUDIOSKINS 32
// These are given to FindMaterial to reference the texture groups that Show up on the
#define TEXTURE_GRO... |
/*
* (C) 2003-2006 Gabest
* (C) 2006-2020 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE 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 opt... |
///////////////////////////////////////////////////////////////////////////////
//FILE: 'environment.cpp'
//Contains 'environment' module of class 'Flat6'
//
//100424 Created by <NAME>
///////////////////////////////////////////////////////////////////////////////
#include "class_hierarchy.hpp"
//////////////////////... |
#include <sstream>
#include <map>
#include "genfile/bgen/View.hpp"
#include "genfile/bgen/IndexQuery.hpp"
#include <Rcpp.h>
// #define DEBUG 1
namespace {
template< typename Integer >
std::string atoi( Integer const value ) {
std::ostringstream stream ;
stream << value ;
return stream.str() ;
}
struct Dat... |
/* Copyright (c) 2021 <NAME>
*
* This file is part of the Laplace project.
*
* Laplace is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
* the MIT License for more details.
*/
#inc... |
/*
* Majority of this code is copied from slang/driver
*/
#include <fstream>
#include "../src/builder/builder.hh"
#include "../src/codegen//util.hh"
#include "../src/ir/except.hh"
#include "slang/compilation/Compilation.h"
#include "slang/diagnostics/DeclarationsDiags.h"
#include "slang/diagnostics/DiagnosticEngine.... |
/*eLiSe06/05/99
Copyright (C) 1999 <NAME>
eLiSe : Elements of a Linux Image Software Environment
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... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
// TeleportedSphereSphereConstraint.cpp
//
// <NAME>
// Last updated: 09/22/2015
#include "TeleportedSphereSphereConstraint.h"
#include "FrictionUtilities.h"
#ifndef NDEBUG
#include "scisim/Math/MathUtilities.h"
#endif
TeleportedSphereSphereConstraint::TeleportedSphereSphereConstraint( const unsigned idx0, const un... |
/* Copyright 2014-2017 Rsyn
*
* 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 wr... |
auto SA1::readIOCPU(n24 address, n8 data) -> n8 {
cpu.synchronize(sa1);
switch(0x2200 | address.bit(0,8)) {
//(SFR) S-CPU flag read
case 0x2300:
data.bit(0,3) = io.cmeg;
data.bit(4) = io.cpu_nvsw;
data.bit(5) = io.chdma_irqfl;
data.bit(6) = io.cpu_ivsw;
data.bit(7) = io.cpu_irqfl;
... |
#include <iostream> //input/output stream provides with cin and cout function
#include <windows.h> //provides system functions like sleep function etc
#include <cstdlib> //c standard library provides random numbers function
#include <conio.h> //C header file used mostly by MS-DOS compilers to provide console input/... |
/*
* Copyright (c) 2002-2009,2011-2012,2014 Apple Inc. All Rights Reserved.
*
* The contents of this file constitute Original Code as defined in and are
* subject to the Apple Public Source License Version 1.2 (the 'License').
* You may not use this file except in compliance with the License. Please obtain
* a co... |
/*
* A Demo to OpenCV Implementation of SURF
* Further Information Refer to "SURF: Speed-Up Robust Feature"
* Author: <NAME>
* <EMAIL>
*/
#include <opencv2/objdetect/objdetect.hpp>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/hig... |
#include <rocksdb/db.h>
#include <rocksdb/options.h>
#include <rocksdb/table.h>
#include <terark/hash_strmap.hpp>
#include <terark/util/throw.hpp>
#include "rocksdb/utilities/write_batch_with_index.h"
#include "terark_zip_common.h"
#include "terark_zip_table.h"
#ifdef _MSC_VER
#include <Windows.h>
#define strcasecmp ... |
#include <string>
#include <iostream>
#include <fstream>
#include <map>
#include <vector>
#include "validate.h"
#include "statement.h"
#include "table.h"
#include "repl.h"
using namespace logicians;
ReplEnvironment::ReplEnvironment(std::map<std::string, std::string> set_flags) {
flags = set_flags;
if (flags... |
// Copyright 2016 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 "core/frame/Deprecation.h"
#include "core/dom/Document.h"
#include "core/dom/ExecutionContext.h"
#include "core/frame/FrameConsole.h"
#include "... |
#include <stdio.h>
#include "open62541.h"
#include <assert.h>
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <queue>
#include <signal.h>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <unistd.h>
typede... |
// Copyright (c) 2010 <NAME>
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Copyright (c) 2019-2021 Uladzimir (https://t.me/vovanchik_net)
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chainparams.h>
#incl... |
#include <ShineNgine/piecewiseCurveBuilder.hpp>
#include <ShineNgine/krwcd.hpp>
#ifdef BOOST_MSVC
# include <ql/auto_link.hpp>
#endif
#include <iostream>
#include <iomanip>
using namespace QuantLib;
using namespace std;
using namespace PiecewiseCurveBuilderNamespace;
#if defined(QL_ENABLE_SESSIONS)
{
... |
/*
This file is a part of the wiringBone library
Copyright (C) 2015 <NAME>
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 3 of the License, or (at your ... |
///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2017, <NAME>, all rights reserved.
//
// ACADEMIC OR NON-PROFIT ORGANIZATION NONCOMMERCIAL RESEARCH USE ONLY
//
// BY USING OR DOWNLOADING THE SOFTWARE, YOU ARE AGREEING TO THE TERMS OF THIS
// LICENSE AGREEMENT. IF YOU DO ... |
/*
N2kDataToNMEA0183.cpp
Copyright (c) 2015-2018 <NAME>, <NAME>, www.kave.fi
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,
c... |
#include "SimpleSRV.h"
// -------- Minimum includes for this module --------------------------------------
#include <ESP8266WebServer.h>
#include <FS.h>
#include <cpuClass.h>
#include <eepClass.h>
// ------ Expected definitions/allocations in main() ------------------------------
extern ESP8266WebS... |
/*
* Copyright (c) 2009-2011, NVIDIA Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* ... |
#include "iDEC.h"
#include <algorithm>
#include <bitset>
#include <fstream>
#include <random>
#include "IdecException.h"
#include "IdecUtils.h"
/* Local Constants */
static const size_t ONE_KB = 1024; // 1 KB
static const size_t ONE_MB = ONE_KB * 1024; // 1 MB
static const size_t ONE_GB = ONE_MB... |
#include <string>
#include <termox/system/system.hpp>
#include <termox/widget/align.hpp>
#include <termox/widget/array.hpp>
#include <termox/widget/layouts/float.hpp>
#include <termox/widget/layouts/horizontal.hpp>
#include <termox/widget/layouts/vertical.hpp>
#include <termox/widget/pipe.hpp>
#include <termox/widget/... |
/*
* Score.cc for Legend of Saladir
*
* (C)1997/1998 by <NAME>
*
* Score board
*
*/
#include "saladir.h"
#include "output.h"
#include "inventor.h"
#include "file.h"
#include "classes.h"
#include "score.h"
/* prototypes */
bool score_save(Tscore *);
bool score_checksum(Tscore *score, bool set);
//const char... |
// _____________________________________________________________________________________________________________________________________________
// FILE.DESCRIPTOR...FILE.DESCRIPTOR...FILE.DESCRIPTOR...FILE.DESCRIPTOR...FILE.DESCRIPTOR...FILE.DESCRIPTOR...FILE.DESCRIPTOR...FILE.DESCRIPTOR
// __________________________... |
#include "../nice_tree/draw_nice.h"
#include "bell_dp.h"
#include "bell_reducer.h"
#include "dsu.h"
#include "fly_dsu.h"
static void NiceDebugger(Bell& bell) {
ofstream f1("decomposition.dot");
ofstream f2("graph.dot");
Draw(bell.tree, bell.bags, bell.is_terminal, f1);
DrawGraph(bell.graph, bell.is_terminal, f... |
#include "octree_driver.h"
#include "geometric_operations.h"
OctreeDriver::OctreeDriver()
{
octree_bin=new Octree();
}
OctreeDriver::~OctreeDriver()
{
delete octree_bin;
}
int compare (const void * a, const void * b){
return ( *(int*)a - *(int*)b );
}
int OctreeDriver::SubdivideCell(OctreeCell*... |
#include "EnergyPlugin.h"
#include "search_common.h"
const std::string EnergyPlugin::ENERGY = "Energy";
const std::string EnergyPlugin::TIME = "Time";
EnergyPlugin::EnergyPlugin() : app( Application::instance() ), numberOfProcsTP( NULL ), numberOfThreadsTP( NULL ), frequencyTP( NULL ), searchAlgorithm( NULL ), ... |
#include "stdafx.h"
#include <vector>
#include <Eigen/Dense>
#include <Eigen/SVD>
#include <Eigen/Cholesky>
#include <Eigen/Sparse>
#include <Eigen/SparseCholesky>
#include <iostream>
#include <math/func.h>
#include <math/matrix.h>
#include <math/SparseBlockSquareMatrix.h>
#include <import.h>
#include <api/cl_wra... |
#include "W25QXX.h"
u16 W25QXX_TYPE = W25Q32; //??????W25Q32
//??????SPI FLASH??IO??
W25QXX::W25QXX(SPI& SPIx, GPIO_TypeDef* CSPortx, u16 CSPinx) :mSPI(SPIx)
{
mCSPort = CSPortx;
mCSPin = CSPinx;
GPIO_InitTypeDef GPIO_InitStructure;
if (mCSPort == GPIOA)
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE);//... |
int
r, gWD ,
G3O
, fIU ,
fDB
,DxH,Cf9,QmBB ,MSGB, fPo , Z4K//uI
,
bjd
,
Bp ,XBO
,
r4,MhvR
,atpz ,
uw1
, qDY,
cOiga ,kb, CA,ekgS
, Wyn9/*IP*/, K9 ,
xPGAU ,
l,oBN/*a*/
,SUp
, fM
;
void
f_f0
(){ volatile int xY ,
uA, Sro ,M3W
,G5c
, YU,nd6J ;
for (int i=1;
i<1;++i){ int
YGSwX
;
volatile in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.