text stringlengths 5.71k 33.7k |
|---|
/*
Copyright (c) 2005-2018 Intel Corporation
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 la... |
#include "common/RDMUtils.h"
#include "common/RDMDict.h"
#include "MarketByPriceHandler.h"
#include <boost/algorithm/string.hpp>
using namespace rfa::data;
MarketByPriceHandler::MarketByPriceHandler(rfa::sessionLayer::OMMConsumer* pOMMConsumer,
rfa::common::EventQueue& eventQue... |
#define _USE_MATH_DEFINES
#include <cmath>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include "KpMpii_27.hpp"
#include "KpToRigHelper.hpp"
#include "RigToKpHelper.hpp"
#include "KpHelper.hpp"
// Helper functions
Eigen::Vector3d GetTipOfFoot( const Eigen::Vector3d & bigToe,
const Eigen::Vector3d & sma... |
// Copyright (c) Facebook, Inc. and its affiliates.
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
#include "polymetis/clients/franka_panda_client.hpp"
#include "real_time.hpp"
#include "spdlog/spdlog.h"
#include "yaml-cpp/yaml.h"
#include... |
////////////////////////////////////////////////////////////////////////////////
/// 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 "b3CpuRigidBodyPipeline.h"
#include "Bullet3Collision/BroadPhaseCollision/b3DynamicBvhBroadphase.h"
#include "Bullet3Collision/BroadPhaseCollision/shared/b3Aabb.h"
#include "Bullet3Collision/NarrowPhaseCollision/b3Config.h"
#include "Bullet3Collision/NarrowPhaseCollision/b3CpuNarrowPhase.h"
#include "Bullet3C... |
// Copyright (c) 2019 Graphcore Ltd. All rights reserved.
#include "popops/Gather.hpp"
#include "GatherInternal.hpp"
#include "poplibs_support/Tracepoint.hpp"
#include "poplibs_support/logging.hpp"
#include "popops/DynamicSlice.hpp"
#include "popops/ElementWise.hpp"
#include "popops/Pad.hpp"
#include "poputil/Broadcas... |
//
// Created by <NAME>.
//
// uncomment to disable assert()
// #define NDEBUG
#include <cassert>
#include <iostream>
#include <cstdio>
#include <iomanip>
#include <ios>
#include <sstream>
#include <fstream>
#include <string>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <functional>
#include <array>
#... |
// Copyright © 2016 by <NAME> <<EMAIL>>
// Available under the MIT License. See LICENSE for details.
#include "gtest/gtest.h"
#include <fcntl.h>
#include <fcntl.h>
#include <time.h>
#include <unistd.h>
#include <unistd.h>
#include <condition_variable>
#include <mutex>
#include <thread>
#include "base/cleanup.h"
#in... |
// This is an advanced implementation of the algorithm described in the following paper:
// <NAME> and <NAME>. LOAM: Lidar Odometry and Mapping in Real-time.
// Robotics: Science and Systems Conference (RSS). Berkeley, CA, July 2014.
// Modifier: <NAME> <EMAIL>
// <NAME> <EMAIL>
... |
/*-
* Copyright (c) 2011, 2012, 2013, 2014, 2016 Spectra Logic 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:
* 1. Redistributions of source code must retain the above copyri... |
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <algorithm>
#include <tuple>
#include <openclParams.hpp>
#include "InputParser.hpp"
#include "Atom.hpp"
#include "NGramGraph.hpp"
#include "DocumentClass.hpp"
#include "OclUpdatableClass.hpp"
#include "StringSplitter.... |
// MIT License
// Copyright (c) 2019 <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... |
//
// Created by dragos on 30.05.2019.
//
#include "DataDependencies.h"
void analysis::HasUses::add(const ProgramPoints *points) {
for (auto e : *points) {
auto last = e.last();
if (last != nullptr) {
LOG3("Found use for " << dbp(last) << " "
<< (last->is<IR::Statement>() ?... |
// Copyright (c) 2020 The Orbit 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 "Batcher.h"
#include <GteVector.h>
#include <GteVector2.h>
#include <glad/glad.h>
#include <math.h>
#include <stddef.h>
#include "DisplayForma... |
#include <cassert>
#include <chrono>
#include <string>
#include <fstream>
#include <iostream>
#include <GL/glew.h>
#include <SDL2/SDL.h>
// #include <SDL2/SDL_image.h>
#define ILUT_USE_OPENGL
#include <IL/il.h>
#include <IL/ilut.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/typ... |
//
// Created by dominik on 21.05.21.
#include "sqs.hpp"
#include <iostream>
#include <thread>
#include <vector>
#include <chrono>
#include "types.hpp"
#include <boost/multi_array.hpp>
#include <boost/log/core.hpp>
#include <boost/log/trivial.hpp>
#include <boost/log/utility/setup.hpp>
namespace logging = boost::log;
... |
#include "tapp.h"
#include "tpalette.h"
#include "toonz/txsheet.h"
#include "toonz/toonzscene.h"
#include "toonz/levelset.h"
#include "toonz/txshsimplelevel.h"
#include "toonz/txshlevelcolumn.h"
#include "toonz/txshcell.h"
//#include "tw/action.h"
#include "tropcm.h"
#include "ttoonzimage.h"
#include "matchline.h"
#i... |
/// Copyright 2017-2019 <EMAIL>an.pl
/// Usage of the works is permitted provided that this instrument is retained with
/// the works, so that any entity that uses the works is notified of this instrument.
/// DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.
#include "Common.h"
#include "Parse.h"
#include <mutex>
#include ... |
// incremental.cc -- incremental linking test/debug tool
// Copyright (C) 2009-2016 Free Software Foundation, Inc.
// Written by <NAME> <<EMAIL>>
// This file is part of gold.
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published ... |
/*
This program is free software; you can redistribute it and/or modify it under
the terms of the European Union Public Licence - EUPL v.1.1 as published by
the European Commission.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCH... |
// C++ routines for computational geometry.
#include <iostream>
#include <vector>
#include <cmath>
#include <cassert>
using namespace std;
double INF = 1e100;
double EPS = 1e-12;
struct PT {
double x, y;
PT() {}
PT(double x, double y) : x(x), y(y) {}
PT(const PT &p) : x(p.x), y(p.y) ... |
//===================================================================
//Author: <NAME>
//ME 751 Final Project
// Full Vehicle model on deformable terrain, significantly based on the HMMWV
// deformable soil demo
//====================================================================
#include <cstdio>
#include <cmath>
#... |
#include "bsdirectatmodifier.h"
#include "src/xml/hkxxmlreader.h"
#include "src/filetypes/behaviorfile.h"
uint BSDirectAtModifier::refCount = 0;
const QString BSDirectAtModifier::classname = "BSDirectAtModifier";
BSDirectAtModifier::BSDirectAtModifier(HkxFile *parent, long ref)
: hkbModifier(parent, ref),
... |
/**
* @file Bulletproofs.cpp
*
* @brief InnerProductArgument class for the Zerocoin library.
*
* @author <NAME>, <NAME> and <NAME>
* @date May 2018
*
* @copyright Copyright 2018 The PIVX Developers
* @license This project is released under the MIT license.
**/
#include "hash.h"
#inc... |
// Copyright (c) 2019-2020 Simons 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.txt
//
// Unless required by applicable l... |
#ifndef PYNE_IS_AMALGAMATED
#include "particle.h"
#endif
std::string pyne::particle::_names[NUM_PARTICLES] = {
// leptons
"Electron",
"Positron",
"ElectronNeutrino",
"ElectronAntiNeutrino",
"Muon",
"AntiMuon",
"MuonNeutrino",
"MuonAntiNeutrino",
"Tauon",
"AntiTauon",
"TauNeutrino",
"TauAntiNe... |
//
// Created by machiry on 1/30/17.
//
#include <iostream>
#include "llvm/Pass.h"
#include "llvm/IR/Function.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/Transforms/IPO/PassManagerBuilder.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/ValueSymbolTable.h"
#incl... |
/* Copyright (C) 2015 Ion Torrent Systems, Inc. All Rights Reserved */
/*
* RowSumCorrector.cpp
*
* Created on: Aug 13, 2015
* Author: ionadmin
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "RowSumCorrector.h"
void RemoveDCOffset(short int *avgs, int rows, int frames)
{
for(int ro... |
#include <iostream>
#include <unistd.h>
#include <chrono>
#include "hdf5_hl.h"
#include "DsetPropAccess.h"
#include "Dset.h"
#include "check_macros.h"
void print_h5_hyperslab(std::ostream &ostr, const char *header, hid_t space) {
int ndims = H5Sget_simple_extent_ndims(space);
ostr << header << ": ";
std::ve... |
/*
* Intel specific code
*
* Copyright (c) 2004-2006 by Intel Corp.
*
* This program 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. This
* file and program are licensed under a BSD style ... |
/****************************************************************************
*
* Copyright (c) 2018 PX4 Development Team. 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. Redistri... |
#pragma GCC optimize("Ofast")
#pragma GCC optimize("inline")
#pragma GCC optimize("omit-frame-pointer")
#pragma GCC optimize("unroll-loops")
#include "stdio.h"
#include "math.h"
#include <iostream>
#include <algorithm>
#include <memory>
#include <chrono>
#include <vector>
using namespace std;
using namespace std::chr... |
//
//
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
// ghv : <NAME> : 20180607
//
//
// Implementation of Parallel Transport Frames
// fo... |
#include "game.hpp"
#include "actions/drag.hpp"
#include "actions/dropitem.hpp"
#include "actions/move.hpp"
#include "actions/stopdrag.hpp"
#include "actions/takeitem.hpp"
#include "actions/throw.hpp"
#include "actors/npc.hpp"
#include "drawables/rect.hpp"
#include "goals/examine.hpp"
#include "items/item.hpp"
using ... |
/*
* Hello world example of a TLS client: fetch an HTTPS page
*
* Copyright (C) 2006-2018, 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... |
// Generated from Calc.g4 by ANTLR 4.7.1
#include "CalcLexer.h"
using namespace antlr4;
CalcLexer::CalcLexer(CharStream *input) : Lexer(input) {
_interpreter = new atn::LexerATNSimulator(this, _atn, _decisionToDFA, _sharedContextCache);
}
CalcLexer::~CalcLexer() {
delete _interpreter;
}
std::string CalcLex... |
/*
* Copyright (c) 2011-2014 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions... |
/* Copyright 2021 iwatake2222
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... |
/*******************************************************************************
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
* object_detection_demo_yolov3_async implementation based on object_detection_demo_yolov3_async
* See https://github.com/opencv/open_model_zoo/tree/2018/d... |
/// The MIT License (MIT)
///
/// Copyright (c) 2015 <NAME>
/// Copyright (c) 2015 BitBox, Ltd.
///
/// 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... |
#include <ros/ros.h>
#include <tf/transform_listener.h>
#include <tf/transform_datatypes.h>
#include "std_msgs/MultiArrayLayout.h"
#include "std_msgs/MultiArrayDimension.h"
#include "std_msgs/Float64MultiArray.h"
#include "std_msgs/Float64.h"
#include "nav_msgs/OccupancyGrid.h"
#include <visualization_msgs/Marker.h>
#... |
#include "secure-indices/core/players.h"
#include <string>
using namespace std;
//using namespace osuCrypto;
using namespace dorydb;
//#define VERBOSE_PRINT
bool malicious = true;
int mac_factor = malicious ? 2 : 1;
void copy_keys_to_server(clkey* ckey, svkey* s0key, svkey* s1key){
uint64_t dpf_size = ckey->dpf... |
/* Copyright 2018 <NAME> (<EMAIL>)
*
* 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 following disclaimer.
*... |
/**
* @file
* @author Inmatarian <<EMAIL>>
* @section LICENSE
* Insert copyright and license information here.
*/
#include <list>
#include <vector>
#include <string>
#include <cassert>
#include "debug.h"
#include "zstring.h"
#include "defines.h"
#include "gameBoard.h"
#include "gameWorld.h"
#include "abstractPa... |
// ImGuiTextEdit.cpp
// created on 2021/6/12
// author @zoloypzuo
#include "ZeloPreCompiledHeader.h"
#include "ImGuiTextEdit.h"
#include "ImUtil.h"
#include "ImGuiInternal.h"
#define STB_TEXTEDIT_IMPLEMENTATION
#include "stb_textedit.h"
void ImGuiTextEditState::OnKeyboardPressed(int key) {
stb_textedit_key(this,... |
#include "utils.h"
#include "evaluator.h"
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
#define INTERVAL 1
// Too Large Buffer size -> Perf Degradation
// Too Small Buffer size -> Perf Degradation
// BUF_SIZE should be set to 1024 in case of dblp dataset
#def... |
#include "XSbench_header.h"
////////////////////////////////////////////////////////////////////////////////////
// BASELINE FUNCTIONS
////////////////////////////////////////////////////////////////////////////////////
// All "baseline" code is at the top of this file. The baseline code is a simple
// implementation ... |
//This module provides utility functions for coordinate conversions, tile lookup, and related things
//Author: <NAME>
//Copyright (c) 2020 Sentek Systems, LLC. All rights reserved.
#pragma once
//System Includes
#include <cstdint>
#include <tuple>
#include <cmath>
//Eigen Includes
#include "../../../eigen/Eigen/Core... |
/**
* @file ecallExtreme.cc
* @author
* @brief implement the interface defined in the extreme index inside the enclave
* @version 0.1
* @date 2020-12-30
*
* @copyright Copyright (c) 2020
*
*/
#include "../../include/ecallExtreme.h"
/**
* @brief Construct a new Ecall Simple Index object
*
* @param max... |
/*
Copyright (c) 1999 - 2010, Vodafone Group Services 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 of co... |
// Copyright (c) 1997 <NAME>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <math.h>
#include <string.h>
#include "stdafx.h"
#include "dle-xp.h"
#include "dlcDoc.h"
#include "mineview.h"
#include "define.h"
#include "types.h"
#include "global.h"
#include "poly.h"
#include "cfile... |
/**
* @file piemenu.cpp
* @brief Pie menu class
*
* $LicenseInfo:firstyear=2001&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
* Copyright (C) 2011, <NAME> @ Second Life
*
* This library is free software; you can redistribute it and/or
* modify it under the te... |
//THIS IS A TEMPLATE FILE. TO USE, COPY IT AND REPLACE:
// ServerName with your server's name, e.g. CargoIntake
// server_name with your server's name, e.g. cargo_intake
// Thing with the name of your action file (if file is Intake.action, replace w/ Intake)
#include "ros/ros.h"
#include "actionlib/server/simple_act... |
/*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
//+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1997 - 1998
//
// File: expand.cpp
//
//--------------------------------------------------------------------------
//
// expand.cpp: CI expansion
//
#i... |
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
/*
* APM_MS5611.cpp - Arduino Library for MS5611-01BA01 absolute pressure sensor
* Code by <NAME>, <NAME> and <NAME>. DIYDrones.com
*
* This library is free software; you can redistribute it and/or
* modify it under t... |
#include "world.hpp"
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <memory>
#include <utility>
#include <Python.h>
#include "fiber_class.hpp"
#include "include/aabb.hpp"
#include "include/omp.hpp"
#include "include/vemath.hpp"
#include "objects/fiber.hpp"
#in... |
#define __STDC_LIMIT_MACROS
#include <cstdio>
#include <cstddef>
#include <cstdlib>
#include <cstdarg>
#include <cstring>
#include <cstdint>
#include <cinttypes>
#include <cassert>
#include <cerrno>
#include <climits>
#include <cmath>
#include <cfloat>
#include <cctype>
#include <cmath>
#include <csetj... |
/*
* $Id: bidir.cpp,v 1.1 2005/09/04 13:33:10 tsuruoka Exp $
*/
#include <sys/time.h>
#include <stdio.h>
#include <fstream>
#include <map>
#include <list>
#include <iostream>
#include <sstream>
#include <cmath>
#include <set>
#include "maxent.h"
#include "common.h"
using namespace std;
const int TAG_WINDOW_SIZE = ... |
#include <iostream>
#include <queue>
#include <vector>
#include <map>
#include <cmath>
#include <chrono>
#include <string>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
//If you have libopencv-dev in version 3.x, compile with
//g++ -std=c++11 background_... |
/*
The MIT License (MIT)
Copyright (c) 2014,2015 <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, modi... |
/*
* Copyright (c) 2000-2001,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 c... |
/*
** Copyright (c) 2016 AlexP
**
** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and/or associated documentation files (the
** "Materials"), to deal in the Materials without restriction, including
** without limitation the rights to use, copy, modify, merge, publish,... |
//
// Lol Engine — Voronoi diagram tutorial
//
// Copyright © 2015—2020 <NAME> <<EMAIL>>
// © 2011—2015 Benjamin “Touky” Huet <<EMAIL>>
//
// Lol Engine is free software. It comes without any warranty, to
// the extent permitted by applicable law. You can redistribute it
// and/or modify it under the te... |
#include "IRLoader/Loader.h"
#include <FEXCore/Utils/LogManager.h>
#include <fstream>
namespace {
std::string ltrim(std::string String) {
size_t pos = std::string::npos;
if ((pos = String.find_first_not_of(" \t\n\r")) != std::string::npos) {
String.erase(0, pos);
}
return String;
}
std::string rtrim(std::stri... |
#include "InfoCPU.h"
#include "SystemCommand.h"
TArray<FCPUInformation> FCPUInformationFetcher::FetchInfo()
{
// query cpus
FSystemCommand cpusQuery("wmic path Win32_Processor get /format: list");
if (cpusQuery.HasFailed())
{
UE_LOG(LogSystemInfo, Error, TEXT("Failed to query CPUs"));
return {};
}
// fetch... |
#include "glad/glad.h"
#include "GLFW/glfw3.h"
#include "GLFWInitRAII.hpp"
#include "Shader.hpp"
#include "CameraFree.hpp"
#include "glm/glm.hpp"
#include "glm/gtc/matrix_transform.hpp"
#include "glm/gtc/type_ptr.hpp"
enum Screen {
width = 1920,
height = 1080
};
namespace System {
float deltaTime = 0.0f... |
/*
* format_data.cc
*
* Created on: Feb 8, 2015
* Author: liao
*/
#include <cstring>
#include <cerrno>
#include <sstream>
#include <fstream>
#include "sys/stat.h"
#include "simple_log.h"
#include "format_data.h"
const static int SPLIT_SIZE = 1;
const static int ENDL_SIZE = 1;
static uint32_t dict_hash_funct... |
//========================================================================================
//
// $File: //ai/ai13/devtech/sdk/public/samplecode/MarkedObjects/Source/MarkedObject.cpp $
//
// $Revision: #6 $
//
// Copyright 1987-2007 Adobe Systems Incorporated. All rights reserved.
//
// NOTICE: Adobe permits yo... |
#include <stdint.h>
#include <float.h>
#include <stdio.h>
#include "vednn.h"
#include "velintrin.h"
#define VLEN (256)
template <int BATCH>
static inline void func_batch_odd(
const uint64_t inDim,
const uint64_t outDim,
const float * pGOut,
const float * pWeight,
float * pGIn
)
{
for(int i=0; i<inDi... |
#include <stdexcept>
#include <fstream>
#include <iostream>
#include <iomanip>
#include "FontInfo.h"
#include "external/tinyxml2/tinyxml2.h"
#include "external/json.hpp"
std::string FontInfo::getCharSetName(std::uint8_t charSet)
{
std::string str;
switch(charSet)
{
case 0: // ANSI_CH... |
// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
// ** Copyright UCAR (c) 1992 - 2015
// ** University Corporation for Atmospheric Research(UCAR)
// ** National Center for Atmospheric Research(NCAR)
// ** Research Applications Laboratory(RAL)
// ** P.O.Box 3000, Boulder, Colorado, 80307... |
//
// Copyright (C) 1999-2005 Google, Inc.
//
// TODO(user): visit each const_cast. Some of them are no longer necessary
// because last Single Unix Spec and grte v2 are more const-y.
#include "strings/util.h"
#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <time.h> ... |
//the Neo Geo Pocket CPU is a custom component, but its internal registers most
//closely match the Toshiba TMP95C061. Until it's known exactly which components
//actually exist, this class tries to emulate all TMP95C061 functionality that
//it is able to.
struct CPU : TLCS900H, Thread {
Node::Component node;
ares... |
#include <ros/ros.h>
#include <sensor_msgs/LaserScan.h>
#include <geometry_msgs/Point.h>
#include <visualization_msgs/MarkerArray.h>
#include <mbzirc_comm_objs/ObjectDetectionList.h>
#include <mbzirc_comm_objs/WallList.h>
#include <scan_passage_detection/wall_utils.h>
#include <random_numbers/random_numbers.h>
#include... |
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <chrono>
using std::chrono::duration_cast;
using std::chrono::milliseconds;
using std::chrono::_V2::steady_clock;
using std::chrono::_V2::high_resolution_clock;
#include <string>
#include <vector>
#include <map>
using std::string;
#in... |
/*---------------------------------------------------------------
Programmer(s): <NAME> @ SMU
----------------------------------------------------------------
Copyright (c) 2019, Southern Methodist University.
All rights reserved.
For details, see the LICENSE file.
------------------------------------------------... |
#include "system.h"
const char* mysteria_copyright =
"Mysteria MUD Engine II: Copyright 2001, 2002 by <NAME>\r\n"
"\r\n"
"Base Code: TFE/TFH by <NAME>, Tyrone, Squeed and Heironymus\r\n"
" Mysteria MUD Engine by <NAME> and <NAME>\r\n"
" MERC 2.1 by Hatchet, Furney, and Kahn\r\n"
" ... |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
... |
// Copyright (c) 2012,2014 <NAME>
//
// portable_objs2.cpp
// C++ wrapper for a generic CPU target that mimmics
// the SSE and NEON classes.
//
//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 ... |
/*****************************************************************************/
/* wave.cpp Copyright (c) <NAME> 2003 */
/*---------------------------------------------------------------------------*/
/* This module contains decompression methods used by Storm.dll to decompress*/
/* WAVe f... |
#include <stdio.h>
#include <stdlib.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <vector>
#include <IL/il.h>
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glew.h>
#include <GL/glut.h>
#endif
#define ANG2RAD M_PI/180.0
#define COWBOYS 8
#define RAIO_COWBOYS 5
#define INDI... |
/*
This is the first example of a sketch that tries to support a handshake
between the Rpi3 and the Arduino on the sleepy pi 2.
when running the rpi3 command: "i2cget -y 1 0x07"
when running the rpi3 command: "i2cset -y 1 0x07 0x11"
TODO: Merge with https://github.com/SpellFoundry/SleepyPi2/blob/master/e... |
#include "AnomalyDetector.h"
AnomalyDetector::AnomalyDetector() :
m_eps(0.0), m_alg(UNIVARIATE_GAUSSIAN), m_mode(UNSUPERVISED), m_valid(false), m_cvPercent(0.0), m_folds(0) {}
AnomalyDetector::~AnomalyDetector() {}
void AnomalyDetector::setAlg( LEARNING_ALGORITHM alg ) {
m_alg = alg;
m_valid = false;
}
LEARNIN... |
#include "../include/Cpu.h"
#include <sstream>
#include <cassert>
Cpu::Cpu(Memory &mem) : MMU(mem)
{
reset();
opcodes.fill(std::bind(&Cpu::noInstruction, this));
opcodes[0x00] = std::bind(&Cpu::nop, this);
opcodes[0x01] = std::bind(&Cpu::ldBCnn, this);
opcodes[0x02] = std::bind(&Cpu::ldBCA, this);
opcode... |
//
// See the file LICENSE for redistribution information.
//
// Copyright (c) 2002,2009 Oracle. All rights reserved.
//
#include "../DbXmlInternal.hpp"
#include "NsReindexer.hpp"
#include "NsUpdate.hpp"
#include "NsDom.hpp"
#include "NsEventReader.hpp"
#include "EventReaderToWriter.hpp"
#include "../Document.hpp"
#i... |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* Call context. */
#include "moz... |
#include "keyconfig.hpp"
#include "string_table.hpp"
#include "data.hpp"
#include "function.hpp"
#include <algorithm>
#include <fstream>
#include <iomanip>
#pragma comment(lib, "rpcrt4")
#pragma warning(disable:4351)
namespace{
int axis_threshold = 15000;
}
keyconfig::keyconfig():
js_id(),
js_config(),
kb_con... |
#include "pch.h"
#include "globals.h"
#include "Geometry.h"
//#include "thruster.hpp"
#include "crafts.h"
#include "physics.h"
#include "pencil.h"
/*
TODO:
Make wind persisent state of ship object.
Wind field shown in background
Proper background waves
Sound effects
- Wind
-Water
Physics: Sail Moment
*/
using... |
/*
* Copyright 2020 Associated Universities, Inc. Washington DC, USA.
*
* 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 re... |
//
// Copyright (C) 2004-2011 by Autodesk, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of version 2.1 of the GNU Lesser
// General Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be use... |
/*
* Copyright 2016 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
#include "StringTest.h"
#include "Uri.h"
#include "Variant.h"
#include <sstream>
using namespace metacpp;
void StringTest::testNull()
{
String str1;
EXPECT_TRUE(str1.isNull());
EXPECT_TRUE(str1.isNullOrEmpty());
String str2 = "not null";
EXPECT_FALSE(str2.isNull());
EXPECT_FALSE(str2.isNullOrE... |
/*
Copyright © 2016 Forschungszentrum Jülich GmbH
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted under the GNU General Public License v3 and provided that the following conditions are met:
1. Redistributions of source code must retain the above copyr... |
#pragma once
#include "Common.hpp"
#include <algorithm>
#include <vector>
#include <list>
#include <unordered_map>
#include <unordered_set>
namespace Engine
{
//----------------------------------------------------------------------------//
// Containers
//---------------------------------------------... |
/*
Excited States software: KGS
Contributors: See CONTRIBUTORS.txt
Contact: <EMAIL>
Copyright (C) 2009-2017 Stanford University
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... |
/*
* (C) Copyright 1996-2016 ECMWF & INPE.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status a... |
// system include files
#include <cmath>
#include <fstream>
#include <iostream>
#include <map>
#include <string>
#include <vector>
#include "TH2D.h"
#include "TH1D.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/ForwardDetId/interface/ForwardSubdetector.h"
#include "DataFormats/ForwardDetId/in... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
#include <fstream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
//Opening Radar File
outputfileRadar.open("../radar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.