text stringlengths 3.08k 22k |
|---|
//
// Model predictive controller
//
// Copyright (C) 2018 <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,... |
//LIBRARIES
#include <arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <TimeLib.h>
#include <LiquidCrystal.h>
//SOFTWARE VARIABLES
int timeBeforeUpdate = 30; //SECONDS BETWEEN NTP UPDATES
char ssid[] = "SSID";
char pass[] = "PASSWORD";
char hostname[] =... |
/** @brief Fichero de implementacion de la clase fecha
*/
// Constructor por defecto
fecha::fecha(){
sec = 0;
min = 0;
hour = 0;
day = 1;
mon = 1;
year = 2000;
apm = false;
}
//-----------------------------------------------------------------------------
// Constructor de copia
fecha::fecha (const fech... |
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <wx/spinctrl.h>
#include <wx/hyperlink.h>
#include "WinSetAbt.h"
#include "GlobalVars.h"
WinSetAbt::WinSetAbt(wxWindow* parent, wxWindowID winID, double rating, double deviation, double volatility, double tau)
:wxPanel(parent, winID) {
w... |
#include <iostream>
#include <sstream>
#include <cmath>
#include <GL/gl.h>
#include <GL/glut.h>
#include <SDL2/SDL.h>
#include "LevelView.h"
#include "TileView.h"
#include "Gui.h"
using namespace std;
struct SpaceConverter
{
SpaceConverter(LevelView *levelView) : levelView(levelView) {};
inline float _screen... |
/******************************************************************************
This file is part of ColPack, which is under its License protection.
You should have received a copy of the License. If not, see
<https://github.com/CSCsw/ColPack>
***************************************************************... |
/*
Copyright (c) 2011, Siemens Corporate Research a Division of Siemens Corporation
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.... |
/** @file "Goal.cc"
* @brief Goal implementation
*
* @author <NAME> <<EMAIL>>
* @ingroup transaction
*/
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, MBARI.
* All rights reserved.
*
* Redistribution and use in so... |
#include <Arduino.h>
#include <SoftwareSerial.h>
#include "LedMatrix.h"
#define MOSI_PIN 11
#define SCK_PIN 13
#define X_PIN_COUNT 12
#define Y_PIN_COUNT 6
uint8_t xPins[X_PIN_COUNT] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13};
uint8_t yPins[Y_PIN_COUNT] = {A0, A1, A2, A3, A4, A5};
LedMatrix ledMatrix = LedMatrix(X_... |
#include "myutils.h"
#include "speciesindex.h"
#include <map>
static const char *GetSpeciesNameFromLabel(const string &Label, string &SpeciesName)
{
vector<string> Fields;
Split(Label, Fields, '.');
SpeciesName = Fields[0];
return SpeciesName.c_str();
}
void SpeciesIndex::AppendUniqueSyncmerHashes(c... |
#include "../../../../source/openwl.h"
#include <stdio.h>
#include "../main.h"
#include <thread>
#include <vector>
#include <gdiplus.h>
using namespace Gdiplus;
GdiplusStartupInput gdiplusStartupInput;
ULONG_PTR gdiplusToken;
Gdiplus::Bitmap *bgBitmap;
Gdiplus::Graphics *bgGraphics;
unsigned int *data;
... |
#include <algorithm>
#include <cassert>
#include <chrono>
#include <iostream>
#include <math.h>
#include <numeric>
#include <string>
#include <vector>
#include "fileUtils.h"
#include "node.h"
#include "word.h"
using Grouping = std::unordered_map<Information, WordSet>;
/**
* The size-metric.
*
* Given a list o... |
/*
bstamp_tokenize.cpp
This interfaces with Parallax, Inc.'s PBASIC Tokenizer Shared Library for
the Linux operating system.
It reads a PBASIC source file and writes the tokenized results to a file
which can then be sent to the BASIC Stamp microcontroller using the
"bstamp_run" program.
Based on... |
#pragma once
#include <cstdint>
#include <chrono>
#include <iostream>
#include <set>
#include <stdexcept>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#ifndef USE_BOOST_BEAST
#ifdef _WIN32
#include <winsock2.h>
#pragma comment(lib, "WS2_32.LIB")
#endif
#pragma warning(push)
#pragma warning(d... |
/* ============================================================================
Copyright (c) 2011-2014, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
TU Wien.
-----------------
ViennaSHE - Th... |
/**
* Copyright (c) 2009 Carnegie Mellon University.
* 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... |
/*
* Hedgewars, a free turn based strategy game
* Copyright (c) 2004-2015 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License
*
* This program is ... |
#include <tuple>
#include <map>
#include <cstdint>
#include <vector>
#include <fstream>
#include <functional>
#define T(A, B) std::make_tuple(A, B)
namespace mp3
{
enum Version{v_2_5, v_reserved, v_2, v_1};
enum Layer{l_reserved, l_iii, l_ii, l_i};
enum Protected{p_crc, p_none};
enum ChannelMode{stereo, jo... |
#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007; // 998244353
template <typename T>
struct modular {
constexpr modular() : val(0){}
constexpr modular(const modular<T>& _m) : val(_m.val) {}
template <typename U> constexpr modular(const U& _r = U()) {
val = -MOD <= _r && _r... |
/*
* mu_vision_sensor_uart_interface.cpp
*
* Created on: 2018年8月8日
* Author: ysq
*/
#include "mu_vision_sensor_uart_interface.h"
MuVsUartMethod::MuVsUartMethod(uint32_t address)
: MuVsMethod() {
mu_address_ = address;
}
MuVsUartMethod::~MuVsUartMethod() {}
//Not use
//mu_err_t MuVsUartMethod::begin... |
/*
* Copyright 2019 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 ... |
#include "application.h"
#include "unit-test.h"
const uint8_t Test::UNSETUP = 0;
const uint8_t Test::LOOPING = 1;
const uint8_t Test::DONE_SKIP = 2;
const uint8_t Test::DONE_PASS = 3;
const uint8_t Test::DONE_FAIL = 4;
Test::TestString::TestString(const char *_data) : data((uint32_t)_data) {}
void Test::TestString::... |
/**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include "... |
//-------------------------------------------------------------------
// Name: exeLeHdr.cpp
// Purpose:
// Author: <NAME>
//
// Copyright:
// Licence: wxWidgets licence
//-------------------------------------------------------------------
//---------------------------------------------------------... |
// 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 "chrome/test/chromedriver/net/port_server.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/logging.h"
#include "base/... |
#include "data/hdf/HDFPlsReader.h"
#include "data/hdf/HDFRegionTableReader.h"
#include "datastructures/reads/RegionTable.h"
#include "datastructures/reads/ReadInterval.h"
#include "files/ReaderAgglomerate.h"
#include "utils/FileOfFileNames.h"
#include "utils/RegionUtils.h"
#include "SMRTSequence.h"
#include "utils.h"
#... |
#include <string.h>
// The following line is needed because the Arduino environment
// won't search a library directory unless the library is included
// from the top level file (this file)
#include "can.h"
#include "OpenLcbCan.h"
#include "OpenLcbCanInterface.h"
#include "OpenLcbCanBuffer.h"
#include "NodeID.h"
#i... |
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| |
| Cop... |
#include <iostream> //std::cout
#include <cstdlib>
#include <algorithm> // std::sort()
#include <sstream>
#include "FL/fl_ask.H" // fl_alert(-)
#include "pri.h"
#include "fl_gl_image_view.h"
#include "ids_path_level_from_files.h"
#include "cb_scan_and_save.h"
#include "cb_trace_files.h"
#include "gts_master.h"
#includ... |
/*******************************************************************\
Module: Defines functions related to string constraints.
Author: <NAME>, <EMAIL>
\*******************************************************************/
/// \file
/// Defines related function for string constraints.
#include "string_constraint_ins... |
/*
* Copyright 2007, <NAME> <<EMAIL>>.
* All rights reserved. Distributed under the terms of the MIT License.
*/
#include "pci_atari.h"
#include <stdlib.h>
#include <string.h>
#include <KernelExport.h>
#include <PCI.h>
#include "pci_controller.h"
/*
* Here we fake a PCI bus that maps the physic... |
// This is a generated file, modify: generate/templates/templates/class_content.cc
#include <nan.h>
#include <string.h>
extern "C" {
#include <git2.h>
}
#include "../include/nodegit.h"
#include "../include/lock_master.h"
#include "../include/functions/copy.h"
#include "../include/revparse.h"
#include "nodegit_wra... |
// Ceres Solver - A fast non-linear least squares minimizer
// Copyright 2015 Google Inc. All rights reserved.
// http://ceres-solver.org/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of so... |
/*
* This file is part of MICA, a Pin tool to collect
* microarchitecture-independent program characteristics using the Pin
* instrumentation framework.
*
* Please see the README.txt file distributed with the MICA release for more
* information.
*/
#include "pin.H"
/* MICA includes */
#include "mica_utils.h"
#... |
#include "systeminit.h"
#include "epdgui/epdgui.h"
#include "frame/frame.h"
#include "Free_Fonts.h"
#include "global_setting.h"
#include "resources/binaryttf.h"
#include <WiFi.h>
QueueHandle_t xQueue_Info = xQueueCreate(20, sizeof(uint32_t));
void WaitForUser(void)
{
SysInit_UpdateInfo("$ERR");
while(1)
{... |
/**********
* Copyright (c) 2017-2019, Xilinx, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this lis... |
//
//
// MIT License
//
// Copyright (c) 2017 Stellacore Corporation.
//
// 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 ... |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... |
/*
* Copyright (c) 2014, <NAME>, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#i... |
// Copyright 2021 Xeni Robotics
//
// 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 i... |
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofSetCircleResolution(40);
//our history arrays are initialized with a value of zero for all of it's elements.
for (int i=1; i<TAIL_LENGTH; i++) {
waveHistory[i] = ofVec3f(0, 0, 0);
}
for (int i=1; i<WAV... |
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* This is script-generated code (for the most part). */
/* See fileRmdir.h for a description of this API call.*/
#include "fileRmdir.hpp"
#include "fileOpendi... |
// -*- C++ -*-
///bookLayer
// Package: SiPixelPhase1MonitorRecHitsSoA
// Class: SiPixelPhase1MonitorRecHitsSoA
//
/**\class SiPixelPhase1MonitorRecHitsSoA SiPixelPhase1MonitorRecHitsSoA.cc
*/
//
// Author: <NAME>, <NAME>
//
#include "DataFormats/Math/interface/approx_atan2.h"
#include "DataFormats/Common/inte... |
#include <QByteArray>
#include <QDataStream>
#include <QDebug>
#include <QFile>
#include <QList>
#include <QRegExp>
#include <QString>
#include <QtDebug>
#include <QXmlStreamWriter>
#include <QXmlInputSource>
#include "BundleObservationSolveSettings.h"
#include "BundleSettings.h"
#include "FileName.h"
#include "IExcep... |
//===- unittest/BinaryFormat/MachOTest.cpp - MachO support tests ----------===//
//
// 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
//
//===---------------------------... |
//'---------------------------------------------------------------------------------------
//' File : main.cpp
//' Author : <NAME> (mat. 7060381)
//' Date : 8/11/2020
//' Purpose : Main class for both sequential and OpenMP versions of K-means.
//'---------------------------------------------------------... |
/** \copyright
* Copyright (c) 2012, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of... |
#include "Mesh.h"
#include<fstream>
#include<sstream>
std::vector<std::string> split(std::string str, std::string delimiter) {
using namespace std;
vector<string> returnVec;
while (true) {
int pos = str.find(delimiter);
if (pos == -1) { // Cant find position of delimiter.
... |
#include <math.h>
#include <iostream>
#include <random>
#include <vector>
#include "../../test_utils.hpp"
#include "gtest/gtest.h"
#include "nsvd.hpp"
#include "svd.hpp"
#include "types.hpp"
TEST(two_sided_svd_blocked_less_copy, identity_matrix) {
size_t n_rows = 96, n_cols = 96;
aligned_vector<double> X(n_row... |
#include "catboost_logger_helpers.h"
TString TOutputFiles::AlignFilePath(const TString& baseDir, const TString& fileName, const TString& namePrefix) {
const TFsPath filePath(fileName);
if (filePath.IsAbsolute()) {
return JoinFsPaths(filePath.Dirname(), namePrefix + filePath.Basename());
}
retu... |
//===--- SILGenThunk.cpp - SILGen for thunks ------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2010 - 2018, Göteborg Bit Factory.
//
// 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 witho... |
/*************************************************************************
iconlist.c -- last change: 6-9-1998
Copyright (C) 1996-2007 <NAME>
This file is part of SVGAgui.
SVGAgui is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the F... |
#include "http_handler.h"
#include <string>
#include "utils.h"
#include "timer.h"
#include "jsons.h"
#include "conf.h"
#include "common.h"
static const char* ERR_ids_resp = "{\"code\":1,\"message\":\"invalid id\"}";
static const char* ERR_server_resp = "{\"code\":1,\"message\":\"Internal Server Error\"}";
struct ... |
/*ckwg +29
* Copyright 2018 by Kitware, SAS.
* 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... |
/*
* Copyright 2020 Google LLC
*
* 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 ... |
// DarkHelp then pulls in OpenCV and much more, so this keeps the headers simple.
#include <DarkHelp.hpp>
#include <fstream> // needed for Ubuntu 18.04
const std::string darkplate_configuration = "DarkPlate.cfg";
const std::string darkplate_best_weights = "DarkPlate_best.weights";
const std::string darkplate_names ... |
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
* Qwt Widget Library
* Copyright (C) 1997 <NAME>
* Copyright (C) 2002 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
**************************... |
#include <assert.h>
#include <future>
#include "checker.hpp"
#define CALL_MEMBER_FN(object, ptrToMember) ((object).*(ptrToMember))
Checker::Checker(const string _inequality_LHS,
const string _inequality_RHS,
const vector<string> _constraints_LHS,
const vector<strin... |
#include "NetworkManager.h"
#include "Message.h"
#include "Log.h"
#include "Menu.h"
#include "Game.h"
#include "Constants.h"
// Session Response messages
#include "MsgResLogin.h"
#include "MsgResQueue.h"
#include "MsgResRegister.h"
// Game Messages
#include "MsgPosition.h"
#include "MsgHealth.h"
#include "MsgDraw.h"
... |
//=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 <NAME> and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS sourc... |
/**
* Created by <NAME> on 25/06/2020.
**/
#include "NasNas/core/graphics/BitmapText.hpp"
using namespace ns;
BitmapGlyph::BitmapGlyph(const ns::IntRect& texture_rect, char character, int default_advance) :
texture_rect(texture_rect),
character(character),
advance(default_advance)
{}
BitmapFont::BitmapFont(const ... |
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include "mas/concurrency/bind_simple.hpp"
#include "mas/concurrency/function.hpp"
int regular_function(std::vector<int>&& i) {
int sum = 0;
for (int v : i) {
sum += v;
}
return sum;
}
int overloaded_function(int b) {
return b;
}
int ov... |
/*!
* @section LICENSE
*
* @copyright
* Copyright (c) 2015-2017 Intel Corporation
*
* @copyright
* 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
*
* @copyright
* http://www.apach... |
// -----------------------------------------------------------------------------------bl-
// BSD 3-Clause License
//
// Copyright (c) 2020-2022, The PECOS Development Team, University of Texas at Austin
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are... |
/*
* StochasticPooling.c
*
* Implements the stochastic-pooling transfer function. Takes a 4D tensor shaped as
* (rows, cols, nchannels, nsamples) and a pooling shape as (prows, pcols) and
* returns a set of stochastic sampled values with the corresponding indices in the input
* matrix.
*
* e.g.
* [m, idx]... |
// system includes
#include <iostream>
#include <iomanip>
#include <sstream>
#include <string>
#include <time.h>
// user includes
#include "DataFormats/SiStripCommon/interface/Constants.h"
#include "DataFormats/SiStripCommon/interface/SiStripConstants.h"
#include "DataFormats/SiStripCommon/interface/SiStripFedKey.h"
#... |
/* Copyright (c) <2003-2016> <Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* ... |
#include <zmqls/client.hpp>
#include <iostream>
#include <thread>
#include <chrono>
#include <zmq.hpp>
#include <opencv2/opencv.hpp>
#include <zmqls/zmqls.hpp>
#include <zmqls/cl_args.hpp>
#include <zmqls/json.hpp>
using namespace std;
using namespace std::chrono;
static cv::Mat gamma_image(const c... |
#define _INTSAFE_H_INCLUDED_
#include <cstdint>
#include <stdio.h>
#include <assert.h>
#include <math.h>
#include "timer.h"
#ifdef _WIN32
#include <intrin.h>
#include <Windows.h>
#pragma intrinsic(__rdtsc)
#else
#include <unistd.h> /* For sleep() */
#define Sleep(x) usleep(x*1000)
#endif
double cp... |
/*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... |
/**
* Copyright (C) Mellanox Technologies Ltd. 2001-2014. ALL RIGHTS RESERVED.
* Copyright (C) UT-Battelle, LLC. 2014. ALL RIGHTS RESERVED.
* See file LICENSE for terms.
*/
extern "C" {
#include <uct/api/uct.h>
#include <ucs/time/time.h>
}
#include <common/test.h>
#include "uct_test.h"
class test_uct_pending : publi... |
// Copyright (c) 2009-2016 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
// Maintainer: jglaser
#include "ForceCompositeGPU.h"
#include "hoomd/VectorMath.h"
#include "ForceCompositeGPU.cuh"
namespace py = pybind11;
/*! \file Forc... |
/*
* rateHill.cpp
*
* Created on: Feb 25, 2011
* Author: <NAME>
*/
#include "../rateExpression.hh"
#include "../../util/util.hh"
RateHill::RateHill(double Vmax, double Kh, double h, vector<SimpleSpecies*> r, vector<int> rS) : Vmax(Vmax), Kh(Kh), h(h), rStoich(rS){
if (debug)
cout << "RateHill constructo... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/installer/util/lzma_util.h"
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/strings/utf_string_conversion... |
// BEGIN CUT HERE
// END CUT HERE
#line 5 "MysticAndCandies.cpp"
#include <cstdlib>
#include <cctype>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <vector>
#include <string>
#include <iostream>
#include <sstream>
#include <map>
#include <set>
#include <queue>
#include <stack>
#in... |
/*
* Copyright (c) 2017 <NAME>
*
* This file is part of zig, which is MIT licensed.
* See http://opensource.org/licenses/MIT
*/
#include "bigfloat.hpp"
#include "bigint.hpp"
#include "buffer.hpp"
#include "softfloat.hpp"
#include <stdio.h>
#include <math.h>
#include <errno.h>
void bigfloat_init_128(BigFloat *de... |
/*ckwg +29
* Copyright 2014-2017 by Kitware, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this li... |
/*
* Copyright (c) 2019-2022, Intel Corporation
*
* 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... |
/* -----------------------------------------------------------------------------
* This file is part of SWIG, which is licensed as a whole under version 3
* (or any later version) of the GNU General Public License. Some additional
* terms also apply to certain portions of SWIG. The full details of the SWIG
* licen... |
#include "ObjCamera.h"
#include <thread>
#include <time.h>
#define MULTI_THREADING 0
/*
====================
Camera::Camera
Takes in the input stream and creates a camera object from the parsed input
====================
*/
Camera::Camera(ifstream &f)
{
this->grayscale = false;
this->isLight = false;
this->isVisi... |
/*****************************************************************************
Copyright (c) 2013, 2021, Oracle and/or its affiliates.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License, version 2.0, as published by the
Free Software Foundation.
... |
#include <iostream>
#include "FiniteElementMesh.h"
#include <Eigen/Dense>
#include <map>
template<class T>
struct LatticeMesh : public FiniteElementMesh<T>
{
using Base = FiniteElementMesh<T>;
// from AnimatedTetrahedonMesh
using Base::m_meshElements;
using Base::m_meshBoundaryElements;
using Ba... |
#include <FastLED.h>
#include <string.h>
#include <sys/param.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "esp_wifi.h"
#include "esp_event.h"
#include "esp_log.h"
#include "nvs_flash.h"
#include "esp_netif.h"
extern "C" {
#include "wifi_util.h"
}
#include "lwip/err.h"... |
/****************************************************************************
* Copyright (c) 2016 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source... |
// -*- C++ -*-
//
// Package: METAlgorithms
// Class: METSignificance
//
/**\class METSignificance METSignificance.cc RecoMET/METAlgorithms/src/METSignificance.cc
Description: [one line class summary]
Implementation:
[Notes on implementation]
*/
//
// Original Author: <NAME> (Cornell University)
// C... |
#include "downloadthread.h"
#include <curl/curl.h>
#include "core/curl.h"
#include "core/misc.h"
#include <QMessageBox>
#include <QDebug>
DownloadThread::DownloadThread(QString file):
mFileName(file),
pFile(nullptr)
{
mQualityIndex = 1;
mQualitySem = new QSemaphore(0);
}
DownloadThread::~DownloadThrea... |
#include "Etterna/Globals/global.h"
#include "InputHandler_Linux_Joystick.h"
#include "Core/Services/Locator.hpp"
#include "RageUtil/Utils/RageUtil.h"
#include "LinuxInputManager.h"
#include "RageUtil/Misc/RageInputDevice.h" // NUM_JOYSTICKS
#if defined(HAVE_UNISTD_H)
#include <unistd.h>
#endif
#if defined(HAVE_FCNTL_... |
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cmath>
#include <mutex>
#include <thread>
#include <chrono>
#include <ros/ros.h>
#include <ros/spinner.h>
#include <sensor_msgs/CameraInfo.h>
#include <sensor_msgs/Image.h>
#include <cv_bridge/c... |
#include <bits/stdc++.h>
using namespace std;
static_assert(sizeof(int) == 4 && sizeof(long) == 8);
struct ett_node_sum {
int opens = 0;
long self = 0;
long subt = 0;
long lazy = 0;
int subtree_size() const { return opens; }
long subtree() const { return subt; }
void pushdown(bool is_open... |
/*************************************************************************/
/* os_server.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include "pch.h"
#include "MeshGeometry.h"
#include "..\360VideoPlaybackMain.h"
#include "DeviceResources.h"
#include "DirectXHelper.h"
#include "..\Content\ShaderStructures.h"
using namespace _360VideoPlayback;
using namespace DirectX;
using namespace DX;
using namespace Microsoft::WRL;
using namespace std... |
// Copyright (C) 2013-2019 Altera Corporation, San Jose, California, USA. All rights reserved.
// 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 limita... |
#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"
#define EPS 0.00001
using std::string;
using std::vector;
using namespace std;
void ParticleFilter::init(dou... |
#include "ServiceProvider.h"
#include "sample_libcrypto.h"
#include "ecp.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <time.h>
#include <string.h>
#include "ias_ra.h"
#include "UtilityFunctions.h"
using namespace std;
#if !defined(SWAP_ENDIAN_DW)
#define SWAP_ENDIAN_DW(dw) ((((dw) & 0x000000... |
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#inc... |
/* --COPYRIGHT--,BSD
* Copyright (c) 2015, Texas Instruments Incorporated
* 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 copy... |
// This file is part of snark, a generic and flexible library for robotics research
// Copyright (c) 2011 The University of Sydney
// 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. Redistr... |
/*
* Copyright (c) 2015 - Adjacent Link LLC, Bridgewater, New Jersey
* 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
... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, <NAME>, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.