text stringlengths 5.71k 33.7k |
|---|
#include "localization/frame_tf_calibrate/frame_calibration.h"
/*
NOTE: This node listens to the tf broadcasts and performs the homogeneous transforms.
Another major function of this node is to "calibrate" the initial position and orientation
of the vehicle. The homogeneous transforms are applied and ... |
//Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved.
//For the list of developers, see <http://www.MercuryDPM.org/Team>.
//
//Redistribution and use in source and binary forms, with or without
//modification, are permitted provided that the following conditions are met:
// * Redistributions ... |
//
// Created by <NAME> on 2020/02/10.
//
#define _USE_MATH_DEFINES
#include <iostream>
#include <array>
#include <cmath>
#include <cassert>
#include <random>
#include <Eigen/Dense>
class ReactiveStrategy {
public:
ReactiveStrategy(double _p, double _q) : p(_p), q(_q) {};
double p, q;
int Type(double R, doubl... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2021 <NAME>, CNR-STIIMA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... |
#pragma once
#define CSL_PP_CONCAT_I(x, y) x ## y
#define CSL_PP_CONCAT(x, y) CSL_PP_CONCAT_I(x, y)
// helper for typed lists parsing
#define CSL_PP_VANISH
#define CSL_PP_VANCSL_PP_ISH
#define CSL_PP_ESCAPE_INTERNAL(...) CSL_PP_VAN ## __VA_ARGS__
#define CSL_PP_ESCAPE(...) CSL_PP_ESCAPE_INTERNAL(__VA_ARGS__)
#define ... |
// bslx_streambufinstream.t.cpp -*-C++-*-
#include <bslx_streambufinstream.h>
#include <bslx_streambufoutstream.h> // for testing only
#include <bsls_assert.h>
#include <bsls_asserttest.h>
#include <bsls_bsltestutil.h>
#include <bsl_cstddef.h>
#include <bsl_cstdlib.h>
#include ... |
#include "PerformanceTimers.hh"
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <sys/time.h>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <cmath>
#include <omp.h>
#include <cstring>
#include <stdint.h>
#include "pio.h"
#include "mpiUtils.h"
#include "ioUtils.h"
#inclu... |
/*
SD_MisakiFNT_read.cpp - for ESP-WROOM-02 ( esp8266 )
Beta version 1.1
This is the Arduino library for reading Misaki font. (For ESP8266 & SD card)
The MIT License (MIT)
Copyright (c) 2016 Mgo-tec
Blog URL ---> https://www.mgo-tec.com
Permission is hereby granted, free of charge, to any person obtaining a... |
/*
BSD 2-Clause License
Copyright © 2019, phm97
Copyright © 2021, <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 no... |
#include "Engine.h"
Engine::Engine(){
this->board = new Board();
}
Engine::~Engine(){
}
void Engine::startGame(Player* playerList[], int playerAmount) {
// start game function with parameter to configure player amount
bag = std::make_shared<LinkedList>();
for (int i = 0; i < playerAmount; i++){
... |
#include <cstring>
#include <cstdio>
#include <vector>
#include <string>
#include <cstdlib>
#include <map>
#include <cmath>
#include <pthread.h>
#include <iostream>
#include<assert.h>
#include<ctime>
#include<sys/time.h>
#include "init.h"
#include "test.h"
using namespace std;
float score = 0;
float alpha1;
floa... |
/*
* Copyright (c) 1997, 1999, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
// CspProfile.cpp -- CSP Profile class implementation
// (c) Copyright Schlumberger Technology Corp., unpublished work, created
// 1998. This computer program includes Confidential, Proprietary
// Information and is a Trade Secret of Schlumberger Technology Corp. All
// use, disclosure, and/or reproduction is pro... |
/** @defgroup MleParts Magic Lantern Parts */
/**
* @file dx2dset.cxx
* @ingroup MleParts
*
* This file implements the class for a 2D Set targeting the DirectX
* platform.
*
* @author <NAME>
* @date Nov 13, 2007
*/
// COPYRIGHT_BEGIN
//
// Copyright (C) 2000-2007 Wizzer Works
//
// Wizzer Works makes avai... |
// ---------------------------------------------------------------------------
//
// The ab-initio based multiscale library
//
// S / P H I / n X
//
// Copyright: Max-Planck-Institute for Iron Research
// 40237 Duesseldorf, Germany
//
// Contact: https://sxlib.mpie.d... |
#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() {
previous_timestamp_=0;
// if this is false, laser measurements will ... |
#include "ros/ros.h"
#include <sstream>
#include <unistd.h>
#include "std_msgs/String.h"
#include <geometry_msgs/Twist.h>
#include <nav_msgs/Odometry.h>
#include "std_msgs/Empty.h"
#include <geometry_msgs/Point.h>
#include <queue>
#include <tf/tf.h>
#include "PerformTaskConstants.h"
#include "elderly_care_simulation... |
// replacement stuff so i can give the player damage
#include "extdll.h"
#include "enginecallback.h"
#include "util.h"
#include "cbase.h"
#include "entity_state.h"
#include "soundent.h"
#include "engine.h"
#include "studio.h"
#include "bot.h"
#include "avdamage.h"
#include "studio.h"
#include "externmsg.h"
#include ... |
#include "zneuronnetwork.h"
#include <iostream>
#include "zstring.h"
#include "tz_utilities.h"
#include "zsynapseannotationanalyzer.h"
#include "zcuboid.h"
#include "tz_darray.h"
#include "zswcnetwork.h"
#include "swctreenode.h"
using namespace FlyEm;
using namespace std;
ZNeuronNetwork::ZNeuronNetwork()
{
m_anal... |
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <sstream>
#include <random>
// Copyright (c) 2021 https://penguin2233.gq, no warranty is provided
#define VERSION 1
#define STARTING_LOAN 1000
#define INTEREST_RATE 0.005
#define DOWNTOWN_WEED_FACTOR 1.1
#define UPTOWN_CO... |
#include <boost/python/module.hpp>
#include <boost/python/def.hpp>
#include <boost/python/tuple.hpp>
#include <boost/python/list.hpp>
#include <pyublas/numpy.hpp>
#include <boost/numeric/ublas/matrix.hpp>
using namespace boost::numeric::ublas;
#include "statespace.hpp"
class PyCSSSM {
public:
PyCSSSM(const pyubl... |
#include <GL/gl.h>
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#define _USE_MATH_DEFINES
#include <math.h>
#include <fstream>
#include <iostream>
#include <vector>
#include "../common/vertex.hpp"
#include "tinyxml2/tinyxml2.h"
using namespace tinyxml2;
GLfloat cam_x = 9.0f, cam_y = 5.... |
/*<NAME>
AW3509
Final Code- LAB1
MIPS 5 stage pipeline including branch instructions as well as hazards
*/
#include<iostream>
#include<string>
#include<vector>
#include<bitset>
#include<fstream>
using namespace std;
#define MemSize 1000 // memory size, in reality, the memory size should be... |
//////////////////////////////// -*- C++ -*- //////////////////////////////
//
// FILE NAME
// SyncPart.cc
//
// AUTHOR
// <NAME>
//
// CREATED
// 12/14/2005
//
// DESCRIPTION
// Source code for the synchronous particle class. It keeps info
// about energy, momentum etc. of the synchronous macro-particle... |
/* ---------------------------------------------------------------------
*
* Copyright (C) 2000 - 2019 by the deal.II authors
*
* This file is modification of the version in the deal.II library.
*
* The deal.II library is free software; you can use it, redistribute
* it, and/or modify it under the terms of the G... |
// Copyright (c) YugaByte, 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
//
// Unless required by applicable law or agreed to in writ... |
/**
* Copyright (c) 2015, <NAME>, Quintelligence d.o.o. and contributors
* All rights reserved.
*
* This source code is licensed under the FreeBSD license found in the
* LICENSE file in the root directory of this source tree.
*/
/////////////////////////////////////////////////
// Find-File-Descriptor
#ifdef GL... |
//
// This class provides the mapping between
// portcards and the modules controlled by
// the card
//
//
//
#include "CalibFormats/SiPixelObjects/interface/PixelPortcardMap.h"
#include "CalibFormats/SiPixelObjects/interface/PixelTimeFormatter.h"
#include <sstream>
#include <cassert>
#include <stdexcept>
using nam... |
/*****************************************************************************/
// tgainfo
// Written by <NAME>, Haiku Translation Kit Team
//
// Version:
//
// tgainfo is a command line program for displaying information about
// TGA images.
//
//
// This application and all source files used in its construction, exce... |
#include "Cheat.hpp"
b32 FCheatBF4::Create() {
static FWindow::FBind const binds[] = {
{ VK_F10, MOD_ALT | MOD_CONTROL, this, KeyQuit },
{ 'Q', MOD_ALT | MOD_SHIFT, this, KeyQuit },
{ 'R', MOD_ALT | MOD_SHIFT, this, KeyReload },
{ '1', MOD_ALT, this, KeyToggle },
{ '2', MOD_ALT, this, KeyRecoilDown ... |
/* ______ ___ ___
* /\ _ \ /\_ \ /\_ \
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
* ... |
//
// Created by karbal on 2.1.18.
//
#include <iostream>
#include "OccupiedGraph.h"
#include "commonutilstemplated.h"
using namespace std;
OccupiedGraph::~OccupiedGraph() {}
OccupiedGraph::OccupiedGraph(std::vector<DynamicGraph> & graph_instances,
//OccupiedGraph::OccupiedGraph(DynamicGraph * graph,
... |
#include "common.h"
#include "cpu6502base.h"
Cpu6502Base::Cpu6502Base()
: pMemory(nullptr)
{
LOGINFO("Cpu6502Base::Constructor");
cyclesSinceBoot = 0;
haltOnTick = false;
mnemonicStrings[kMnemonic_ADC] = "ADC";
mnemonicStrings[kMnemonic_AND] = "AND";
mnemonicStrings[kMnemonic_ASL] = "ASL";
mnemonicStrings[kM... |
#include <Arduino.h>
#include "freertos/FreeRTOS.h"
#include <FastLED.h>
#include "WiFi.h"
#include <WiFiClientSecure.h>
#include <AsyncTCP.h>
#include <AsyncJson.h>
#include "ESPAsyncWebServer.h"
#include "Spiffs.h"
#include <unordered_map>
#include <string>
#include "FastLED_RGBW.h"
#include "defines.h"
// Spoti... |
//
// Simu5G
//
// Authors: <NAME>, <NAME>, <NAME> (University of Pisa)
//
// This file is part of a software released under the license included in file
// "license.pdf". Please read LICENSE and README files before using it.
// The above files and the present reference are part of the software itself,... |
/*
* 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 <array>
#include <gtest/gtest.h>
#include "ApkResources.h"
#include "Debug.h"
#include "RedexMappedFile.h"
#include "Rede... |
#include "XSbench_header.h"
#ifdef MPI
#include<mpi.h>
#endif
// Prints program logo
void logo(int version)
{
border_print();
printf(
" __ __ ___________ _ \n"
" \\ \\ / // ___| ___ \\ | | \n"
" ... |
// Copyright (c) 2013 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 <assert.h>
#include <math.h>
#include <ppapi/c/ppb_input_event.h>
#include <ppapi/cpp/input_event.h>
#include <ppapi/cpp/var.h>
#include <ppa... |
/*
* Copyright (C) 2010 ARM Limited. All rights reserved.
*
* Portions of this code have been modified from the original.
* These modifications are:
* * includes
* * enums
* * fb_set_swap_interval()
* * fb_post()
* * init_frame_buffer_locked()
* * init_frame_buffer()
* * fb_close()
* ... |
#include "stdafx.h"
#include "tig_console.h"
#include "debugui.h"
#include "party.h"
#include "d20_level.h"
#include "gamesystems/gamesystems.h"
#include "gamesystems/objects/objsystem.h"
#include "critter.h"
#include "ui/ui_debug.h"
#include "combat.h"
#include "action_sequence.h"
#include "dungeon_master.h"
#includ... |
#include "MyQuaternion.h"
#include <cmath>
#include <QtMath>
//着色器代码
static const char *coord_vertex=R"(#version 330 core
layout (location = 0) in vec3 inPos;
layout (location = 1) in vec3 inColor;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
out vec3 theColor;
void main()
{
theColor = inColor;
gl_P... |
/*
* Copyright (c) 2019, The Regents of the University of California
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
*... |
/////////////////////////////////////////////////
/////////////////////////////////////////////////
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include <math.h>
#define _USE_MATH_DEFINES
#include <cmath>
#define RAD2DEG(x) ((x)*180.0 / M_PI)
#define DEG2RAD(x) ((x)*M_... |
int WOA , gAg,zUr, zZ
, A4,
G26C,//CQ
S , //NB5
EWXR,
fiR2jwV
, KLZs
,lFG,
H, l,//Hb
aDk ,pz ,
oZBDo , fo4V//3
,RVzMg
, Sr0YR,/*U*/cd
,cqk
,
STo ,
/*1My*/
PC, aY,gW
,hN , o6, Zk
,
wVMG ,cQ7k//ydV
,
//IF
SQ,
KCo,
hD1
, CPC
, Hmy
,ZEI , //o
n0c ,//Li
SWU ,
TZo6 ,E0
;
void f_f0//3n0r
/... |
// DrawRoundedTriangle.cpp
// Dominicus
#include "graphics/2dgraphics/DrawRoundedTriangle.h"
#include <cmath>
#include <cstdlib>
#include <vector>
#include "graphics/GameGraphics.h"
#include "math/MatrixMath.h"
#include "math/ScalarMath.h"
#include "math/VectorMath.h"
#include "platform/OpenGLHeaders.h"
extern Game... |
typedef std::complex<double> rsComplexDbl;
template<class T>
void interleaveWithZeros(T *x, T *y, int xLength, int factor)
{
RAPT::rsArrayTools::fillWithZeros(y, factor*xLength);
for(int i = 0; i < xLength; i++)
y[factor*i] = x[i];
}
// move into the RSCore library
bool testSmbFFT(std::string &reportString)... |
#include "rbfcore.h"
#include "utility.h"
#include "Solver.h"
#include <armadillo>
#include <fstream>
#include <limits>
#include <iomanip>
#include <ctime>
#include <chrono>
#include<algorithm>
double sigma = 2.0;
double inv_sigma_squarex2 = 1 / (2 * pow(sigma, 2));
double Gaussian_Kernel(const double x_square) {
... |
#include "legged_motion_planner/MotionNLP.hpp"
#include <cassert>
using namespace Ipopt;
/* Constructor. */
MotionNLP::MotionNLP()
{ printf("This is from 'MOTION NLP' constructor\n"); }
MotionNLP::MotionNLP(Agent* p_agent_)
{
printf("This is from 'MOTION NLP' constructor\n");
p_agent = p_agent_;
}
MotionNLP:... |
///
/// @file util.cpp
/// This file contains helper functions and global variables
/// that are initialized with default settings.
///
/// Copyright (C) 2021 <NAME>, <<EMAIL>>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include <prim... |
/*
* This file is part of ElasticFusion.
*
* Copyright (C) 2015 Imperial College London
*
* The use of the code within this file and all code within files that
* make up the software that is ElasticFusion is permitted for
* non-commercial purposes only. The full terms and conditions that
* apply to the cod... |
/******************************************************************************
* $Id$
*
* Project: GDAL Bridge
* Purpose: Implementation of GDALBridgeInitialize()
* Author: <NAME>, <EMAIL>
*
* Adapted from cplgetsymbol.cpp.
*
******************************************************************************
... |
/* 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 in writi... |
//////////////////////////////////////////////////////////////////////////////
// Copyright (C) 1993 - 2001 California Institute of Technology //
// //
// Read the COPYING and README files, or contact '<EMAIL>', //
// before co... |
//===-- DWARFDebugInfoEntry.cpp -------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
//
// Copyright 2021 <NAME>. All Rights Reserved.
//
// Licensed under the Apache License 2.0 (the "License"). You may not use
// this file except in compliance with the License. You can obtain a copy
// in the file LICENSE in the source distribution.
//
#include <cstdint>
#include <iostream>
#include <list>
#include ... |
#include "core/context.h"
#include "funcs/deconv.h"
#include "test_saber_func.h"
#include "test_saber_base.h"
#include "tensor_op.h"
#include "funcs/funcs_utils.h"
#include "saber_types.h"
#include <vector>
#include "debug.h"
#include "test/saber/conv_func_helper.h"
using namespace anakin::saber;
void fill_bias_relu(f... |
// Copyright (c) 2020 <NAME>
// I am making my contributions/submissions to this project solely in my
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
// It is based on Ray Tracing: The Next Week book.
// References: https://raytracing.github.io
#include "bo... |
#include "ForwardRenderer.hpp"
#include "scene/lights/Light.hpp"
#include "scene/Sky.hpp"
#include "system/System.hpp"
#include "graphics/GPU.hpp"
#include "graphics/ScreenQuad.hpp"
ForwardRenderer::ForwardRenderer(const glm::vec2 & resolution, ShadowMode mode, bool ssao, const std::string & name) :
Renderer(name), _... |
/********************************************************************
* AUTHORS: <NAME>, <NAME>
*
* BEGIN DATE: November, 2005
*
* LICENSE: Please view LICENSE file in the home dir of this Program
********************************************************************/
// -*- c++ -*-
#include "../AST/AST.h"
#includ... |
////////////////////////////////////////////////////////////////////////
// Include files
////////////////////////////////////////////////////////////////////////
#include "GSV/GSV.h"
#include "R3Graphics/R3Graphics.h"
#include "fglut/fglut.h"
using namespace std;
////////////////////////////////////////////////////... |
#include "pch.h"
#include "SpectrumAnalyzer.h"
#include <algorithm>
#include <XDSP.h>
#include "Trace.h"
#include "cubic_spline.h"
using namespace Microsoft::WRL;
#undef max
#undef min
CSpectrumAnalyzer::CSpectrumAnalyzer() :
m_AudioChannels(0),
m_StepFrameCount(0),
m_StepFrameOverlap(0),
m_StepTotalFrames(0),
m... |
#include <plot.hpp>
#include <iostream>
#include <sstream>
#include <cmath>
#include <algorithm>
Plot::Plot(const std::string &path, double width, double height)
: VectorGraphic(path, width, height)
, drawmaximum(false)
, drawaverage(false)
{
// Positions [cm]
const double axiswidth = 0.2;
c... |
#include "CrashReportApp.h"
#include <sstream>
#include <memory>
#include <wx/cmdline.h>
#include <wx/chartype.h>
#include <wx/artprov.h>
#include <wx/filename.h>
#include <wx/stdpaths.h>
#include <wx/wrapsizer.h>
#include <wx/hyperlink.h>
#include "google_breakpad/processor/basic_source_line_resolver.h"
#include "g... |
// K051960
#include "tiles_generic.h"
#include "konamiic.h"
INT32 K051960_irq_enabled;
INT32 K051960_nmi_enabled;
INT32 K051960_spriteflip;
static UINT8 *K051960Ram = NULL;
static UINT8 K051960SpriteRomBank[3];
INT32 K051960ReadRoms;
static INT32 K051960RomOffset;
static UINT8 *K051960Rom;
static UINT32 K051960RomMa... |
#include "stdint.h"
#include "include/z3++.h"
#include <vector>
#include <map>
#include <unordered_set>
#include <thread>
#include <algorithm>
#include "operations.h"
#include "opcode.h"
#include "emulator.h"
#include "random_machine.h"
#include "abstract_machine.h"
#include "queue.h"
uint8_t length(instruction_seq ... |
#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... |
// self
#include "lv_align_verify.hpp"
#include "zed_CV_PCL_util.hpp"
#include "zed_utils.hpp"
#include "file_utils.hpp"
#include "time_utils.hpp"
// zed
#include <sl/Camera.hpp>
// glog
#include <glog/logging.h>
// pcl
#include <pcl/common/transforms.h>
#include <pcl/filters/voxel_grid.h>
#include <pcl/filters/statis... |
#include "Node.h"
#define MAXOPTIONVALUELENGTH 30
#include <iostream>
#include <sstream>
#include <math.h>
#include <algorithm>
#include <wx/graphics.h>
#include "../Globals.h"
#include "optionCores/OptionCore.h"
namespace{
const double Pi = 3.141592654;
std::string stringShortener(std::string input){
... |
#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... |
/*======================================================
Created by: <NAME>
Last updated: July 2014
File name: quad_track_modi.cpp
Organization: RISC Lab, Utah State University
======================================================*/
#include <ros/ros.h>
#include "risc_msgs/Risc_rois.h"
#include "risc_msgs/R... |
#include "primitive_builder.h"
#include <graphics/mesh.h>
#include <system/platform.h>
#include <graphics/primitive.h>
#include <maths/math_utils.h>
#include <vector>
#include <math.h>
//
// PrimitiveBuilder
//
PrimitiveBuilder::PrimitiveBuilder(gef::Platform& platform) :
platform_(platform),
default_cube_mesh_(NUL... |
// This file is part of BOINC.
// http://boinc.berkeley.edu
// Copyright (C) 2019 University of California
//
// BOINC 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 Licens... |
/*
The MIT License (MIT)
Copyright (c) [2016] [BTC.COM]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, me... |
//===-- VectorSubscripts.cpp -- Vector subscripts tools -------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#include "ByteVector.h"
#include "PlaintextEvaluator.h"
#include "ByteEncryption.h"
#include "ByteEncryptionAES.h"
#include <iostream>
#include <fstream>
#include "Utility.h"
using namespace std;
void Set1Challenge1() {
char *inputStr = "<KEY>";
char *expectedOutput = "SSdtIGtpbGxpbmcgeW91ciBicmFpbiBsaWtlIGEgcG9pc... |
/*!
\file test_voronoi.cpp
\author <NAME> <<EMAIL>>
-- Robotics Lab, University Carlos III of Madrid
\date 2013/9/19
________________________________________________________________________________
This program is free software: you can redistribute it and/or modify
it under... |
#include "kids/timestream/solver.h"
#include "kids/sweep/model.h"
#include "kids/timestream/solver_psd.h"
#include <tula/algorithm/ei_stats.h>
#include <tula/algorithm/index.h>
#include <tula/container.h>
#include <tula/datatable.h>
#include <tula/ecsv/core.h>
#include <tula/filename.h>
#include <tula/grppi.h>
#include... |
/*=======================================================================
Copyright (c) 2018-2019 <NAME>.
This software is distributed under the Apache License, Version 2.0.
All copies must contain the full copyright notice licence.txt located
at the base folder of the distribution.
======================... |
#include <stdlib.h>
#include <vector>
#include <cstdio>
#include <stdio.h>
#include <sstream>
#include <iostream>
#include <fstream>
#include <cmath>
#include "sinco.hpp"
/* This is the C++ implementation to solve the sparse inverse covariance
problem of the form
max _C[ K*log(det(C)-tr(AC)-\lambda ... |
#include "GLUtilities.h"
#include <iostream>
#include <vector>
#include <algorithm>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image/stb_image.h>
#define TINYEXR_IMPLEMENTATION
#include <tinyexr/tinyexr.h>
std::string getGLErrorString(GLenum error) {
std::string msg;
switch (error) {
case GL_INVALID_ENUM:
... |
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <string.h>
#include <vector>
#include <set>
#include <unordered_set>
#include <map>
#include <queue>
#include "findpath_pk.h"
#include "move_set_pk.h"
extern "C" {
#include "pair_mat.h"
}
using namespace std;
/**
* \brief
*/
struct move_fp {... |
#include "include/MMVII_all.h"
#include "include/V1VII.h"
#include "LearnDM.h"
// MMVII DMFormatTD_MDLB ".*JAX_022_004_002_.*" 100 DoRectif=1
namespace MMVII
{
namespace NS_FormatTDEDM
{
class cAppliFormatTDEDM ; // format 4 training data on epipolar dense matching
class cWT_AppliFormatTDEDM ; // format 4 trai... |
#pragma once
/*
* Build a CFG to interface with the abstract domains and fixpoint
* iterators.
*
* All the CFG statements are strongly typed. However, only variables
* need to be typed. The types of constants can be inferred from the
* context since they always appear together with at least one
* variable.
*
... |
// that can be found in the LICENSE file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All contributing project authors may
// be found in the AUTHORS file in the root of the source tree.
#include <stdint.h>
#include <cstdio>
#include <cstdlib... |
#include "weather-service.h"
#include "lib/SparkWeatherShield/SparkFun_Photon_Weather_Shield_Library.h" // Include the SparkFun MPL3115A2 library
#include "lib/SparkJson/SparkJson.h"
#include "OneWire.h"
#include <math.h>
// ctor()
WeatherService::WeatherService(){}
void WeatherService::init(bool debugMode) {
... |
//
// Created by rolf on 19-09-19.
//
// The following is a great manual giving lots of tips hints and explanations on the library
// http://www.cs.kent.edu/~ruttan/GameEngines/lectures/Bullet_User_Manual
// this resource also has a lot of information:
// https://docs.google.com/document/d/10sXEhzFRSnvFcl3XxNGhnD4N2Se... |
#include <algorithm>
#include "algorithm.h"
#include "globalvariables.h"
#include "graphics.h"
bool DEBUG_FLAG=false;
extern float WORLD_MAXX;
extern float WORLD_MAXY;
//----------------------------------------------------------------------------------------
//A*
void markCell(Robot robot, int rowIndex, int col... |
#include <chuffed/core/propagator.h>
#include <chuffed/mip/mip.h>
// sum x_i >= c <- r
// Only use scale and minus views. Absorb offsets into c.
template <int S, int R = 0>
class LinearGE : public Propagator {
vec<int> pos;
vec<IntView<2*S> > x;
vec<IntView<2*S+1> > y;
int const c;
BoolView r;
// persistent da... |
#include "C:\!!BITBUCKET\11l-lang\_11l_to_cpp\11l.hpp"
auto MAX_DIST = 1999999999.0;
auto PI_SOBRE_180 = 0.017453292;
auto PEQUENO = 0.000000001;
template <typename T1> auto colorToString(const T1 &c)
{
return u"#. #. #."_S.format(to_int(max(0.0, min(c.r * 255.0, 255.0))), to_int(max(0.0, min(c.g * 255.0, 255.0)... |
//-------------------------------------------------------------------------
// Copyright (c) 1997-1998 Great Hill Corporation
// All Rights Reserved.
//-------------------------------------------------------------------------
#include "Kramer.h"
#include "BoolOp.h"
#include "BoolVertexClassify.h"
SFBool Sec... |
/* -------------------------------------------------------------------------
*
* uheapdesc.cpp
* rmgr descriptor routines for src/gausskernel/storage/access/ustore/knl_uredo.cpp
*
* Portions Copyright (c) 2020 Huawei Technologies Co.,Ltd.
* Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group... |
/***************************************************
This is a library for the Adafruit RGB 16x2 LCD Shield
Pick one up at the Adafruit shop!
---------> http://http://www.adafruit.com/products/714
The shield uses I2C to communicate, 2 pins are required to
interface
Adafruit invests time and resources pr... |
#include "games.h"
// https://datacrystal.romhacking.net/wiki/Pok%C3%A9mon_Red/Blue:RAM_map
std::map<uint8_t, char const *> poke_item_names = {
{0x01, "Master Ball"},
{0x02, "Ultra Ball"},
{0x03, "Great Ball"},
{0x04, "Poké Ball"},
{0x05, "Town Map"},
{0x06, "Bicycle"},
{0x07, "?????"},
{0x08, "Safari Ball"... |
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "util.h"
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <algorithm>
#include <gtest/gtest.h>
void fill_stream_send... |
/* Copyright 2018 SiFive, Inc */
/* SPDX-License-Identifier: Apache-2.0 */
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdarg.h>
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <vector>
#include <iterator>
#include <fdt.h++>
using std::cout;
using std::en... |
//--------------------------------------------------------------------
//
// PeopleView.cpp
//
// Written by: <NAME>
//
//--------------------------------------------------------------------
/*
Copyright 1999, Be Incorporated. All Rights Reserved.
This file may be used under the terms of the Be Sample Code Licens... |
//=================================================================================================
//
// This file has the implementationfor the benchmark itself. The main file only calls the
// benchmark main function (where the benchmark main function is named after each benchmark).
//
//===========================... |
/*Consegna:
L'azienda Rapisardi Corporation, dopo una lunga riunione del consiglio di
amministrazione, ha deciso che, per ottimizzare i processi aziendali, necessita di
un software gestionale per catalogare i prodotti presenti in magazzino.
Hanno dunque deciso che il software in questione dovrà avere un menù con le se... |
//
// Created by kosuke on 11/29/17.
//
#include <array>
#include <random>
#include <pcl/io/pcd_io.h>
#include <opencv2/opencv.hpp>
#include "box_fitting.h"
#include <pcl/common/common.h>
#include <pcl/common/centroid.h>
using namespace std;
using namespace pcl;
using namespace cv;
// float picScale = 30;
float picS... |
// Copyright (C) 2020 <NAME>, LICENSE: BSD2
//===----------------------------------------------------------------------===//
///
/// \file
///
/// \brief Unit tests for 6502 simulator.
///
//===----------------------------------------------------------------------===//
#include <TestBase.h>
#include <Memory.h>
#includ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.