text stringlengths 5.71k 33.7k |
|---|
#include "VectTest.h"
using reseq::VectTest;
#include <stdint.h>
#include <string>
using std::string;
#include <vector>
using std::vector;
#include "gtest/gtest.h"
void VectTest::Register(){
// Guarantees that library is included
}
namespace reseq{
TEST(VectTest, BasicFunctionality){
Vect<uint32_t> test;
EXPE... |
#include "Sequentia.h"
#include "SeqRenderer.h"
#include "SeqProjectHeaders.h"
#include "SeqExporter.h"
#include "SeqPlayer.h"
#include "SeqActionFactory.h"
#include "SeqWorkerManager.h"
#include "SeqUISequencer.h"
#include "SeqString.h"
#include "SeqPath.h"
#include "imgui.h"
#include <SDL.h>
#include <SDL_syswm.h>
#i... |
/*
Cafu Engine, http://www.cafu.de/
Copyright (c) <NAME> and other contributors.
This project is licensed under the terms of the MIT license.
*/
#include "ClientMainWindow.hpp"
#include "Client/Client.hpp"
#include "Server/Server.hpp"
#include "GameInfo.hpp"
#include "Bitmap/Bitmap.hpp"
#include "ConsoleCommands/Cons... |
#include "newton_solver.h"
#include "store.h"
#include "acap_solve_energy_gradient.h"
#include "muscle_energy_gradient.h"
#include "stablenh_energy_gradient.h"
#include <igl/polar_dec.h>
#include <Eigen/LU>
#include <Eigen/Cholesky>
#include <igl/Timer.h>
using Store = famu::Store;
using namespace Eigen;
using namesp... |
/**
* @author <NAME>
* @author <NAME>
* @copyright 2018, <NAME>, all right reserved
* @copyright 2003-2017, <NAME>, all right reserved
* @license MPL-2 (see license file)
*/
#include <rabbit/rabbit.hpp>
#include <rabbit-std/sqstdstring.hpp>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <cty... |
// 11 2019, Authors:
// <NAME>
// <NAME>
// NOTE: Project Properties assume OpenCV is located in:
// C:\Program Files\OpenCV\
// README.md.txt
// LICENSE_FFMPEG.txt
// LICENSE.txt
// sources\
// build\
//
// To Change:
// Solution Explorer > (right-click)segmentation-context > Properties
// C/C... |
/* MIT License
Copyright (c) 2020 T-head-Semi
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, di... |
#include "NvInfer.h"
#include <vector>
#include <iostream>
#include <fstream>
#include <cublas_v2.h>
#include <cuda_runtime_api.h>
#include <memory>
#include <cstring>
#include <numeric>
#include <chrono> // test time
#include <opencv2/opencv.hpp>
#include "common/logger.h"
#include "ResizeBilinear.hpp"
#include "kern... |
/******************************************************************************
** Copyxright (C) 1996 OCA-CEA
*******************************************************************************
**
** UNIT
**
** Version: 4.1
**
** Author: <NAME>
**
** Date: 92/10/09
**
** File: IM3D_V... |
// font scaler
// (C) Copyright 1997-1998 <NAME>
#include "ttf.h"
#include <limits.h>
Rasterizer::Rasterizer( int _grid_fitting, int _anti_aliasing,
int _sizeTwilight, int _sizePoints, int _sizeContours,
int _sizeStack, int _sizeCvt, int _sizeStor,
int _sizeFDefs)
:
stackbase( 0),
ttFont( 0),
status( INVALID_FO... |
/* _______________________________________________________________________
DAKOTA: Design Analysis Kit for Optimization and Terascale Applications
Copyright 2014 Sandia Corporation.
This software is distributed under the GNU Lesser General Public License.
For more information, see the README file in t... |
#include <cstdio>
#include <cstdint>
#include "MasterParser.h"
#include "SharnushString.h"
#include "Parse.h"
#include "ProcessNode.h"
/*
UT EID: sks3648
Name: <NAME>
Class: Spring 2019 section EE 312
Professor: Dr. Gligoric
Special shoutout to Stack Overflow, GeeksforGeeks, the undergraduate TAS, and Umar Burne... |
#include <iostream>
#include <windows.h>
#include <string>
using namespace std;
string cbtext;
bool all1 = 1, bp1 = 0, dp1 = 0, ci1 = 0, all2 = 1, name2 = 0, price2 = 0, dauc2 = 0, class2 = 0, lvl2 = 0, grade2 = 0, dcount2 = 0, link2 = 0, open1 = 0;
bool c = 0, e = 0;
//output into text file
//search for certain rar... |
/*
* WMA compatible encoder
* Copyright (c) 2007 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg 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 2.1 of the License, or (at y... |
// __BEGIN_LICENSE__
// Copyright (c) 2006-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NASA Vision Workbench is licensed under the Apache License,
// Version 2.0 (the "License"); you may not use this f... |
/*
** Copyright (C) 1998-2010 <NAME> <<EMAIL>>
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program... |
#include <mex.h>
#include <igl/C_STR.h>
#include <igl/matlab/mexErrMsgTxt.h>
#undef assert
#define assert( isOK ) ( (isOK) ? (void)0 : (void) mexErrMsgTxt(C_STR(__FILE__<<":"<<__LINE__<<": failed assertion `"<<#isOK<<"'"<<std::endl) ) )
#include <igl/matlab/MexStream.h>
#include <igl/matlab/parse_rhs.h>
#include <igl/... |
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
kinect.initSensor();
//kinect.initIRStream(640, 480);
kinect.initColorStream(640, 480, true);
kinect.initDepthStream(640, 480, true);
kinect.initSkeletonStream(false); // If true, track just upper part
sen... |
#include "Dispatcher.h"
#include "probability_v11.h"
#include <tuple>
using namespace std;
//------------------------------------------------
// constructor
Dispatcher::Dispatcher(Parameters ¶meters, Rcpp::Function &update_progress, Rcpp::List &args_progress) {
// pointers to inputs
param_pt... |
#include "alfe/string.h"
#include "alfe/file.h"
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include "alfe/main.h"
class SimulatedProgram
{
public:
SimulatedProgram(String fileName)
{
File file(fileName);
String contents = file.contents();
_source = CharacterSource(contents... |
#include "../include/problem.hpp"
#include <fstream>
#include <regex>
#include "../include/util.hpp"
Problem::Problem(std::string _instance, Graph* _G, std::mt19937* _MT,
Config _config_s, Config _config_g, int _num_agents,
int _max_timestep, int _max_comp_time)
: instance(_inst... |
// ROS includes.
#include <ros/ros.h>
#include <cmath>
#include <ros/time.h>
#include <sensor_msgs/CameraInfo.h>
#include <nav_msgs/OccupancyGrid.h>
#include <message_filters/subscriber.h>
#include <message_filters/synchronizer.h>
#include <message_filters/sync_policies/approximate_time.h>
#include <tf/tf.h>
#inclu... |
/*************************************************************************************/
/* */
/* Visualization Library */
/* http://visualizationlibrary.org ... |
/* libs/graphics/images/SkImageDecoder_libico.cpp
**
** Copyright 2006, Google 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... |
#include "interpolate_bilinearly.h"
#include "matrix.h"
#include "round_point.h"
#include <boost/multi_array.hpp>
#include <iostream>
#include <vector>
Point interpolate_point_bilinearly(Point p1,
const boost::multi_array<double, 2> *xdisp,
const bo... |
// Copyright (C) 2019-2020 Zilliz. 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 l... |
#include "BlockGame.hpp"
BlockGame::BlockGame() {
// Define Game constants
const string title = "Blocks";
const int winWidth = 600;
const int winHeight = 700;
const int FPS = 60;
const int bits = 32;
// Initialize the Game
game = new Game(title, winWidth, winHeight, bits, FPS);
// Obta... |
// Copyright 2018 Google LLC
// Copyright 2018-present Open Networking Foundation
// SPDX-License-Identifier: Apache-2.0
#include "basic/status/status.h"
#include "basic/files/scoped_temp_file.h"
#include <base/strings/strcat.h>
#include <base/strings/string_number_conversions.h>
#include <stdio.h>
#include <algori... |
# include <FL/x.H>
# include <FL/Fl.H>
# include <FL/Fl_Double_Window.H>
# include <FL/Fl_Browser.H>
# include <FL/Fl_Value_Output.H>
# include <FL/fl_ask.H>
#include <iostream>
#include <FL/Fl_Box.H>
#include <FL/fl_draw.H>
#include <mgl2/fltk.h>
#include <zconf.h>
// Should probably ifdef WIN32 this, and pull... |
/* .NAME vtkGocadSGrid.cxx
* Latest revision: March 4, 2009
* By: <NAME>
* ** I appologise in advance for the older style and "poor" naming convention
* ** when dealing with binary file reading.
* Read Gocad SGrid file (.sg) for single objects.
* Handles SGrids with binary properties as well as ASCII properties
*
* D... |
/*
* Copyright (c) 2019, NVIDIA 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:
* * Redistributions of source code must retain the above copyright
* notice, this list of co... |
// 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 "ash/wm/frame_painter.h"
#include "ash/shell.h"
#include "ash/shell_window_ids.h"
#include "ash/wm/window_util.h"
#include "base/logging.h" ... |
//
// Copyright (c) 2002-2014 The ANGLE Project 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 "compiler/translator/Intermediate.h"
#include "compiler/translator/SymbolTable.h"
namespace
{
//
// Two purposes:
// 1. Sh... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, <NAME>, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ... |
#include <opencv2/opencv.hpp>
#include <iostream>
#include <math.h>
#include <time.h>
using namespace std;
using namespace cv;
Mat make_greyscale(Mat& img) {
Mat result(img.size(), CV_8UC1);
for (int i = 0; i < img.rows; ++i)
for (int j = 0; j < img.cols; ++j)
{
Vec3b intensity = img.at<Vec3b>(i... |
#pragma once
#include <cassert>
#include <functional>
#include <limits>
/**
* RB rotation notes
*
* Insert:
* https://www.youtube.com/watch?v=O3hI9FdxFOM
* pseudo-code is nice
*
* Erase:
* https://cs.kangwon.ac.kr/~leeck/file_processing/red_black_tree.pdf
* code is awful but it works and explanation ... |
#include <emp-tool/emp-tool.h>
#include <boost/program_options.hpp>
#include <boost/format.hpp>
#include "sygc/program_interface_sh.h"
#include "sygc/cnn_layers.h"
using namespace std;
namespace po = boost::program_options;
void LeNet(NetIO* io, int party) {
cout << "Privacy-Preserving inference with the CNN LeNet"... |
/******************************************************************************
* *
* Copyright (C) 2018 Fondazione Istituto Italiano di Tecnologia (IIT) *
* All Rights Reserved. *
... |
/****************************************************************************
* Copyright (c) 2019, CEA
* 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 retai... |
/*
* Copyright (C) 2017 by Author: Aroudj, Samir, born in Suhl, Thueringen, Germany
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD 3-Clause license. See the License.txt file for details.
*/
#include "Color.h"
#include "Platform/File.h"
#include "MagicGraphics... |
// AMD AMDUtils code
//
// Copyright(c) 2017 Advanced Micro Devices, Inc.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 limitati... |
/*
* Copyright 2020-2021 <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 wri... |
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <DNSServer.h>
#include <WiFiClient.h>
#include <EEPROM.h>
#include <ESP8266WebServer.h>
#include <WebSocketsServer.h>
#include <ArduinoJson.h>
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <Adafruit_NeoPixel.h>
... |
/*
* Copyright 2004,2013 Free Software Foundation, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Th... |
/*
* Copyright 2016-2017 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <string.h>
#include <boot/partitions.h>
#include <boot/platform.h>
#include <boot/stage2.h>
#include <boot/stdio.h>
#include <util/list.h>
#include "Header.h"
#include "efi_platform.h"
#includ... |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/fxfa/parser/cxfa_dataexporter.h"
#include <vector>
#include "c... |
#include <algorithm>
#include <array>
#include <fstream>
#include <iterator>
#include <string>
#include <unordered_map>
#include <vector>
#ifdef _WIN32
#include <ShlObj.h>
#include <Windows.h>
#endif
#include "imgui/imgui.h"
#include "imgui/imgui_stdlib.h"
#include "imguiCustom.h"
#include "GUI.h"
#include "Config... |
/*-
* BSD 2-Clause License
*
* Copyright (c) 2012-2018, <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,... |
/***************************************************************************
copyright : (C) 2002 - 2008 by <NAME>
email : <EMAIL>
***************************************************************************/
/***************************************************************************... |
#include <iostream>
#include <vector>
#include <stack>
#include <random>
#include <thread>
#include <algorithm>
#include <chrono>
#include "game.h"
#include "card.h"
using namespace DNRY;
using Hand = std::vector<Cards::Card>;
using Deck = std::stack<Cards::Card>;
void check_win(const Hand&, const Hand&);
bool deal... |
#include "MinIMU9_v5.h"
void MinIMU9_v5::init() {
if (_initialized)
return;
_initialized = true;
Serial.println("MinIMU9_v5 init()");
I2C_Init();
Accel_Init();
Compass_Init();
Gyro_Init();
delay(20);
Serial.println("Pololu MinIMU-9 + Arduino AHRS");
//Very dirty calibration!!
for (int i = ... |
#include "CreateEchoZoneDialog.h"
CreateEchoZoneDialog::CreateEchoZoneDialog(const wxString& title,EffectsManager* effects_manager) : wxDialog(NULL, -1, title, wxDefaultPosition, wxSize(400, 600))
{
okClicked = false;
m_effects_manager_ptr = effects_manager;
spt_selection_index = -1;
//initialize text fields... |
#include <jni.h>
#include <sstream>
#include <android/log.h>
#include "org_limax_android_chatclient_ndk_LimaxInterface.h"
#include "../../../../cpp/limax/include/limax.h"
#include "rapidjson/rapidjson.h"
#include "rapidjson/writer.h"
/////////////////////////////////////////////////////////////////////////////... |
/**
*
*
*
**/
#include <exception>
#include <fstream>
#include <optional>
#include <SpiceUsr.h>
#include <SpiceZfc.h>
#include <SpiceZmc.h>
#include <ghc/fs_std.hpp>
#include <nlohmann/json.hpp>
#include "utils.h"
#include "spice_types.h"
using json = nlohmann::json;
using namespace std;
string calForm = "YY... |
#include "neuron_match_gmhash.h"
neuron_match_gmhash::neuron_match_gmhash(NeuronTree* botNeuron, NeuronTree* topNeuron)
{
nt0=botNeuron;
nt1=topNeuron;
constructNeuronGraph(*nt0, ng0);
constructNeuronGraph(*nt1, ng1);
spanCand = 20;
zscale = 2;
midplane = 0;
pmatchThr = 100;
hashb... |
#include <iostream>
#include <pybind11/pybind11.h>
#include <pybind11/embed.h>
#include <pybind11/stl.h>
#include <vector>
#include <list>
#include <array>
#include <map>
#include <set>
#include <typeinfo>
extern "C"
{
#define VERSION_RELEASE 1
#define DR_WAV_IMPLEMENTATION
#include "opts.h"
#include "dr_wav.h"
#incl... |
/*
* Author : <NAME>
* Date : 2012-07-30
*
* Modify : 2012-08-21 Fix bugs, but no bugs! So fix nothing.
* Modify : 2012-08-15 Improve
*
* Using a direct connecting method to build the inital haplotype.
* Just need one input file and will create two output file.
* Input file format: (We just use column 1~4)... |
#include "PlayMode.hpp"
#include "LitColorTextureProgram.hpp"
#include "DrawLines.hpp"
#include "Mesh.hpp"
#include "Load.hpp"
#include "gl_errors.hpp"
#include "data_path.hpp"
#include <glm/gtc/type_ptr.hpp>
#include <random>
GLuint game_scene_meshes_for_lit_color_texture_program = 0;
Load< MeshBuffer > game_scen... |
/*
OpenLieroX
input (keyboard, mouse, ...) events and related stuff
code under LGPL
created 01-05-2007
by <NAME> and <NAME>
*/
#include <set>
#include "Clipboard.h"
#include "LieroX.h"
#include "EventQueue.h"
#include "InputEvents.h"
#include "AuxLib.h"
#include "DeprecatedGUI/Menu.h"
#include "Timer.h"
#inc... |
// This file is distributed under the BSD 3-Clause License. See LICENSE for details.
#include "lgsat_multibit.hpp"
#include "ezminisat.hpp"
#include "inou.hpp"
#include "inou_sat.hpp"
#include "lgedgeiter.hpp"
#include "lgraph.hpp"
#include <iostream>
#include <random>
#include <stdio.h>
#include <stdlib.h>
#include <... |
/**********
Copyright (c) 2020, 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 list of conditions and the fol... |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed ... |
/*!
@file face.cpp
@author <NAME>
@brief Face detection and landmark estimation.
\copyright Copyright 2014-2016 Elucideye, Inc. All rights reserved.
\license{This project is released under the 3 Clause BSD License.}
*/
// Local includes:
#include "drishti/core/drishti_stdlib_string.h" // android workaro... |
/*
* \file motionblur.cpp
* \brief motionblur.cpp
* \author <NAME>
* \date 10/10/10.
* motionblur
* Copyright 2010 <NAME>. All rights reserved.
*/
#include "../shared/glforward.h"
#ifdef __APPLE__
#include <glut/glut.h>
#else
#define FREEGLUT_STATIC
#include <GL/glut.h>
#endif
#include <algorithm>
#inclu... |
/*
* Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
#include <iostream>
#include <algorithm>
#include <iterator>
#include <cmath>
#include <fstream>
#include <valarray>
#include <sstream>
#include <filesystem>
#include <string>
using namespace std::string_literals;
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/io.hpp>
#include <boost/math/con... |
/*
* SIAGen: Random Program Generator
* Currently supports [scalar | vector] - [alu | memory] ops
* Only for a limitted set of opcodes
*
* To increase support for operations looks at the following fns:
* initialize[scalar|vector][alu|mem]ops
*
* To increse the formats of operations supported (in above mention... |
#include "Luddite/Core/AssetTypes/Model.hpp"
#include "Luddite/Graphics/Renderer.hpp"
#include "Luddite/Core/Profiler.hpp"
#include "Luddite/Core/Assets.hpp"
#ifdef LD_DEBUG
#define OBJL_CONSOLE_OUTPUT
#endif // LD_DEBUG
#include <assimp/Importer.hpp>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
//... |
/**
* @author: <NAME>
* @contact: <EMAIL>
*
* distributed under the MIT License (MIT).
* Copyright (c) <NAME>
*
*/
// To parse this JSON data, first install
//
// Boost http://www.boost.org
// json.hpp https://github.com/nlohmann/json
//
// Then include this file, and then do
//
// DataLinux... |
//OpenSslConfigWriter.cpp by Emercoin developers
#include "pch.h"
#include "OpenSslConfigWriter.h"
#include "ShellImitation.h"
#include "Settings.h"
OpenSslConfigWriter::OpenSslConfigWriter(CertLogger*logger): _logger(logger) {
}
bool OpenSslConfigWriter::writeIfAbsent(const QString & subPath, const char* strContents... |
#include "tools.hpp"
#include "compressor.hpp"
#include "decompressor.hpp"
#include "font-encoder.hpp"
FontEncoder largeFont;
FontEncoder smallFont;
FontEncoder fixedFont;
auto rebuildMenuFont() -> void {
vector<u8> output = decompressLZ77({rom.data() + 0x2e0020, rom.size() - 0x2e0020});
vector<u8> palette = {0,... |
#include <SDL2/SDL.h>
#include <iostream>
#include <utility>
#include <cstddef>
#include <cmath>
#include <functional>
#include <vector>
#include <string>
#include <fstream>
#include <sstream>
#include <stdexcept>
#include <limits>
namespace
{
constexpr int WINDOW_WIDTH = 640;
constexpr int WINDOW_HEIGHT = 4... |
// MMD5.cpp
#include "stdafx.h"
#include <string.h>
#include "MMD5.h"
#ifndef GET_UINT32_LE
#define GET_UINT32_LE(n, b, i) \
{ \
(n) = ( (unsigned long) (b)[(i)] ) \
| ( (unsigned long) (b)[(i) + 1] << 8 ) \
| ( (unsigned long) (b)[(i) + 2] << 16 ) \
| ( (unsigned long) (b)[(i) + 3] << 2... |
#include <stdlib.h>
#include <osg/Geode>
#include <osgUtil/TriStripVisitor>
#include "VBSPGeometry.h"
using namespace osg;
using namespace bsp;
VBSPGeometry::VBSPGeometry(VBSPData * bspData)
{
// Keep track of the bsp data, as it has all of the data lists that we
// need
bsp_data = bspData;
// Cr... |
#include "base.h"
#include "Peer.h"
#include "Source.h"
#include "IPAddressResolver.h"
#include "packets_m.h"
#include "Buffermap.h"
#include <algorithm>
#include <ctime>
Define_Module(Peer);
//#define CHECKS // TODO: uncomment to check code
void Peer::initialize() {
selfId = NULL_NODE_ID;
bindToPort(clien... |
/**
* Copyright (C) 2021 Xilinx, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
/*
* Copyright 2021 The Modelbox Project 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 requi... |
// Copyright (C) 2021 <NAME> and <NAME>
//
// This file is part of DOLFINx_CONTACT
//
// SPDX-License-Identifier: MIT
#include "coefficients.h"
#include "geometric_quantities.h"
#include <basix/quadrature.h>
#include <dolfinx_cuas/QuadratureRule.hpp>
#include <xtensor/xslice.hpp>
#include <xtl/xspan.hpp>
using nam... |
/**
******************************************************************************
Copyright 2019, by the California Institute of Technology. ALL RIGHTS RESERVED.
United States Government Sponsorship acknowledged. Any commercial use must be
negotiated with the Office of Technology Transfer at the
California... |
// Copyright(C) 2018-2019 by <NAME>
//
// This file is part of TwoCan, a plugin for OpenCPN.
//
// TwoCan 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 optio... |
// -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
// Small example how to use the library.
// For more examples, look at demo-main.cc
//
// This code is public domain
// (but note, that the led-matrix library this depends on is GPL v2)
#include <unistd.h>
#include <math.h>
#include <stdio.h>
#i... |
/*
* standard_performance.cpp
*
* Created on: 6 Feb 2017
* Author: gnx91527
*/
#include "BufferBuilder.h"
#include "DataBlock.h"
#include "FileWriter.h"
#include "WorkQueue.h"
#include <iostream>
#include <math.h>
#include <sstream>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <cstrin... |
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//
// License: MIT, see included COPYING file
//
//
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////... |
#include "flareTimeDependent.h"
#include "globalVariables.h"
#include <fparameters/parameters.h>
#include "adafFunctions.h"
#include <fparameters/SpaceIterator.h>
#include <fparameters/Dimension.h>
#include <fluminosities/luminositySynchrotron.h>
#include <fluminosities/luminosityIC.h>
#include <fluminosities/thermalSy... |
#include "GNSSambres.hpp"
#include <math.h>
#define LOG_PI 1.14472988584940017
#define SQRT2 1.41421356237309510
#define AMB_RANG 10
bool AR_VERBO = false;
/** Probability of error (assuming normal distribution) */
double round_perr (
double dx, ///< Distance between value and mean
double var... |
//
// "$Id: context.cc,v 1.1 2003/02/06 09:37:53 jpr Exp $"
//
// GLPcontext class functions for the GLP library, an OpenGL printing
// toolkit.
//
// The GLP library is distributed under the terms of the GNU Library
// General Public License which is described in the file "COPYING.LIB".
// If you use this li... |
/******************************************************************************
* Copyright © 2014-2018 The SuperNET Developers. *
* *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
... |
// Concord
//
// Copyright (c) 2018-2021 VMware, Inc. All Rights Reserved.
//
// This product is licensed to you under the Apache 2.0 license (the "License").
// You may not use this product except in compliance with the Apache 2.0
// License.
//
// This product may include a number of subcomponents with separate copyr... |
/******* \class DTEffAnalyzer *******
*
* Description:
*
* detailed description
*
* \author : <NAME> - INFN LNL <<EMAIL>>
*
* Modification:
*
*********************************/
/* This Class Header */
#include "RecoLocalMuon/DTSegment/test/DTEffAnalyzer.h"
/* Collaborating Class Header */
#include "FWCor... |
/*
Robotic Arm Mouse Control with Inverse Kinematics
Licenced under the MIT License:
Copyright (c) 2015 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including with... |
#include "lm_cut_heuristic.h"
#include "globals.h"
#include "operator.h"
#include "option_parser.h"
#include "plugin.h"
#include "state.h"
#include <cassert>
#include <cstdlib>
#include <iostream>
#include <limits>
#include <vector>
using namespace std;
// construction and destruction
LandmarkCutHeuristic::Landmar... |
/*
* 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 "koopatlas/starcoin.h"
#include <game.h>
dWMStarCoin_c *dWMStarCoin_c::instance = 0;
dWMStarCoin_c *dWMStarCoin_c::build() {
void *buffer = AllocFromGameHeap1(sizeof(dWMStarCoin_c));
dWMStarCoin_c *c = new(buffer) dWMStarCoin_c;
instance = c;
return c;
}
dWMStarCoin_c::dWMStarCoin_c() : state(this) {
... |
/******************************************************************************
** Filename: mftraining.c
** Purpose: Separates training pages into files for each character.
** Strips from files only the features and there parameters of
the feature type mf.
** Author: <NAME>
** Revisment: <NAME>
** Environment:... |
// =====================================================================================
//
// Filename: face_detector.cpp
//
// Version: 1.0
// Created: 08/05/2020 11:04:24
// Revision: none
// Compiler: g++
//
// Author: <NAME> (Robotics), <EMAIL>
// Company: I... |
#include "Joint.h"
#include "Bone.h"
Joint::Joint(btDiscreteDynamicsWorld* worldN, glm::vec3 posIn, glm::vec3 inAxis,float radiusN)
{
localAxisofRotation = inAxis;
isStatic = false;
world = worldN;
radius = radiusN;
position = glm::translate(position, glm::vec3(posIn.x, posIn.y, posIn.z));
GetVertices().push_... |
// -*- C++ -*-
// Package: SiPixelPhase1CompareTrackSoA
// Class: SiPixelPhase1CompareTrackSoA
//
/**\class SiPixelPhase1CompareTrackSoA SiPixelPhase1CompareTrackSoA.cc
*/
//
// Author: <NAME>
//
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/Math/interface/deltaR.h"
#include "DataForma... |
/**
* 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 <CCA/Components/Arches/Transport/PressureEqn.h>
#include <CCA/Components/Arches/GridTools.h>
#include <CCA/Ports/SolverInterface.h>
#include <Core/Grid/MaterialManager.h>
using namespace Uintah;
typedef ArchesFieldContainer AFC;
typedef ArchesTaskInfoManager ATIM;
//----------------------------------------... |
// Copyright 2007-2010 <NAME>
// Distributed under MIT license, or public domain if desired and
// recognized in your jurisdiction.
// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
#include <json/json.h>
#include "jsontest.h"
// TODO:
// - boolean value returns that they are... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.