text stringlengths 3.08k 22k |
|---|
#include <iostream>
#include <string>
#include <fstream>
#include <ros/ros.h>
#include <tf/transform_listener.h>
#include <tf/transform_broadcaster.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/image_encodings.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/c... |
/**
* Copyright (C) 2019-2022 Xilinx, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
#include "CalibTracker/SiPixelConnectivity/interface/PixelToFEDAssociateFromAscii.h"
#include "DataFormats/SiPixelDetId/interface/PixelBarrelName.h"
#include "DataFormats/SiPixelDetId/interface/PixelEndcapName.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <ostream>
#include <fstream>
#include ... |
// -*- tab-width: 4; -*-
// vi: set sw=2 ts=4 expandtab:
// Copyright 2010-2020 The Khronos Group Inc.
// SPDX-License-Identifier: Apache-2.0
//!
//! @internal
//! @~English
//! @file
//!
//! @brief Create Images from PNG format files.
//!
//! @author <NAME>, HI Corporation.
//! @author <NAME>uml;m, Ericsson AB.
//!
... |
// Program: nes-py
// File: ppu.cpp
// Description: This class houses the logic and data for the PPU of an NES
//
// Copyright (c) 2019 <NAME>. All rights reserved.
//
#include "ppu.hpp"
#include "palette.hpp"
#include "log.hpp"
#include <cstring>
void PPU::reset() {
is_long_sprites = is_interru... |
#include "dns_server.hpp"
#include <boost/program_options.hpp>
#include <iomanip>
#include <iostream>
const int TTL = 600;
const unsigned int PERIOD_MICRO_SECOND = 10;
const char * RESPONSE_A = "192.168.0.1";
const std::string SUBDOMAIN1 = "1234567890"
... |
/**
* asp_therm - implementation of real gas equations of state
*
*
* Copyright (c) 2020-2021 <NAME>
*
* This library is distributed under the MIT License.
* See LICENSE file in the project root for full license information.
*/
#include "file_structs.h"
#include "asp_utils/Logging.h"
#include "atherm_common.h"... |
#include <cstdio>
const int maxn = 301;
int n, m, f[maxn][maxn], g[maxn][maxn];
char buf[maxn];
int main() {
scanf("%d%d", &m, &n);
for(int i = 1; i <= n; ++i) {
scanf("%s", buf);
for(int j = 1; j <= m; ++j)
f[i][j] = buf[j - 1] == '#';
}
int lx = 0, ly = 0;
while(n > 2 && m > 2) {
int px = 0, py = 0;
f... |
#include <stdlib.h>
#include <unistd.h>
#include <ola/DmxBuffer.h>
#include <ola/Logging.h>
#include <ola/client/StreamingClient.h>
#include <iostream>
#include <cmath>
#include <stdio.h>
#include <time.h>
#include <math.h>
#include <sys/time.h>
#include <cstdlib>
#include "NanoKontrol2.h"
using std::cout;
using std::... |
#include "displayComponents.h"
#include <imgui/imgui.h>
#include "editor.h"
#include "ecs/system.h"
#include "ecs/ecs.h"
#include "core/io/logger.h"
#include "core/container/hash_map.h"
#include "core/container/string_view.h"
#include "graphics/assets/assets.h"
hash_map<sstring, OnInspectGUICallback, 103> override_in... |
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2008-2016 Pelican Mapping
* http://osgearth.org
*
* osgEarth 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 ver... |
#include "rein.h"
void Rein::insert(IntervalSub &sub, int64_t &origintime)
{
Timer t;
double poss = 1;
int level;
for(int j = 0; j < sub.size; ++j){
IntervalCnt &cnt = sub.constraints[j];
poss *= (cnt.highValue-cnt.lowValue)*1.0/valDom;
}
level = (int) floor(log(poss)/log(0.1)/Dom*newlevel);
if(le... |
#include <bangtal>
#include <iostream>
using namespace bangtal;
using namespace std;
extern void dormitory_main();
extern int magicalHerb(const string ch);
extern void animalGame();
extern int Quidditch(const string ch);
extern void astronomyGame();
extern void MaraudersMap_main();
const int gameMax = 5;
static in... |
#include "clientmanager.h"
#include <X11/Xlib.h>
#include <algorithm>
#include <string>
#include "attribute.h"
#include "client.h"
#include "completion.h"
#include "decoration.h"
#include "ewmh.h"
#include "globals.h"
#include "ipc-protocol.h"
#include "monitor.h"
#include "monitormanager.h"
#include "mousemanager.h"... |
/**
* 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... |
/*-------------------------------------------------------------------------
*
* FILE
* pipeline.cxx
*
* DESCRIPTION
* implementation of the pqxx::pipeline class
* Throughput-optimized query manager
*
* Copyright (c) 2003-2011, <NAME> <<EMAIL>>
*
* See COPYING for copyright license. If you did not... |
/* FILE: stagezeeman.cc -*-Mode: c++-*-
*
* Uniform Zeeman (applied field) energy, derived from Oxs_ChunkEnergy class,
* specified from a Tcl proc.
*
*/
#include "oc.h"
#include "nb.h"
#include "director.h"
#include "stagezeeman.h"
// Oxs_Ext registration support
OXS_EXT_REGISTER(Oxs_StageZeeman);
... |
#pragma once
#include "IClientNetworkable.hpp"
#include "IClientRenderable.hpp"
#include "IClientUnknown.hpp"
#include "IClientThinkable.hpp"
struct SpatializationInfo_t;
class IClientEntity : public IClientUnknown, public IClientRenderable, public IClientNetworkable, public IClientThinkable
{
public:
virtual void ... |
#define DEBUG 1
// Collections
#include <vector>
#include <set>
// Other stdlib stuff
#include <string>
#include <iostream>
#include <csignal> // For the signal() function
// Third party
#include <nlohmann/json.hpp>
#include <curl/curl.h>
// Cross-platform sleep
#include <thread>
#include <chrono>
// Debug/showcas... |
// _ _____ __________
// | | / / _ | / __/_ __/ Visibility
// | |/ / __ |_\ \ / / Across
// |___/_/ |_/___/ /_/ Space and Time
//
// SPDX-FileCopyrightText: (c) 2016 The VAST Contributors
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include "vast/detail/bit.hpp"
#include "v... |
/*
* Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates
*
* 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 req... |
/*
* kmp_stub.cpp -- stub versions of user-callable OpenMP RT functions.
*/
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source License... |
#include "headers/parser.h"
#include "headers/Point.h"
int readPointsFile(string filename, vector<Point*> *points, vector<Point*> *normalList, vector<float> *textureList){
string l, t; int index,j;
ifstream file(filename);
string token;
vector<float>tokens;
int i;
if (!file.is_open()) {
... |
/*
Copyright (c) 2012, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following ... |
/*******************************************************************************
* Copyright 2017 ROBOTIS CO., LTD.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... |
/*!
\file asnCertificate.cpp
\copyright (c) <NAME> ( <EMAIL> )
\licence BSD
\author $Author$
\date $Date$
*/
// Revision $Revision$
#include "precompiled.h"
#include "asnCertificate.h"
#include <sstream>
#include <time.h>
#define idSubjectAltName "172.16.17.32"
#define idKeyUsage "2.5.29.15"
#define idExtKeyU... |
//
// 彩色数を求める O(N2^N) のアルゴリズム
//
// cf.
// https://drken1215.hatenablog.com/entry/2019/01/16/030000
//
// verified
// AOJ 2136 Webby Subway
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=2136
//
#include <iostream>
#include <vector>
#include <cmath>
#include <iomanip>
using namespace std;
// 彩色... |
#include <iostream>
#include <string>
#include <vector>
#include <stdio.h>
#include <unistd.h>
#include <time.h>
#include <string.h>
#include <pthread.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/socket.h>
#include "rapidjson/document.h"
#include "rapidjson/writer.h"
#include "... |
//###########################################################################
// App.cpp
// Top level application class
//
// $Copyright: Copyright (C) LDO Systems
//###########################################################################
#include "App.h"
App::App()
{
for (int i = 0; i < num_encoders; ++i)
{
en... |
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "IMeshPainter.h"
#include "Editor.h"
#include "IMeshPaintGeometryAdapter.h"
#include "MeshPaintSettings.h"
#include "MeshPainterCommands.h"
#include "MeshPaintHelpers.h"
#include "ScopedTransaction.h"
#include "VREditorMode.h"
#include "IVREditorM... |
// Include files
// local
#include "L1Trigger/RPCTechnicalTrigger/interface/RBCProcessRPCDigis.h"
#include "L1Trigger/RPCTechnicalTrigger/interface/RBCLinkBoardGLSignal.h"
#include "DataFormats/Common/interface/Handle.h"
#include "GeometryConstants.h"
//--------------------------------------------------------------... |
#include<string>
#include<iostream>
#include<fstream>
#include<sstream>
#include"helpers.cpp"
using namespace std;
struct Config{
string shortcut_icon;
string icon;
string name;
string description;
string twitter_creator;
string header;
string footer;
};
Config * configPar... |
////////////////////////////////////////////////////////////////////////////
// Module : ai_zombie.cpp
// Created : 23.04.2002
// Modified : 07.11.2002
// Author : <NAME>
// Description : AI Behaviour for monster "Zombie"
////////////////////////////////////////////////////////////////////////////
#inclu... |
/*
Author(s): <NAME> (mm864)
Project: sprog (gas-phase and surface chemical kinetics).
Sourceforge: http://sourceforge.net/projects/mopssuite
Copyright (C) 2012 <NAME>.
File purpose:
Implementation of the Stoichiometry class declared in the
gpc_Delta_stoich.h header file.
Licence:
... |
/*
* Copyright (c) 2008-2016, Integrity Project Ltd. 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 ... |
#include <functional>
#include <iomanip>
#include <iostream>
#include <stdexcept>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include <arbor/load_balance.hpp>
#include <arbor/cable_cell.hpp>
#include <arbor/morph/morphology.hpp>
#include <arbor/morph/region.hpp>
#include <arbor/simulation.... |
// This file is part of the Orbbec Astra SDK [https://orbbec3d.com]
// Copyright (c) 2015-2017 Orbbec 3D
//
// 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/licens... |
#include <iostream>
#include <fstream>
#include <string>
#include <utility>
#include <vector>
#include <algorithm>
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"... |
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include <array>
#include <string>
#include <fstream>
#include <sstream>
#include <iostream>
#include <vector>
using namespace std;
#include <mpi.h>
// simulation constants
const double l = 256.0;
const long n = 2560;
const long np = n*n*n;
const double dx = l ... |
#include <string>
#include "formatter.h"
#include "bighexdump.h"
std::string asciidump(const uint8_t *p, size_t n)
{
std::stringstream buf;
buf << Hex::ascstring << Hex::dumper(p, n);
return buf.str();
}
std::string dumponeunit(const uint8_t *p, size_t len, int unittype)
{
switch(unittype) {
... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/host/win/launch_process_with_token.h"
#include <windows.h>
#include <winternl.h>
#include "base/logging.h"
#include "base/memory/... |
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <cstdlib>
#include <iomanip>
#include "General.h"
#include "Window.h"
#include "Controls.h"
/*tell JUI where to find the font and icon files*/
std::string fontLocation = "SourceCodePro-Regular.ttf";
std::string iconLocation = "Untitl... |
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include "bgp/bgp_condition_listener.h"
#include <boost/bind.hpp>
#include <boost/foreach.hpp>
#include <utility>
#include "base/task_annotations.h"
#include "base/task_trigger.h"
#include "bgp/bgp_route.h"
#include "bgp/bgp_server.h"
#include... |
/*
Name: <NAME>
Date: 2013-10-21
Homework #: 08
Problem #: 01
Source File: HW08Problem01.cpp
Class: C-101 MW 1030
Action: This program adds two fractions together and displays them in either reduced form or as
a whole number if possible.
*/
#include <iostream>
#include <iomanip>
... |
#include "r_utils/r_udp_receiver.h"
#ifdef IS_LINUX
#include <unistd.h>
#endif
#ifdef IS_WINDOWS
#include <WinSock2.h>
#include <ws2tcpip.h>
#include <Iphlpapi.h>
#endif
#include <chrono>
using namespace r_utils;
using namespace std;
r_udp_receiver::r_udp_receiver( int destinationPort,
... |
/*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... |
// -*- mode: c++; c-file-style: "k&r"; c-basic-offset: 4 -*-
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include <dmtr/latency.h>
#include <algorithm>
#include <boost/chrono.hpp>
#include <cassert>
#include <dmtr/annot.h>
#include <dmtr/fail.h>
#include <stdint.h>
#include <string>
#i... |
// This file is part of Empirical, https://github.com/devosoft/Empirical
// Copyright (C) Michigan State University, 2017.
// Released under the MIT Software license; see doc/LICENSE
#include <iostream>
#include "games/Mancala.h"
#include "hardware/AvidaGP.h"
#include "hardware/InstLib.h"
#include "tools/Random.h"... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <map>
#include <string>
#include <fstream>
#include <sstream>
#include <omp.h>
#define NUMTHREADS 256 // number of threads per GPU block
// data for atom of crystal structure
// Unit cell of crystal structure can then be stored
// as pointer ar... |
// Source file for the scene converter program
// Include files
#include "R3Graphics/R3Graphics.h"
// Program arguments
static const char *input_scene_filename = NULL;
static const char *output_grid_filename = NULL;
static const char *selected_node_name = NULL;
static double grid_spacing = 0.01;
static double ... |
// test_owens_t.cpp
// Copyright <NAME> 2012.
// Copyright <NAME> 2012.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
// Tested using some 30 decimal digit accuracy values ... |
/*
@copyright <NAME> 2014
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#include <boost/hana/comparable/equal_mcd.hpp>
#include <boost/hana/core/datatype.hpp>
#include <boost/hana/detail/assert.hpp>
#include <boost/hana/fun... |
//misaka will carry me to master
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <utility>
#include <cassert>
#include <algorithm>
#include <vector>
#include <functional>
#include <numeric>
#include <set>
#include <map>
#include <array>
#define ll long long
#define lb long double
#d... |
/*____________________________________________________________
Copyright 2020 Sepera_okeq or <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/LIC... |
// Copyright (c) 2010 Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditio... |
/*
* SolPathRenderer.cpp
*
* Copyright (C) 2010 by VISUS (University of Stuttgart)
* Alle Rechte vorbehalten.
*/
#include "stdafx.h"
#define _USE_MATH_DEFINES 1
#include "SolPathDataSource.h"
#include "mmcore/param/BoolParam.h"
#include "mmcore/param/FilePathParam.h"
#include "mmcore/param/FloatParam.h"
#include "... |
#include "sdl2.h"
#include <rsys/adb.h>
#include <osevent/osevent.h>
#include <rsys/scrap.h>
#include <rsys/keyboard.h>
#include <OSEvent.h>
#include <ToolboxEvent.h>
#include <SegmentLdr.h>
#include "keycode_map.h"
#include <SDL.h>
using namespace Executor;
namespace
{
SDL_Window *sdlWindow;
/*SDL_Renderer *sdlRen... |
/////////////////////////////////////////////////
// Includes
#include "StdAfx.h"
#include "tql.h"
/////////////////////////////////////////////////
// Tql-Exception
class ETql{
private:
TStr ErrMsg;
public:
ETql(const TStr& _ErrMsg):
ErrMsg(_ErrMsg){}
ETql& operator=(const ETql& E){
ErrM... |
#include <cmath>
#include <iostream>
#include <memory>
#include <regex>
#include <stdexcept>
#include <string>
#include "common/cpuinfo.h"
#include "common/except.h"
#include "common/make_unique.h"
#include "common/pixel.h"
#include "resize/filter.h"
#include "resize/resize.h"
#include "apps.h"
#include "argparse.h"
#... |
/*
* Copyright (c) 2018 Dell Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WAR... |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "StandaloneRendererPrivate.h"
#include "OpenGL/SlateOpenGLTextureManager.h"
#include "OpenGL/SlateOpenGLRenderingPolicy.h"
#include "OpenGL/SlateOpenGLTextures.h"
#include "OpenGL/SlateOpenGLRenderer.h"
/** Official OpenGL definitions */
#ifndef G... |
/*
* Copyright 2004-2020 Hewlett Packard Enterprise Development LP
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
*
* You may obtai... |
/*
* Copyright (C) 2005-2011 MaNGOS <http://getmangos.com/>
*
* 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 your option) any later version.
*
... |
/* Copyright (c) 2016, <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 and the... |
//
// Copyright (c) 2009-2011 <NAME> (Tonkikh)
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#include "test_locale.h"
#include "test_locale_tools.h"
#include <booster/locale/utf.h>
#include <string.h... |
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/*
* irsync - The irods put utility
*/
#include "rodsClient.hpp"
#include "parseCommandLine.hpp"
#include "rodsPath.hpp"
#include "rsyncUtil.hpp"
#include "iro... |
/*
* Copyright (C) 2013 <NAME> <<EMAIL>>
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is d... |
/*$TET$$header*/
/*--------------------------------------------------------------------------*/
/* Copyright 2021 <NAME> */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); ... |
#include "Shader.h"
#include "Renderer/Utils/RendererUtils.h"
#include "Core/Utils/FileStringUtils.h"
#include <glm/gtc/type_ptr.hpp>
#include <filesystem>
#include <fstream>
// ------------------------------------------------------------------------------
Shader::Shader(const std::string& name, const std::string&... |
#include "lib/cameras/camera_tp.h"
#include "lib/kinematics/bone.h"
#include "lib/kinematics/inverse.h"
#include "lib/program.h"
#include "ozz/animation/runtime/animation.h"
#include "ozz/animation/runtime/local_to_model_job.h"
#include "ozz/animation/runtime/sampling_job.h"
#include "ozz/animation/runtime/skeleton.h"
... |
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include "shared/glFramework/GLShader.h"
#include "shared/UtilsMath.h"
#include "shared/Bitmap.h"
#include "shared/debug.h"
#include "shared/UtilsCubemap.h"
#include "shared/Camera.h"
#include <glad/gl.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include ... |
#include "ros/ros.h"
#include "std_msgs/String.h"
#include "std_msgs/Int16.h"
#include <sstream>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/image_encodings.h>
#include <opencv2/objdetect/objdetect.hpp>
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgp... |
/*
* Copyright (c) 2019, NVIDIA 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 copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... |
/************************************************
Copyright (c) 2016, Xilinx, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright noti... |
/***************************************************************************
*
* $Id: StEEmcFgtCorrelatorA.cxx,v 1.2 2012/05/09 21:11:58 sgliske Exp $
* Author: <NAME>, May 2012
*
***************************************************************************
*
* Description: see header
*
*************************... |
/*
* This test is companion to test_event_stress.
* It tries to simulate the message passing from test_event_stress using Workpool instead of
* actors and schedulers.
*/
#include "solid/system/crashhandler.hpp"
#include "solid/utility/function.hpp"
#include "solid/utility/string.hpp"
#include "solid/utility/workpo... |
/**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* 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.
*/
#include <mutex>
#include <string>
#include <thread>
#include <gtest/gtest.h>
#includ... |
/////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////
/*
Copyright (C) 2017 LePtitDev
All rights reserved.
This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for de... |
/*
* audio_solaris.cpp - Audio support, Solaris implementation
*
* Adapted from Frodo's Solaris sound routines by <NAME>
*
* Basilisk II (C) 1997-2008 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* t... |
/*
VibHub Firmware Update
Based on: https://github.com/nhatuan84/esp32-http-fota
Would have used it as a library, but required modifications to work with redirects on HTTPS
*/
#include "FirmwareUpdate.h"
#include <WiFi.h>
#include <HTTPClient.h>
#include "ApiClient.h"
#include <MD5Builder.h>
#include <Update.... |
/*
* This file belongs to the Galois project, a C++ library for exploiting parallelism.
* The code is being released under the terms of the 3-Clause BSD License (a
* copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Render2.cpp :+: :+: :+: ... |
/*******************************************************************************
NES Sound Driver & Library (NSD.lib) MML Compiler
Copyright (c) 2012 A.Watanabe (S.W.), All rights reserved.
For conditions of distribution and use, see copyright notice in "nsc.cpp".
***************************************... |
#include <iostream>
#include <vector>
#include <windows.h> // allows us to use "PlaySound()"
#include <ShellAPI.h> // shell execute
#include <thread>
#include <fstream>
#include <string>
#include <chrono>
#include "Colours.h"
#pragma comment (lib, "Winmm.lib")
//function prototypes
void menu();
void sav... |
#include "LZ77/LZType11.hpp"
#include <cstddef>
#include <cstring>
#include <memory>
#include "LZ77/LZLookupTable.hpp"
#include <athena/MemoryWriter.hpp>
LZType11::LZType11(atInt32 minimumOffset, atInt32 slidingWindow, atInt32 minimumMatch, atInt32 blockSize)
: LZBase(minimumOffset, slidingWindow, minimumMatch, blo... |
////////////////////////////////////////////////////////////////////////////
// Module : aimers_base.cpp
// Created : 04.04.2008
// Modified : 08.04.2008
// Author : <NAME>
// Description : aimers base class
////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include... |
// csaxform_dump_defs.cpp -*-C++-*-
#include "csabase_analyser.h"
#include "csabase_debug.h"
#include "csabase_ppobserver.h"
#include "csabase_registercheck.h"
#include "csabase_report.h"
#include "csabase_util.h"
#include "csabase_visitor.h"
#include <llvm/ADT/StringExtras... |
// ivectorbin/ivector-extract.cc
// Copyright 2013 <NAME>
// See ../../COPYING for clarification regarding multiple authors
//
// 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:... |
// ROOT
#include "TFile.h"
#include "TH1.h"
#include "TH2.h"
#include "TTree.h"
#include "StMessMgr.h"
#include "StEventTypes.h"
#include "StMuDSTMaker/COMMON/StMuTypes.hh"
#include "StMuDSTMaker/COMMON/StMuFmsUtil.h"
#include "StFmsDbMaker/StFmsDbMaker.h"
#include "StFmsCollection.h"
#include "StFmsHit.h"
#include "... |
/**
* Copyright (C) 2017-2019 <NAME>
* Distributed under the terms of the BSD 3-Clause License.
*
* (See accompanying file LICENSE)
*
* --
*/
/**
* C++ Wrapper of SoftFloat
* <NAME> 2017
*/
#pragma once
#include <cmath>
extern "C"
{
#include "softfloat.h"
}
#include <iostream>
#include "floattraits.hpp"
... |
/*
* Copyright (C) 2020 Open Source Robotics Foundation
*
* 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 appl... |
// MIT License
// Copyright (c) 2020 <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, p... |
// md5.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <assert.h>
#include <iostream>
#include <sstream>
#include <string>
#include <conio.h>
#include <windows.h>
using namespace std;
typedef unsigned char hl_uint8;
typedef unsigned short int hl_uint16;
typedef unsigned... |
// Copyright © 2013 the Search Authors under the MIT license. See AUTHORS for the list of authors.
#include "player.hpp"
#include "lvl.hpp"
#include "../visnav/visgraph.hpp"
#include <vector>
#include <string>
#include <cstdio>
void fatal(const char*, ...);
extern "C" unsigned long hashbytes(unsigned char[], unsigned ... |
/**
* ============================================================================
*
* Copyright (C) 2019, Huawei Technologies Co., Ltd. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* ... |
#include "CuboidInstancing.h"
#include <algorithm>
#include <glbinding/gl/gl.h>
#include "common.h"
using namespace gl;
CuboidInstancing::CuboidInstancing()
: CuboidImplementation("Instancing")
, m_vertices(0)
, m_vao(0)
, m_vertexShader(0)
, m_fragmentShader(0)
{
}
CuboidInstancing::~CuboidInstancing()
{
gl... |
// 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
// distributed ... |
/***
* 本程序测试在EUROC数据集上双目特征提取部分算法
*/
#include<iostream>
#include<algorithm>
#include<fstream>
#include<chrono>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <common/include/ygz/Feature.h>
#include "ygz/F... |
#include "DancingLink.h"
#include "Util.h"
#include <cassert>
#include <cstring>
#include <iostream>
#include <vector>
#define index(i, j, m) ((j) + (i) * (m))
// uplink[i],downlink[i],leftlink[i],rightlink[i]
//分别为节点i的上下左右邻节点下标
static int uplink[MAX], downlink[MAX], leftlink[MAX], rightlink[MAX];
// rowlink[i],colli... |
// Copyright (C) 2008-2010 <NAME>
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#include <iostream>
#include <fstream>
#include "recog/Eigenfaces.h"
#include "recog/recog_util.h"
using namespace recog;
//////////////////////////////////////////////////////... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.