text stringlengths 3.08k 22k |
|---|
// Author(s): <NAME>
// Copyright: see the accompanying file COPYING or copy at
// https://github.com/mCRL2org/mCRL2/blob/master/COPYING
//
// 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 "glwidget.h... |
/*
* (C) Copyright 1996- ECMWF.
*
* 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 as an int... |
/*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ... |
#include <iostream>
#include <vector>
#include <string>
#include <unordered_map>
#include <time.h>
#include <sstream>
#include <iomanip>
#define DEV 1 // set dev mode
#define DEBUG 1 // set debug mode
#include "arguments.hh"
#include "game.hh"
#include "agents/pacman/pathfinding_pacman_agent.hh"
#include "agents/pacm... |
// Copyright 2010-2014 Google
// 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 wri... |
/* x360ce - XBOX360 Controller Emulator
*
* https://code.google.com/p/x360ce/
*
* Copyright (C) 2002-2010 Racer_S
* Copyright (C) 2010-2013 <NAME>
*
* x360ce 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 Softw... |
/* zenutils - Utilities for working with creative firmwares.
* Copyright 2007 (c) <NAME> <rasmus.ry{at}gmail.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 L... |
/**************************************************************
*
* 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 y... |
/******************************************
Copyright (c) 2016, <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, mo... |
/* Copyright 2022 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
/**
* @file main.cc
* @brief Example main program, demonstrating how to use SensorFusion class.
*
* This file creates a SensorFusion object, and runs a loop that produces
* orientation data every 25ms. Output is possible in NXP SensorToolbox
* application format, and also in user-defined format, depending on whi... |
#include "Alignment/MuonAlignmentAlgorithms/interface/MuonResidualsAngleFitter.h"
static TMinuit *MuonResidualsAngleFitter_TMinuit;
void MuonResidualsAngleFitter::inform(TMinuit *tMinuit) {
MuonResidualsAngleFitter_TMinuit = tMinuit;
}
void MuonResidualsAngleFitter_FCN(int &npar, double *gin, double &fval, double ... |
#include <iostream>
#include <cmath>
#include "boost/lexical_cast.hpp"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/Run.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "GeneratorInterface/AMPTInterface... |
/**********************************************************************************
* MIT License *
* *
* Copyright (c) 2021 <NAME> <<EMAIL>> ... |
/*
Copyright (c) 2017 <NAME> <<EMAIL>>
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, publish, distribute... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
/*
* Copyright (c) 2016 RISC-V Foundation
* Copyright (c) 2016 The University of Virginia
* 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 ab... |
#include <Arduino.h>
#include <ArduinoJson.h>
#include <DNSServer.h>
#include <ESP8266HTTPClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266WiFi.h>
#include <WiFiManager.h>
// Firebase Authenticator configuration.
#define FA_ID F("ec825010-06f8-11e9-b21e-c56254554cee")
#define FA_REDIRECT_PATH F("%2Fauth%3Frefr... |
//
// FILE NAME: CQCDocComp_DevDriver.Cpp
//
// AUTHOR: <NAME>
//
// CREATED: 02/05/2017
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (<NAME>.) It is licensed under the MIT Open Source
// license:
//
// https://opensource.o... |
// Copyright 2017 Vidrio Technologies
// by <NAME> <<EMAIL>>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
#ifdef _MSC_... |
#include "stdafx.h"
#include "Game.h"
Game::Game(int Level)
{
//Set Level
this->Level = Level;
//init update metrics
UpdateMetrics(0);
//init random
srand((Uint32)time(0));
//engage the first block here
FillBlockBag();
EngageBlock(true);
CanHold = true;
}
Game::~Game()
{
delete C... |
//**********************************************************************;
// Copyright (c) 2015, Intel Corporation
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of s... |
// Copyright NVIDIA Corporation 2008 -- <NAME> <<EMAIL>>
#include "nvmesh.h" // pch
#include "ParameterizationQuality.h"
#include "nvmesh/halfedge/Mesh.h"
#include "nvmesh/halfedge/Face.h"
#include "nvmesh/halfedge/Vertex.h"
#include "nvmesh/halfedge/Edge.h"
#include "nvmath/Vector.inl"
#include "nvco... |
void metric_JP(double spin, double epsilon,
double r, double theta, double mn[4][4]);
void Christoffel(double spin, double epsilon, double w1,
double w2, double CS[][4][4])
{
double spin2 = spin*spin;
double g[4][4];
double gg;
double gr[4][4];
// double grr[4][4];
double gl[4][4];
// double... |
#include "Physics.h"
#include "MeshCollisionGeometry.h"
#include "BoxCollisionGeometry.h"
#include "SphereCollisionGeometry.h"
#include "StaticBody.h"
#include "DynamicBody.h"
#include "IMesh.h"
#include "CollisionMaterial.h"
#include "IWorld.h"
#include "ray_collision.h"
Physics::Physics(IWorld *lithaWor... |
/////////////////////////////////////////////////////////////////////////////
//
// SSL Tracer functions
//
// Original idea:
// <NAME>: https://www.codeproject.com/Articles/1000189/A-Working-TCP-Client-and-Server-With-SSL
// License: https://www.codeproject.com/info/cpol10.aspx
//
#include "stdafx.h"
#include "SSLT... |
#include <random>
#include <vector>
#include <iomanip> // std::setprecision
#include <iostream>
#include <functional>
#include <algorithm>
#include <deque>
#include <cstring>
#include <string>
#include <fstream>
#include <map>
#include <cudd.h>
#include <cuddInt.h>
#include <cuddObj.hh>
#include "bdd_util.h"
#in... |
#include <nanogui/opengl.h>
#include <nanogui/glutil.h>
#include <nanogui/screen.h>
#include <nanogui/window.h>
#include <nanogui/layout.h>
#include <nanogui/label.h>
#include <nanogui/checkbox.h>
#include <nanogui/button.h>
#include <nanogui/toolbutton.h>
#include <nanogui/popupbutton.h>
#include <nanogui/combobox.h>
... |
// __BEGIN_LICENSE__
// Copyright (C) 2006-2011 United States Government as represented by
// the Administrator of the National Aeronautics and Space Administration.
// All Rights Reserved.
// __END_LICENSE__
#include <gtest/gtest.h>
#include <test/Helpers.h>
#include <vw/Plate/Blob.h>
#include <vw/Plate/BlobManager... |
#include <memory>
#include "logger.h"
#include "sys.h"
#include "luahelper.h"
#include "luactx.h"
#include "cnfctx.h"
CnfCtx *CnfCtx::loadCnf(const char *dir, char *errbuf)
{
std::vector<std::string> luaFiles;
if (!sys::readdir(dir, ".lua", &luaFiles, errbuf)) return 0;
std::string mainlua = std::string(dir) +... |
/* HexWS2811z - an OctoWS2811 fork to drive 16 LED strips at once using a Teensy 3.x
by <NAME> <<EMAIL>> Zero copy version, similar to the Fadecandy
implementation.
Based on:
OctoWS2811 - High Performance WS2811 LED Display Library
http://www.pjrc.com/teensy/td_libs_OctoWS2811.html
Copyright (... |
/*
* file DFRobot_EC.cpp
* @ https://github.com/DFRobot/DFRobot_EC
*
* Arduino library for Gravity: Analog Electrical Conductivity Sensor / Meter Kit V2 (K=1), SKU: DFR0300
*
* Copyright [DFRobot](http://www.dfrobot.com), 2018
* Copyright GNU Lesser General Public License
*
* version V1.01
* date 2018-0... |
#include "server.hpp"
#include "MessageType.hpp"
#include <fmt/chrono.h>
#include <fmt/color.h>
#include <fmt/format.h>
#include <nlohmann/json.hpp>
#include <spdlog/sinks/basic_file_sink.h>
#include <spdlog/sinks/rotating_file_sink.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include <spdlog/spdlog.h>
#include ... |
//
// main.cpp
// spatial-decode-example
//
// Created by <NAME> on 10/31/19.
// Copyright © 2019 Mach1. All rights reserved.
//
#if defined(_WIN32)
#include <time.h>
#include <windows.h>
#include <conio.h>
#define _TIMESPEC_DEFINED
#else
#include <sys/time.h>
#include <unistd.h>
#include <termios.h>
#endif
#incl... |
#include <gloperate/plugin/PluginManager.h>
#include <algorithm>
#ifdef WIN32
#include <Windows.h>
#else
#include <dlfcn.h>
#include <libgen.h>
#include <dirent.h>
#endif
#include <globjects/logging.h>
#include <gloperate/plugin/PluginLibrary.h>
#include <gloperate/plugin/Plugin.h>
#include "base/DirectoryIterator... |
#include "pch.h"
#include "Uart.h"
CUart::CUart()
{
m_bOpened = FALSE;
memset(&m_rdo, 0, sizeof(OVERLAPPED));
m_rdo.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
memset(&m_wro, 0, sizeof(OVERLAPPED));
m_wro.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
memset(m_ucTxBuffer, 0, sizeof(m_ucTxBuffer));
memset(m... |
#include "dicomsender.h"
#include "alphanum.hpp"
#include <set>
#include <boost/filesystem.hpp>
#include <boost/thread/mutex.hpp>
#include "patientdata.h"
#include "destinationentry.h"
#include <boost/lexical_cast.hpp>
#include <boost/thread.hpp>
#include "destinationentry.h"
#include "ndcappender.h"
#include <boost/r... |
#include <unordered_map>
#include "data_source/corenlp_utils.h"
#include "data_source/corenlp.h"
#include "data_source/ygp_db.h"
#include "wordrep/voca.h"
#include "fmt/printf.h"
#include "tests/test_sent2vec.h"
#include "models/sentence2vec.h"
#include "utils/profiling.h"
#include "utils/base_types.h"
#include "... |
// Riders of Fortune Revised.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include <iostream>
#include <time.h>
#include <stdlib.h>
#include <string>
using namespace std;
const int NUM_OF_TILES = 28;
char entPosOnMap[NUM_OF_TILES];
const int numWeapons = ... |
#include <Python.h>
#include <locale>
#include "diff-match-patch-cpp-stl/diff_match_patch.h"
#if PY_MAJOR_VERSION == 3
// Upgrade these types.
#define PyString_FromString PyUnicode_FromString
#define PyString_FromStringAndSize PyUnicode_FromStringAndSize
#define PyInt_FromLong PyLong_FromLong
#endif
... |
/*
Copyright (c) 2009-2013, <NAME>
2013, <NAME>
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#include "rote.hpp"
namespa... |
/** @file seismicunix.c
* @brief Implementação da biblioteca seismicunix.h
*
* @author <NAME> (theorangewill).
*/
#ifndef SEISMICUNIX_H
#include "seismicunix.h"
#define SEISMICUNIX_H
#endif
bool LeitorArquivoSU(const char *argumento, ListaTracos ***listaTracos, int *tamanhoLista, float aph, float azimuth, int c... |
/*
* Copyright 2020 Xilinx, 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... |
/*
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... |
/**
@file ADF4002.cpp
@author <NAME>
@brief ADF4002 module configuring
*/
#include "ADF4002.h"
#include <cmath>
#include <string.h>
using namespace lime;
ADF4002::ADF4002()
{
}
ADF4002::~ADF4002()
{
}
/** @brief Sets default values
*/
void ADF4002::SetDefaults()
{
//Reference Counter Latch
cmbLDP = 0;
... |
// Copyright (C) 2018 <NAME>, <NAME>, <NAME>.
// Boost Software License - Version 1.0 - August 17th, 2003
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "Software") to use, reproduce, dis... |
#include "facedet.hpp"
Facedet::Facedet(){
}
Facedet::~Facedet(){
}
Facedet::Facedet(const char *modelPath){
this->net = std::shared_ptr<MNN::Interpreter>(MNN::Interpreter::createFromFile(modelPath));
this->backendConfig.precision = (MNN::BackendConfig::PrecisionMode) this->precision;
this->backendConfig... |
/*
Copyright 2011 Aevum Software aevum @ aevumlab.com
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) 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 condit... |
// Libraries
#include <Arduino.h> // For platformio development
#include "mcp_can.h" // mcp2515 library
#include <SPI.h>
#include "setup_config.h" // Contains all CAN configuration(pins, ids, etc)
// CAN instances
MCP_CAN CAN0(CAN0CS);
MCP_CAN CAN1(CAN1CS);
// Timer help
int startMillis0 = 0;
int startMillis1 ... |
#include "Socket.h"
#include "Endpoint.h"
#include <vector>
#include <thread>
#include <memory>
#include <mutex>
#include <chrono>
#include <atomic>
#include <random>
#include <ctime>
#include <map>
#include <fstream>
namespace Randomiser
{
std::mt19937 generator{ static_cast<std::mt19937::result_type>(std::time(null... |
/*
** PCL6Rasterizer.cpp
** Copyright 2005, <NAME>, <EMAIL>.
** All rights reserved.
** Distributed under the terms of the MIT License.
*/
#include "PCL6Rasterizer.h"
#include <stdio.h>
#ifdef _PCL6_RASTERIZER_TEST_
static void dump(uchar* buffer, int size);
static void dump_bits(uchar* buffer, int size);
#defin... |
/* <NAME>, grupa 10
*
* Caz mediu statistic :
* - cea mai rapida metoda este Insertion Sort
* - cele mai putine atribuiri le face Selection Sort
* - cele mai putine comparatii le face Insertion Sort
*
* Caz favorabil :
* - cea mai rapida metoda este Bubble Sort
* - cele mai putine atribuiri le fac Bubble Sort si Select... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
//Characters 'a' to 'z' correspond to the numbers 0 through 25 and characters 'B' to 'Z' correspond to numbers -1 through -25.
int A[30... |
/* ----------------------------------------------------------------------
SPPARKS - Stochastic Parallel PARticle Kinetic Simulator
http://www.cs.sandia.gov/~sjplimp/spparks.html
<NAME>, <EMAIL>, Sandia National Laboratories
Copyright (2008) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85... |
/* Name: opendevice.c
* Project: V-USB host-side library
* Author: <NAME>
* Creation Date: 2008-04-10
* Tabsize: 4
* Copyright: (c) 2008 by OBJECTIVE DEVELOPMENT Software GmbH
* License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt)
* This Revision: $Id$
*/
/*
General Descript... |
//main.cpp -- This program prompts user for how many rooms and room dimensions then calculates how many tiles and boxes they will need
//CSIS 112-002
//<Sources if necessary>
// The use of an allowed character array mentioned by <NAME>
//Include statements
#include <iostream>
#include <string>
//Global declarations: ... |
/*
Copyright (c) 2012 <NAME>, <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 ... |
#include "BaseRDMA.h"
#include "../message/ProtoMessageFactory.h"
#include "../utils/Logging.h"
#include "../utils/Filehelper.h"
#include "ReliableRDMA.h"
#include "UnreliableRDMA.h"
#ifdef LINUX
#include <numa.h>
#include <numaif.h>
#endif
using namespace rdma;
rdma_mem_t BaseRDMA::s_nillmem;
//-----------------... |
//===-- FindArrayAckermannizationVisitor.cpp --------------------*- C++ -*-===//
//
// The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------------... |
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <iostream>
#include "SkDebugCanvas.h"
#include "SkDrawCommand.h"
SkDebugCanvas::SkDebugCanvas(int width, int height) {
// TODO(chudy): Free up memory from all ... |
/*
@file gauss.cpp
@desc Performs gaussian elimination on a matrix to reduce to upper-triangular
form then computes and outputs the determinant of the matrix.
@auth <NAME>
@date 05 Apr 2011
@note This program utilizes the MPI parallel library on a 64-bit cluster.
*/
// STL libraries
#include <iostr... |
/*
Copyright 2013 <NAME> and <NAME>
This file is part of CampersCoreBurner.
CampersCoreBurner is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later... |
/* =========FOR INTERNAL USE ONLY. NO DISTRIBUTION PLEASE ========== */
/*********************************************************************
Copyright 1999-2007, University of Cincinnati. All rights reserved.
By using this software the USER indicates that he or she has read,
understood and will comply with the f... |
/* Copyright (c) AIRBUS 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 <pybind11/pybind11.h>
#include <pybind11/numpy.h>
#include <pybind11/functional.h>
#include <pybind11/iostream.h>
#include "iw.hh"
#incl... |
/**
* GameServer.cpp (Prototype)
*
* A prototype game server implementation.
*
* Points to consider:
* - Something like this could be run on an MMO server with the appropriate technology:
* - (Multi-threading would be very important for this!)
* - Works great in this current state for a small multiplayer game (of u... |
//
// Created by Ansore on 10-05-2015.
//
#include "Board.h"
#include <fstream>
#include <iomanip>
#include <math.h>
Board::Board() {
numColumns = numLines = 0;
}
Board::Board(const std::string &filename) {
std::ifstream inputFile;
char dummy;
char symbol, line, column, orientation;
Position<char> t... |
/** @file
A brief file description
@section license License
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 und... |
// BEGIN CUT HERE
#pragma warning(disable:4018) // signed/unsigned mistatch
#pragma warning(disable:4244) // w64 to int cast
#pragma warning(disable:4267) // big to small -- possible loss of data
#pragma warning(disable:4786) // long identifiers
#pragma warning(disable:4800) // forcing int to bool
#pragma wa... |
// 570C_replacement.cc - Codeforces.com/problemset/problem/570/C Replacement program by Sergey 2015
#include <bits/stdc++.h>
using namespace std;
///////////////////////////////////////////////////////////////////////////////
// Unit tests base Class
///////////////////////////////////////////////////////////////////... |
/**
* @file activation_functions_test.cpp
* @author <NAME>
*
* Tests for the various activation functions.
*/
#include <mlpack/core.hpp>
#include <mlpack/methods/ann/activation_functions/logistic_function.hpp>
#include <mlpack/methods/ann/activation_functions/identity_function.hpp>
#include <mlpack/methods/ann/ac... |
#include "../dep/laynii_lib.h"
#include <limits>
#include <fstream>
int shoq_help(void) {
printf(
"LN2_COLTRIAN: WORK IN PROGRESS... EXTREMELY EXPERIMENTAL!\n"
" Column triangulation.\n"
"\n"
"Usage:\n"
" LN2_COLTRIAN -input1 columns.nii\n"
"\n"
"Options:\n"
" -h... |
// Sample code that calls the Contest Super Simulator.
// There are basic things we do here:
// a) simulate calling CQ in CW in a way that propts the Simulator to answer,
// showing how to do it without WinKey
// b) the same in RTTY
// c) Get the simulator to generate CW sidetone showing an alternative to
// th... |
#include <aliLuaExt_execEngine.hpp>
#include <aliLuaExt_execEngineWork.hpp>
#include <aliLuaExt_threading.hpp>
#include <lua.hpp>
#include <iostream>
namespace {
static std::string engineExecType = "execEngine";
using OBJ = aliLuaExt::ExecEngine::OBJ;
using QListener = aliSystem::Threading::Queue::QListe... |
#include "visitedmap.h"
visitedMap::visitedMap(Rect_<float> rectImgL, Rect_<float> rectImgR)
{
this->rectImgL = rectImgL;
this->rectImgR = rectImgR;
visited = vector<bool>(rectImgR.area(), false);
nWidth = rectImgL.width;
use8Neighbour = true;
}
void visitedMap::getNeighbours(const CTiePt tiepoint... |
#include "global.h"
static int cog_servo_feedback_stack_[kNumberOfServos * kCogServoFeedbackStackSize];
volatile static unsigned long millis_ = 0;
ServoContext servos_contexts_[kNumberOfServos];
char serial_command_buffer_[SERIAL_COMMANDS_BUFFER_SIZE];
SerialCommands host_serial_commands_(serial_command_buffer_, size... |
#include "bond.hpp"
/**************************
** Bond member functions **
**************************/
Bond::Bond() : Object() { type_ = obj_type::bond; }
void Bond::Init(Site *s1, Site *s2) {
s1->AddBond(this, OUTGOING);
s2->AddBond(this, INCOMING);
sites_[0] = s1;
sites_[1] = s2;
ReInit();
SetEquilLeng... |
//
// Created by horak_000 on 26. 2. 2019.
//
#include "AES_CBC_PKCS7_SHA512.hpp"
void write_n(std::ostream &out, unsigned char *data, size_t length) {
out.write((char *) data, length);
}
std::string hash_sha512(std::istream &in) {
SHAWrapper wrapper{SHA::S512};
while (in.good()) {
unsigned char ... |
// Name(s):
// ID(s):
// 159.240 - Assignment 3 skeleton code.
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include <stdio.h>
// The Ship struct
struct Ship {
float x,y; // Every ship has a position
float vx,vy; // and a velocity
int team;
// These three data members are for targeting.
//... |
/**
*********************************************************************
*************************************************************************
***
*** \file GizmoPowermate.cpp
*** \brief GizmoPowermate class body
***
*****************************************
*****************************************
... |
#include "wiIntersectables.h"
#include "wiMath.h"
AABB::AABB() {
for (int i = 0; i<8; ++i) corners[i] = XMFLOAT3(0, 0, 0);
}
AABB::AABB(const XMFLOAT3& min, const XMFLOAT3& max) {
create(min, max);
}
void AABB::createFromHalfWidth(const XMFLOAT3& center, const XMFLOAT3& halfwidth) {
XMFLOAT3 min = XMFLOAT3(center.... |
/**
* CMA-ES, Covariance Matrix Adaptation Evolution Strategy
* Copyright (c) 2014 Inria
* Author: <NAME> <<EMAIL>>
*
* This file is part of libcmaes.
*
* libcmaes 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 So... |
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
/*
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 la... |
/*
* Copyright 2014 <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 ... |
/**
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: <NAME>
*/
#include "particle_filter.h"
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include "helper_functions.h"
using std::string;
using ... |
#include "auth.h"
#include "core.h"
#include "firebase/auth.h"
#include "util.h"
namespace firebase {
namespace auth {
using ::val;
std::unique_ptr<Value> val(const User* user) {
if (user == nullptr) {
return val();
}
auto output = std::make_unique<ValueMap>();
auto metadata = std::make_unique<ValueMap>... |
#include "interface_mqtt.h"
//#define LOG_LOCAL_LEVEL ESP_LOG_DEBUG
#include "esp_log.h"
#include "mqtt_client.h"
#include "ClassLogFile.h"
static const char *TAG_INTERFACEMQTT = "interface_mqtt";
std::map<std::string, std::function<void()>>* connectFunktionMap = NULL;
std::map<std::string, std::function<bool(std:... |
#include <alsa/asoundlib.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <ctype.h>
#include <sched.h>
#include <stdio.h>
#include "../Logger.h"
#define PACKETSIZE 16384
void setScheduler();
void setHwParams(snd_pcm_t *hWave, int numChannels, int bytesPerSample, int samplePerSec, int pe... |
#include "datatypes/raster.h"
#include "datatypes/raster/raster_priv.h"
#include "datatypes/pointcollection.h"
#include "raster/profiler.h"
#include "raster/opencl.h"
#include "operators/operator.h"
#include "util/rasterize_polygons.h"
#include <json/json.h>
#include <algorithm>
/**
* Operator that extracts raster i... |
/******************************************************************************\
* Technische Universitaet Darmstadt, Institut fuer Nachrichtentechnik
* Copyright (c) 2001
*
* Author(s):
* <NAME>
*
* Description:
* Mapping of the symbols on the carriers
*
******************************************************... |
/******************************************************************************
* Copyright (c) 2013-2014, Amsterdam University of Applied Sciences (HvA) and
* Centrum Wiskunde & Informatica (CWI)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or wi... |
#include <ny/ny.hpp>
#include <nytl/vecOps.hpp>
#include <dlg/dlg.hpp>
#include <any>
// used at the moment to test data sources and data offers, dragndrop and clipboard stuff
// Our CustomDataSource implementation that will be used if we want to provide data of different
// types to the backend, e.g. for the clipboa... |
/*
Generic ESP8266 Modul
1MB Flash
*/
#include <Adafruit_NeoPixel.h>
#include <MQTTClient.h>
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <mdns.h>
#include <ESP8266HTTPUpdateServer.h>
#include "config.h"
/*
Defines
*/
//for OTA
ESP8266HTTPUpdateServer httpUpdater;
//WS2812B Stripes
#defi... |
/*
**
** $Filename: b3BaseTrans.cc $
** $Release: Dortmund 2005 $
** $Revision$
** $Date$
** $Author$
** $Developer: <NAME> $
**
** Blizzard III - Performing base transformation
**
** (C) Copyright 2005 <NAME>
** All Rights Reserved
**
**
**
*/
/********************************************************************... |
/// ******************************************************************
/// File : Criccaldi.cpp
/// About : Maximal cliques finding based on Amaldi's algorithm for MCB
/// Author : <EMAIL>
/// License : Copyright (C) 2018 <NAME>, MIT License (MIT)
///
/// Ref. :
/// - Efficient Deterministic Algorithms for Finding a Mi... |
#include "lib.h"
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cctype>
std::ofstream logstrm;
double java_lang_Double::NaN_ = std::numeric_limits<double>::quiet_NaN();
double java_lang_Double::MIN_VALUE_ = std::numeric_limits<double>::min();
double java_lang_Double::MAX_VALUE_ = std::numeric... |
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "font.h"
#include "view.h"
#ifndef alloca
#define alloca _alloca
#endif
void Formatter::update_highlighter(File *file, int64_t offset, char c) {
}
void Grid::render_into(File *file, Cell *cells, Formatter *formatter, Input_Stat... |
#include <TinyErode.h>
#include "stb_image.h"
#include "stb_image_write.h"
#include "debug.hpp"
#include <algorithm>
#include <array>
#include <chrono>
#include <iostream>
#include <random>
#include <sstream>
#include <vector>
#include <math.h>
#include <string.h>
bool
LoadImage(std::vector<float>& heightMap, int&... |
/* Copyright (C) 2005-2011, <NAME> <<EMAIL>>
Copyright (C) 2010, <NAME> <<EMAIL>>
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 abov... |
/*
Copyright (c) 2012 Adobe Systems Incorporated
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, publish, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.