text stringlengths 5.71k 33.7k |
|---|
/*=========================================================================
Program: Visualization Toolkit
Module: vtkCatmullRomSpline.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT... |
// Copyright 2012 Cloudera Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... |
#include "Lux.h"
#include <maya/MFnMesh.h>
#include <maya/MItMeshPolygon.h>
#include <maya/MMatrix.h>
#include <maya/MIntArray.h>
#include <maya/MFloatArray.h>
#include <maya/MPlugArray.h>
#include <maya/MFnDependencyNode.h>
#include <time.h>
#include "mayaScene.h"
#include "../mtlu_common/mtlu_mayaObject.h"
#include ... |
#include <iostream>
#include <sstream>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <omp.h>
#include <iomanip>
#include <sys/time.h>
#include <unistd.h>
#include "util/gfile.h"
#include "head.h"
#define ANALYSE 0
using namespace std;
void Head::compute(){
startTime=clock... |
#include <rmg/math/mat4.hpp>
#include <gtest/gtest.h>
#include <rmg/math/mat3.hpp>
#include <rmg/math/vec4.hpp>
using namespace rmg;
/**
* @brief Mat4 constructor test
*/
TEST(Mat4, constructor) {
Mat4 I = Mat4();
ASSERT_EQ(1, I[0][0]);
ASSERT_EQ(0, I[0][1]);
ASSERT_EQ(0, I[0][2]);
ASSERT_EQ(... |
#include "common.h"
#include "compile.h"
#include "config.h"
#include "console.h"
#include "map_file.h"
#include "path.h"
#include "q1compile.h"
#include "shell_command.h"
#include "sub_process.h"
extern AppState* g_app;
namespace compile {
/*
=================
Async jobs
=================
*/
static void ExecuteCom... |
/*
*
* This file is part of the open-source SeetaFace engine, which includes three modules:
* SeetaFace Detection, SeetaFace Alignment, and SeetaFace Identification.
*
* This file is part of the SeetaFace Identification module, containing codes implementing the
* face identification method described in the follow... |
// Many thanks to bsnes and snes9x.
#include "pch.h"
#include "SNESDSP.h"
#include "Root.h"
// *************
// SNES Envelope
// *************
// Emulate GAIN envelope while (increase: env < env_to, or decrease: env > env_to)
// return elapsed time in sample count, and final env value if requested.
uint32_t EmulateS... |
/*
==============================================================================
This file is part of the iPlug 2 library. Copyright (C) the iPlug 2 developers.
See LICENSE.txt for more info.
==============================================================================
*/
#include "IGraphicsCanvas.h"
#includ... |
/*****************************************************************************
*
* Copyright (c) 2003-2018 by The University of Queensland
* http://www.uq.edu.au
*
* Primary Business: Queensland, Australia
* Licensed under the Apache License, version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Development unt... |
/*
This file is a part of NNTL project (https://github.com/Arech/nntl)
Copyright (c) 2015-2021, Arech (<EMAIL>; https://github.com/Arech)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redi... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <math.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include "Draw2D.h"
#include "Draw3D.h"
#include "SDL_utils.h"
#include "fastmath.h"
#include "Vec3.h"
#include "Mat3.h"
#include "quaternion.h"
#include "raytrace.h"
#in... |
#include <PnC/MPC/MPCDesiredTrajectoryManager.hpp>
StateTrajectoryWithinHorizon::StateTrajectoryWithinHorizon(const int dimension_in){
dimension = dimension_in;
for(int i = 0; i < dimension; i++){
x_cubic.push_back(CubicFit_OneDimension());
x_linear.push_back(LinearFit_OneDimension());
... |
//Recon is a GIS system for storing scene and obstacle data for drones and is a multi-vehicle ground control station
//Author: <NAME>
//Copyright (c) 2020 Sentek Systems, LLC. All rights reserved.
//System Includes
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <memory>
... |
// __BEGIN_LICENSE__
// Copyright (c) 2009-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NGT platform is licensed under the Apache License, Version 2.0 (the
// "License"); you may not use this file excep... |
#include "common/leak_detection.h"
#include "TimexUtils.h"
#include <string>
#include <vector>
#include <locale>
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string.hpp>
#include "boost/date_time/gregorian/gregorian.hpp"
#include "Generic/common/SessionLogger.h"
#include "Generic/common/Unicod... |
// This is brcv/dbdet/edge/dbdet_nms.cxx
//:
// \file
#include "dbdet_nms.h"
#include <vcl_cstdio.h>
#include <vcl_cstdlib.h> // for vcl_abs(int) and vcl_sqrt()
#include <vnl/vnl_math.h>
#include <vnl/vnl_matrix.h>
#include <vnl/algo/vnl_matrix_inverse.h>
#include <vnl/algo/vnl_svd.h>
#include <vgl/vgl_homg_point_2... |
/**
* @file
* @brief Implementation of module Correlations
*
* @copyright Copyright (c) 2017-2022 CERN and the Corryvreckan authors.
* This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md".
* In applying this license, CERN does not waive the privileges and immun... |
/* Copyright (c) 2016, 2017, 2018 <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DIS... |
/* Blink Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
//#include <stdio.h>
#includ... |
#include "jp2_decoder.hpp"
#include "logger.hpp"
#include <openjpeg.h>
#include <iostream>
#include <fstream>
#include <cstring>
#include <boost/filesystem.hpp>
using namespace std;
static void error_callback(const char *msg, void *user) {
string *fname = (string *)user ;
LOG_ERROR_STREAM(msg << ":" << *fna... |
//----------------------------------------------------
// file: Event.cpp
//----------------------------------------------------
#include "stdafx.h"
#pragma hdrstop
#include "Event.h"
#include "cl_intersect.h"
#include "texture.h"
#include "bottombar.h"
#include "topbar.h"
#include "scene.h"
#include "UI... |
//= GRState.cpp - Path-Sensitive "State" for tracking values -----*- C++ -*--=//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/**
* @file poly_opt.cpp
* @author <NAME> (<EMAIL>)
* @brief
* @version 1.0
* @date 2021-12-05
*
* @copyright Copyright (c) 2021
*
*/
#include "traj_opt/poly_opt.h"
using namespace traj_utils;
/********** Polynomial Trajectory **********/
/**
* @brief Polynomial trajectory constructor
*/
PolyTraj::PolyTra... |
//
// util.cpp
// cgassn1
//
// Created by <NAME> on 2018. 10. 1..
// Copyright © 2018??<NAME>. All rights reserved.
//
#include "util.h"
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <cmath>
#ifdef __APPLE__
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <OpenGL/glext.h>
#include <... |
#include "debug.h"
#include "memory.h"
#include "smt.h"
#include "utils.h"
#include "value.h"
#include <string>
using namespace smt;
using namespace std;
static unsigned int ulog2(unsigned int numBlocks) {
if (numBlocks == 0)
return 0;
return (unsigned int) ceil(log2(std::max(numBlocks, (unsigned int) 2)));
}... |
/*
* @fileoverview Copyright (c) 2017-20, <NAME>,
* via Ferrata, 1, I-27100, Pavia, Italy
*
* @author <EMAIL> (<NAME>)
*
*/
// FROM STDLIB
#include <cassert>
#include <cmath>
#include <string>
#include <vector>
#include <fstream>
#include <sstream>
#include <iostream>
#include <algorithm>
#include <nu... |
// Daniel2.Encoder.FileReadMT.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "CEncoderTest.h"
#include <Cinecoder_i.c>
#include <Cinecoder.Plugin.Multiplexers_i.c>
#include "../common/cinecoder_license_string.h"
#include "../common/cinecoder_error_handler.h"
#include <std... |
#include "Separation.h"
#include "autodiff.h"
#include <chrono>
#include <thread>
#include <iostream>
#include <igl/cat.h>
using namespace std;
Separation::Separation()
{
}
void Separation::init(int n)
{
// wedges energy
igl::cat(1, EVvar1, EVvar2, Esep);
Esept = Esep.transpose();
// Triplets C2CTriplets;
for ... |
#include <iostream>
#include <fstream> // file I/O
#include <vector>
#include <math.h>
#include "MersenneTwister.h"
#include <string>
using namespace std;
#include "lg_class.h"
// 3D lattice gas
// Enables J_i in all three directions to allow for anisotropy
// Constraint applied (see trial_move) so as to study stackin... |
/*
* Copyright (c) 2004, Laminar Research.
*
* 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, ... |
/**
* @file PartialBBDisjunction.cpp
* @author <NAME>
* @date 2018-02-22
*/
#include "PartialBBDisjunction.hpp"
// COIN-OR
#ifdef USE_CBC
#include <CbcModel.hpp>
// Cbc
#include <CbcSolver.hpp>
#include <CbcTree.hpp>
// Variable selection
#include <CbcBranchDefaultDecision.hpp>
#include <CbcBranchStrongDecision.... |
/**
* @file MapGenerator.cpp
*
* @see MapGenerator.hpp
*/
/*
/!\ CAUTION /!\
An important point has to be underline once and for all.
There is a "shift" between matrix coordinates (I, J) and plane coordinates
(x, y), which may lead to a misunderstanding and/or confusion when the
plane is divided thank... |
#include <bits/stdc++.h>
using namespace std;
using D = long double; // Coordinate value
using P = std::complex<D>; // Point
using L = std::pair<P, P>; // Line
using VP = std::vector<P>; // Points
const D EPS = 1e-8;
const D PI = std::cos(-1.0);
template <typename T, typename U>
inline bool EQ(const T& n, co... |
/* -------------------------------------------------------------------------- *
* OpenSim: CoupledBushingForce.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and simulation. *
... |
#include <algorithm>
#include <array>
#include <iomanip>
#include <mutex>
#include <numbers>
#include <numeric>
#include <sstream>
#include <vector>
#include <string>
#include <Encryption/xorstr.hpp>
#include <Encryption/cx_strenc.h>
#include "../Menu/imgui/imgui.h"
#define IMGUI_DEFINE_MATH_OPERATORS
#include "../Me... |
//Opencv include
#include "opencv2/video/tracking.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/ml/ml.hpp"
//cpp include
#include <dirent.h>
#include <vector>
#include <iostream>
#include <fstream>
//my program include
#include "../essentials/OpticalFlow.hpp"
#in... |
#include "attacks.h"
// Bit set- and clear-masks
Bitboard setMask[64];
Bitboard clearMask[64];
Bitboard rookTable[64][4096];
Bitboard bishopTable[64][1024];
// Move masks for all pieces
Bitboard pawnAtkMask[2][64];
Bitboard knightAtkMask[64];
Bitboard bishopMasks[64];
Bitboard rookMasks[64];
Bitboard k... |
//==============================================================================
/*
Software License Agreement (BSD License)
Copyright (c) 2003-2016, CHAI3D.
(www.chai3d.org)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted pro... |
#include <string.h>
#include <cstdio>
#include "pack.h"
#include "../text.h"
constexpr int32_t NBASE = 37*36*10*27*27*27L;
constexpr int32_t NGBASE = 180*180L;
// Returns integer encoding of a character (number/digit/space).
// Alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ +-./?"
// - Digits are encoded as 0..9
... |
#include "iyokan_tfhepp.hpp"
#include "packet.hpp"
namespace {
using Name2NetMap =
std::unordered_map<std::string, std::shared_ptr<TFHEppNetwork>>;
class TFHEppNetworkRunner {
private:
NetworkRunner<TFHEppWorkerInfo, TFHEppWorker> tfhepp_;
std::shared_ptr<ProgressGraphMaker> graph_;
public:
TFHEppNe... |
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* */
/* Aircraft Plume Chemistry, Emission and Microphysics Model */
/* (APCEMM) */
/* ... |
/*
* QEMU USB HUB emulation
*
* Copyright (c) 2005 <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, cop... |
//
// Contact.cpp
// Physical.Simulation.Tool
//
// Created by <NAME> on 25/08/12.
//
//
#include "Contact.h"
Contact::Contact()
{
}
Contact::~Contact()
{
}
void Contact::matchAwakeState()
{
// collisions with the world never cause a body to wake up.
if (!this->body[1]) {
return;
}
b... |
#include "Matrix4x4.h"
#include "Honey/Math/Quaternion.h"
using namespace Honey::Math;
Matrix4x4::Matrix4x4()
{
// Set all the elements to 0
for (UInt i = 0; i < 16; i++)
elements[i] = 0;
}
Matrix4x4::Matrix4x4(Float diagonal) : Matrix4x4()
{
// Set diagonal
elements[0 + 0 * 4] = diagonal;
elements[1 + 1 * 4... |
// input: L1TkTracks and RegionalMuonCand (standalone with component details)
// match the two and produce a collection of L1TkMuonParticle
// eventually, this should be made modular and allow to swap out different algorithms
// user include files
#include "FWCore/Utilities/interface/InputTag.h"
#include "FWCore/Fram... |
/**
* Number With Units implementaion
* Create a Number With Units
* CPP course, Ariel University
* Created by: <NAME>
* https://github.com/motidahari
*/
#include <map>
#include <string>
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <exception>
#include <fstream>
#include "NumberWith... |
#include <opencv2/opencv.hpp>
#include "BEEImageSegmentation.h"
#include "BEEImageData.h"
#include "BEEBlobData.h"
using namespace std;
BEEImageData::BEEImageData()
{
}
BEEImageData::BEEImageData(string str_fname, bool isRemoveBG)
{
m_rgb_image = imread(str_fname);
if(m_rgb_image.empty())
{
... |
#include "mesh.h"
#include "util/triIsect.h"
std::vector<float> transform_mesh(std::vector<float> data, glm::mat4 matrix)
{
std::vector<float> newData;
newData.resize(data.size());
for (int i = 0; i < newData.size(); i += 4) {
// multiply vector with the matrix to pre-calculate vertex data for rendering
glm::ve... |
/*
* This file is part of the gammatone filterbank reference implementation
* described in V. Hohmann's `acta acustica' article.
*
* It contains the matlab interface function for the Gfb_Analyzer_fprocess
* function. See file "README_extension.txt" for a description
* how to use the C function with matlab.
* Gf... |
#include "graphics/shader.h"
#include "opengl_helpers.h"
#include <limits>
#include <cstring> // memcpy
#include <glm/gtc/matrix_transform.hpp>
const static std::string defaultVertexShader = "vec4 position(mat4 transform_proj, mat4 model, vec4 vertpos) {\n"
" return tran... |
/* This software and supporting documentation are distributed by
* Institut Federatif de Recherche 49
* CEA/NeuroSpin, Batiment 145,
* 91191 Gif-sur-Yvette cedex
* France
*
* This software is governed by the CeCILL-B license under
* French law and abiding by the rules of distribution of free soft... |
#include "Settings.h"
Settings* Settings::settings = NULL;
Settings::Settings() {
}
Settings* Settings::getInstance()
{
if(settings==nullptr)
settings = new Settings();
return settings;
}
void Settings::loadDefault() {
for(int i=0; i<SETTINGS_SIZE; i++)
settings->general[i]->setDefaul... |
/**
* Copyright 2019 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "lice... |
#include <iostream>
#include <stdexcept>
#include <stdio.h>
#include <string>
#include "roundingsat.h"
#include <fstream>
#include <sstream>
#include <limits.h>
#include <algorithm>
#include "linpb/src/globals.hpp"
#include "linpb/src/run.hpp"
#include "linpb/src/parsing.hpp"
using namespace RdSat;
using std::string;
... |
//
// Created by <NAME> (EI) on 10/11/2017.
//
#include "Scaffolder.hpp"
#include <sglib/graph/SequenceGraphPath.hpp>
#include <sglib/graph/SequenceSubGraph.hpp>
void Scaffolder::pop_unsupported_shortbubbles(uint64_t max_length) {
std::cout<<"popping unsupported bubbles!"<<std::endl;
//find short nodes with p... |
/*
* Copyright (c) 2019, NVIDIA CORPORATION. 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 limitation
* the rights ... |
//========================================================================
//
// SplashXPath.cc
//
//========================================================================
//========================================================================
//
// Modified under the Poppler project - http://poppler.freedesktop.... |
#include <boost/python.hpp>
#include <trajopt_ros/trajopt/collision_checker.hpp>
#include <trajopt_ros/trajopt/problem_description.hpp>
#include <trajopt_ros/osgviewer/osgviewer.hpp>
#include <boost/foreach.hpp>
#include <trajopt_ros/utils/macros.h>
#include <trajopt_ros/sco/modeling_utils.hpp>
#include <trajopt_ros/tr... |
/*
Copyright (C) 2015-2016 The JDCTeam
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 following ... |
/*
* Copyright (c) 2018-2021, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "Profile.h"
#include "DisassemblyModel.h"
#include "ProfileModel.h"
#include "SamplesModel.h"
#include <AK/HashTable.h>
#include <AK/LexicalPath.h>
#include <AK/MappedFile.h>
#include <AK/NonnullOwnPtrVector.h>
#in... |
//========================================================================================
// Athena++ astrophysical MHD code
// Copyright(C) 2014 <NAME> <<EMAIL>> and other code contributors
// Licensed under the 3-clause BSD License, see LICENSE file for details
//=====================================================... |
// Copyright 2014 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.
// The basic usage of the Filter interface is described in the comment at
// the beginning of filter.h. If Filter::Factory is passed a vector of
// size ... |
#include "DD4hep/VolumeProcessor.h"
#include "DD4hep/detail/DetectorInterna.h"
#include "DD4hep/DetFactoryHelper.h"
#include "DD4hep/DetectorHelper.h"
#include "DD4hep/Printout.h"
#include "DetectorDescription/DDCMS/interface/DDAlgoArguments.h"
#include <sstream>
using namespace std;
using namespace cms;
using namesp... |
// Copyright 2016 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 "core/fpdftext/cpdf_textpagefind.h"
#include <cwchar>
#include <cwct... |
/** \class MuonDTDigis
* Analyse the the muon-drift-tubes digitizer.
*
* \authors: <NAME>
*/
#include "MuonDTDigis.h"
#include <iostream>
#include <string>
#include "TFile.h"
#include "SimMuon/DTDigitizer/interface/Histograms.h"
using namespace edm;
using namespace std;
MuonDTDigis::MuonDTDigis(const Parame... |
/*
* Copyright 2020-2022 Hewlett Packard Enterprise Development LP
* Copyright 2016-2019 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with... |
//! Code counter class methods for the Bash shell script language.
/*!
* \file CBashCounter.cpp
*
* This file contains the code counter class methods for the Bash shell script language.
* This also includes the Korn shell language.
*/
#include "CBashCounter.h"
/*!
* Constructs a CBashCounter object.
*/
CBashCounter::... |
#include <iostream>
#include <vector>
// #include <random>
#include "itkImageFileWriter.h"
#include "itkInitializeSignedDistanceTransform.h"
#include "itkCombineTwoPhaseImageFilter.h"
#include "itkSubtractImageFilter.h"
#include "itkSelectNarrowbandImageFilter.h"
#include "itkInitializeTwoPhaseNarrowBandImageFilter.h... |
/*ckwg +29
* Copyright 2012-2016 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... |
//===--- HTMLDiagnostics.cpp - HTML Diagnostics for Paths ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------... |
#include <algorithm>
#include <atomic> // C++11
#include <cassert>
#include <chrono> // C++11
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <mutex> // C++11
#include <thread> // C++11
// ../common/SDL2
#include <SDL.h>
#if defined(SDL_VIDEO_DRIVER_X11)
#include <SDL_syswm.h>... |
/*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2006 <NAME> http://continuousphysics.com/Bullet/
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.
Permissi... |
/*
MIT License
Copyright (c) 2022 Ravin.Wang(<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, pu... |
#include "multi_graph.hpp"
#include "subdataset_processing.hpp"
#include "gap_closing.hpp"
#include "error_correction/mult_correction.hpp"
#include "error_correction/mitochondria_rescue.hpp"
#include "error_correction/initial_correction.hpp"
#include "error_correction/manyk_correction.hpp"
#include "sequences/seqio.hpp... |
// 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
// Original code is licensed as follows:
/*
* Copyright 2007 ZXing authors
*
... |
/// \file price_setter.cpp
///
/// \brief
///
/// \authors <NAME>
/// \date 2018-07-19
/// \copyright Copyright 2017-2019 The Institute for New Economic Thinking,
/// Oxford Martin School, University of Oxford
///
/// Licensed under the Apache License, Version 2.0 (the "License");
//... |
/*
PROBLEM:
Consider quadratic Diophantine equations of the form:
$$
x^2 - Dy^2 = 1
$$
For example, when D=13, the minimal solution in x is 649^2 – 13×180^2 = 1.
It can be assumed that there are no solutions in positive integers when D is square.
By finding minimal solutions in x for ... |
// sceneconverter.cpp
// FBXConverter.
//
// Copyright 2012 - 2014 Future Interface.
// This software is licensed under the terms of the MIT license.
//
// <NAME> <EMAIL>
//
#include "sceneconverter.h"
#include "../fbxtool.h"
#include "scene.h"
#include <map>
#include <list>
SceneConverter::SceneConverter(FbxScene... |
#include "Game.h"
Game::Game() {
gameIndex = GAME_UNKNOWN;
isRequestingExit = false;
resetGameTime();
// time
hours = 0;
minutes = 0;
seconds = 0;
secondsChanged = false;
timeSyncLastFrameTime = lastFrameTime;
isSyncInternetTime = false;
// frame rate
frameRate = 0;
frameCount = 0l;
memse... |
/**
* 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 "... |
/*****************************************************************************************
* SGCT *
* Simple Graphics Cluster Toolkit *
* ... |
#include <gtest/gtest.h>
#include "logbuf.h"
#include "servmgr.h"
#include "sstream.h"
class ServMgrFixture : public ::testing::Test {
public:
ServMgr m;
};
TEST_F(ServMgrFixture, initialState)
{
// Servent *servents;
ASSERT_EQ(nullptr, m.servents);
// WLock lock;
// Ser... |
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... |
#include "traderboard.h"
#include "ui_traderboard.h"
#include "balanceManager.h"
#include "round.h"
#include <iostream>
#include <QDateTime>
#include <queue>
#include <QValueAxis>
#include <QDatetimeAxis>
#include <QTextStream>
#include <math.h>
using namespace std;
extern BalanceManager* balanceManager;
TraderBoar... |
#include <algorithm>
#include <cmath>
#include <vector>
#include "CharacterClassDefinition.h"
#include "CharacterClassLibrary.h"
#include "EntityType.h"
#include "Player.h"
#include "../Game/CardinalDirection.h"
#include "../Game/Game.h"
#include "../Game/GameData.h"
#include "../Game/Options.h"
#include "../Math/Cons... |
/*
* Copyright 2015 WebAssembly Community Group
*
* 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... |
//===-- Executor_Initialization.cpp ---------------------------------------===//
//
// The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------------... |
/*
* nonmaxsup_stub.c
Stub for manifold detection by non-maximum suppresion criteria, input data must be
one-dimensional arrays
*
*
* Created by <NAME> on 1/14/13.
* Copyright 2013 Universidad Almeria. All rights reserved.
*
*/
#include <mex.h>
#include <math.h>
#include <pthread.h>
#include <unistd... |
// -*- C++ -*- // // Package: MuonSegmentMatcher // Class: MuonSegmentMatcher // /**\class MuonSegmentMatcher MuonSegmentMatcher.cc
// Description: <one line class summary>
// Implementation:
// <Notes on implementation>
//*/
//
// Original Author: <NAME>
// Created: Wed Jul 9 21:40:17 CEST 2008
//
//
... |
#pragma once
#include "hash.hpp" // if necessary
/**
* Bigint number over base 2^32
* No Karatsuba multiplication yet unfortunately
*/
struct bigint {
static_assert(0xffffffff == UINT_MAX);
static_assert(sizeof(unsigned) == 4 && sizeof(ulong) == 8,
"Unexpected integer sizes");
vector... |
#include "player.h"
#include <cmath>
#include "gameobjects/level/level.h"
inline double dist_sq(double x1, double y1, double x2, double y2) {
return (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
}
//calculates the angle opposite c in a triangle with sides a, b, and c
inline double calculate_angle_SSS(double a... |
#include "Validation/RecoMuon/src/HTrack.h"
#include "Validation/RecoMuon/src/Histograms.h"
#include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h"
#include "TrackingTools/TrajectoryState/interface/FreeTrajectoryState.h"
#include "SimDataFormats/Track/interface/SimTrack.h"
//#include "DQMServices... |
#include "SortingMachineLib.h"
#include <Wire.h>
#include <Servo.h>
#include <Adafruit_TCS34725.h>
#include <CheapStepper.h>
//================= Defining pin numbers =================//
//------- Servo motor----------- //
#define SERVO_PIN 3
//---------- LED RGB------------ //
#define LED_R 9
#define LED_G... |
/*
* MsMac.cc
*
* Created on: Jul 1, 2013
* Author: <NAME>
*/
#include "MsMac.h"
#include "PointerExchange_m.h"
#include "PositionExchange_m.h"
#include "KoiData_m.h"
#include "ScheduleInfo_m.h"
#include "TransmitRequest_m.h"
#include "ResultFileExchange_m.h"
#include "Schedule_m.h"
#include "StaticSchedule... |
/*
Author: Dr. Ing. <NAME>
Email: <EMAIL>
Description:
*/
#include <bits/stdc++.h> // Standard C++
#include <costmap_2d/cost_values.h> // Constants: NO_INFORMATION/FREE_SPACE/LETHAL_OBSTACLE
#include <costmap_2d/costmap_2d.h> // 2D Costmap
#include <geometry_msgs/Point.h> ... |
#include "AliForwardQCumulantRun2.h"
#include "TMath.h"
#include <iostream>
#include "TRandom.h"
#include "AliForwardSettings.h"
#include "TH1D.h"
#include <complex>
#include <cmath>
using namespace std;
//_____________________________________________________________________
AliForwardQCumulantRun2::AliForwardQCumula... |
#include <map>
#include <array>
#include <iostream>
#include "eph_show.h"
#include "eph0.h"
#include "eph.h"
#include "../tool.h"
#include "eph_msc.h"
#include "eph_szj.h"
#include "eph_yspl.h"
#include "eph_rsgs.h"
#include "eph_rspl.h"
#include "../lat_lon_data.h"
void rysCalc()
{
double vJ=jw.J/radd;
double vW=jw... |
/* zairy.f -- translated by f2c (version 20100827).
This file no longer depends on f2c.
*/
#include "slatec-internal.hpp"
/* Table of constant values */
static integer const c__4 = 4;
static integer const c__15 = 15;
static integer const c__16 = 16;
static integer const c__5 = 5;
static integer const c__14 = 14;
... |
/*
This file is part of program wsprd, a detector/demodulator/decoder
for the Weak Signal Propagation Reporter (WSPR) mode.
File name: wspr_util.c
Copyright 2001-2015, <NAME>, K1JT
Most of the code is based on work by <NAME>, K9AN, which
in turn was based on earlier work by K1JT.
Copyright 2014-2015, <NAM... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.