text stringlengths 8.71k 38.4k |
|---|
#include <Arduino.h>
///////////////////////////////////////////////////////////////////////////////////////////////////
// Weather Device driver which will
// * collect sensor measurements from various sensors
// * send sensor measurements to a server via wifi
// * go to deep sleep for a defined amount of time to sav... |
#include "ImporterMaterial.h"
// -- Modules --
#include "Application.h"
#include "ModuleFileSystem.h"
#include "ModuleTextures.h"
#include "ModuleResourceManager.h"
#include "ModuleSceneManager.h"
#include "ModuleRenderer3D.h"
// -- Components --
#include "GameObject.h"
#include "ComponentMeshRenderer.h"
// -- Resou... |
#include "bio-classes.h"
double get_annotated_intensity(string peptide_mod, PSM* psm){
if (psm->mz == 0 || psm->intens == 0) return -1;
double tolerance = 0.02;
replaceAll(peptide_mod, "M[+16.0]", "m");
replaceAll(peptide_mod, "C[+57.0]", "c");
string rev_peptide = peptide_mod;
reve... |
/* -*- mode: C; c-basic-offset: 4 -*- */
/* ex: set shiftwidth=4 tabstop=4 expandtab: */
/*
* Copyright (c) 2018-2019, Colorado School of Mines
* All rights reserved.
*
* Author(s): <NAME> <<EMAIL>>
* Georgia Tech Humanoid Robotics Lab
* Under Direction of Prof. Mike Stilman <<EMAIL>>
*
*
* This file is provid... |
// Copyright (c) 2015-2016 The Bitcoin Core developers
// Copyright (c) 2020 vadique
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php
#include "torcontrol.h"
#include "utilstrencodings.h"
#include "netbase.h"
#include "net.h"
#inc... |
// This is the begining of a real application CNS
// At present it only implements the stencils for
// directionally defined first and second derivative
// discretizations for computing the solution of the
// compressible Navier-stokes equation
// There is a meaningless input, and the operators
// are applied to it. ... |
#include "pch.h"
#include "PuzzleSerializer.h"
PuzzleSerializer::PuzzleSerializer(const std::shared_ptr<Memory>& memory) : _memory(memory) {}
Puzzle PuzzleSerializer::ReadPuzzle(int id) {
Puzzle p;
try {
int width = _memory->ReadEntityData<int>(id, GRID_SIZE_X, 1)[0];
int height = _me... |
//=- WebAssemblyISelLowering.cpp - WebAssembly DAG Lowering Implementation -==//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
* File: AIC.cpp
* Author: <NAME>, TU Delft, DCSC
*
* Created on April 14th, 2019
*
* Class to perform active inference control of the 7DOF Franka Emika Panda robot.
* Definition of the methods contained in AIC.h
*
*/
#include "generativeModel.h"
// Constructor which takes as argument the publishers an... |
/*
* Copyright 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.
* 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... |
/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2012-, Open Perception, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
/**
* Copyright 2021 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... |
//===- LowerAffine.cpp - Lower affine constructs to primitives ------------===//
//
// Copyright 2019 The MLIR Authors.
//
// 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.... |
#include <Engine/MeshEdit/ARAP.h>
#include <Engine/MeshEdit/MinSurf.h>
#include <Engine/MeshEdit/Paramaterize.h>
#include <Engine/Primitive/TriMesh.h>
#include <Eigen/Sparse>
#include <Eigen/SparseQR>
#include <set>
using namespace Ubpa;
using namespace Eigen;
using namespace std;
Ubpa::ARAP::ARAP(Ptr<TriMesh> triMes... |
/**
* Copyright (c) Glow Contributors. See CONTRIBUTORS file.
*
* 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 b... |
int
wGGP,bM15mB ,yB , L9
,
eiW/*0b*/ ,E6, z6tO,
jLJHv,
l ,
ce
,iYb,/**/ n9p5, Uc,UbU, yfS4 ,oK1 ,DWq ,
Xs,XM7
, Ct
, /*v*/z5C,
IvC, yR7w,j1o //Vhm
, s1, Cb ,
CaC
,E7lE ,fN,/**/y1V , OYSD
,
hvw
,KB ,Npd,GAu4,vG
,
nrz0Z,s0nn ,
s0lu,uGpDGH ,f6sv/*P95qk*/
,qGM , eY , K0caG
,
nQ, OaBW,nRfk4, Rz... |
/*
* This is the performance implementation of TUBE model.
*/
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <random>
#include <fstream>
#include <set>
#include <sstream>
#include <algorithm>
#include <chrono>
#include <iomanip>
#include <thread>
#include <numeric>
#include <cmath>
... |
/*
By <NAME>
Iowa Hills Software, LLC IowaHills.com
If you find a problem, please leave a note at:
http://www.iowahills.com/feedbackcomments.html
May 1, 2016
This file is an example of how to use the code kit.
The code in this kit is essentially the same code used in the Iowa Hills IIR and FIR prog... |
/*
Kessels engine for GOLD.
See the "readme.txt" file.
<NAME>
Internet Engineer
http://www.kessels.com/
Copyright: <NAME>
Date: 22 march 2006
Version: 1.8
*/
#include <stdio.h> /* fprintf() */
#include <stdlib.h> /* malloc(), free() */
#include <wchar.h> ... |
struct hheap_chunk {
hheap_chunk *next;
};
struct hheap {
hheap_chunk *head;
void* first_free;
int32 num_remaining_in_head_chunk;
};
void *hheap_alloc(hheap *hh, ssize size) {
if (hh->first_free) {
void *p = hh->first_free;
hh->first_free = * (void **) p;
return p;
} else {
i... |
/*
FLUIDS v.1 - SPH Fluid Simulator for CPU and GPU
Copyright (C) 2009. <NAME>, http://www.rchoetzlein.com
ZLib license
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... |
#include <iostream>
#include <climits>
#include <vector>
#include <cstring>
#include <typeinfo>
#include <string>
#include <cmath>
#include "Account.h"
#include "Mystring.h"
using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::vector;
// Why shouldn't we use "using namespace std;" instead?
... |
// I removed most things related to working on a fraction of the data set.
// Also gone are functions dealing with loading the text data and creating binary files.
#undef SEEK_SET
#undef SEEK_END
#undef SEEK_CUR
#include <mpi.h>
#include <stdio.h>
#include <math.h>
#include <map>
#include <algorithm>
#include <iostream... |
#include <fstream>
#include <math.h>
#include <uWS/uWS.h>
#include <chrono>
#include <iostream>
#include <thread>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "json.hpp"
#include "spline.h"
using namespace std;
// for convenience
using json = nlohmann::json;
... |
// Copyright 2019 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 "media/gpu/windows/supported_profile_helpers.h"
#include <algorithm>
#include <limits>
#include <memory>
#include <utility>
#include <d3d9.h>
#... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.cpp
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c... |
#include "CGBL_dmesh.h"
#include "Cmdline.h"
#include "File.h"
#include "CAffineLens.h"
#include "Debug.h"
#include <string.h>
#include <curl/curl.h>
#include <sstream>
#include "png.h"
#include <iostream>
/* --------------------------------------------------------------- */
/* ... |
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... |
/*
* This file is part of Poedit (http://www.poedit.net)
*
* Copyright (C) 1999-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 withou... |
// -----------------------------------------------------------------------------------------
// NVEnc by rigaya
// -----------------------------------------------------------------------------------------
//
// The MIT License
//
// Copyright (c) 2014-2016 rigaya
//
// Permission is hereby granted, free of charge, to ... |
// Copyright 2006 Google 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 list of conditions and ... |
#include <cmath> // floor()
#include <iostream>
#include "pri.h"
#include "../libcpp69iip_scale_by_subpixel/iip_crop_and_downsample.h"
#include "iip_opengl_l1edit.h"
void iip_opengl_l1edit::init_opengl( void )
{
static GLushort glusa_red[2] = {0,0xffff},
glusa_gre[2] = {0,0xffff},
glusa_blu[2] = {0,0xffff};
/... |
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
/* ######################################################################
Set of methods to help writing and reading everything needed for EDSP
##################################################################### */
/*}}}*/
// Include Files ... |
// csafmt_indent.cpp -*-C++-*-
#include <clang/AST/ASTContext.h>
#include <clang/AST/Decl.h>
#include <clang/AST/DeclBase.h>
#include <clang/AST/DeclCXX.h>
#include <clang/AST/DeclTemplate.h>
#include <clang/AST/Expr.h>
#include <clang/AST/ExprCXX.h>
#include <clang/AST... |
/*
// Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a
// component of the Texas A&M University System.
// All rights reserved.
// The information and source code contained herein is the exclusive
// property of TEES and may not be disclosed, examined or reproduced
// in whole or in part withou... |
#include "systemdetails.h"
#include "bootstrapconfig.h"
#include "dsimenusettings.h"
#include "filecopy.h"
#include "flashcard.h"
#include "loaderconfig.h"
#include "systemfilenames.h"
#include "tool/stringtool.h"
#include "windows/cheatwnd.h"
#include "windows/mainlist.h"
#include "windows/mainwnd.h"
#include <stdio.h... |
/*
*
* Copyright 2013 <NAME>, <NAME>, and <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 appli... |
// Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#include <algorithm>
#include "NvV4l2Encoder.hpp"
#include "ptvMacro.hpp"
#include <sstream>
#include "libvideostitch/logging.hpp"
#define TEST_ERROR(cond, str) \
... |
/**
* Modified 2019, <NAME> (Tony) and <NAME>, TU Berlin, NUS.
*
* @file main.c
* @author <NAME> <<EMAIL>>
* @date Wed May 16 16:03:10 2012
* @version $Id: main.c 4546 2013-12-07 13:56:09Z bcagri $
*
* @brief Main entry point for running join implementations with given command
* line parameters.
*
*... |
/**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... |
///////////////////////////////////////////////////////////////////////////
/// KinZ_base.cpp
///
/// Description:
/// KinZ class implementations.
/// Define methods to initialize, and get images from sensor.
/// It uses Kinect for Azure SDK from Microsoft.
///
/// Usage:
/// Run demos
///
/// Authors:
//... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
#include <memory>
#include <ctype.h>
#include "CLHEP/Random/DRand48Engine.h"
#include "CLHEP/Random/RandGauss.h"
#include "CLHEP/Random/Randomize.h"
#include "DataFormats/TrackingRecHit/interface/AlignmentPositionError.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/Utilities/interface/Rando... |
#include <phypp.hpp>
void print_help();
int phypp_main(int argc, char* argv[]) {
// If too few arguments provided, print usage and exit
if (argc < 3) {
print_help();
return 0;
}
// Get static calibration directory from environment variable
std::string kmos_calib_dir = file::direct... |
/*
* (c) 2015 basil, all rights reserved,
* Modifications Copyright (c) 2016-2019 by <NAME>
* Modifications Copyright (c) 2020-2020 by <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 S... |
#include <algorithm>
#include <cstdio>
#include <variant>
#include <vector>
#include "hash.hpp"
using namespace crypto;
using B = std::byte;
using hash_algorithms_t =
std::variant<sha256_hash, sha224_hash, sha512_hash, sha512_224_hash,
sha512_256_hash, sha384_hash>;
struct testcase_t {
hash_al... |
#include "L1Trigger/L1TMuonOverlap/interface/AngleConverter.h"
#include "L1Trigger/L1TMuonOverlap/interface/OMTFConfiguration.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "Geometry/Records/interface/MuonGeometryRecord.h"
#include "Geometry/CSCGeometry/interface/CSCGeometry.h"
#include "L1Trig... |
/**
* \file GE0SegAlgRU.cc
*
* \author <NAME> adaptations for GE0
* \author <NAME> for ME0
* \from V.Palichik & N.Voytishin
* \some functions and structure taken from SK algo by M.Sani and SegFit class by T.Cox
*/
#include "GE0SegAlgoRU.h"
#include "MuonSegFit.h"
#include "Geometry/GEMGeometry/interface/GEMC... |
/*******************************************************************\
Module: Symbolic Execution
Author: <NAME>, <EMAIL>
\*******************************************************************/
/// \file
/// Symbolic Execution
#include "goto_symex.h"
#include <memory>
#include <pointer-analysis/value_set_dereferenc... |
//:
// \file
// \author <NAME>
// \date March 27, 2003
//
// \verbatim
// Modifications
// 24 June 2003 - <NAME> - added test_projective_basis_from_lines()
// \endverbatim
#include <iostream>
#include <vgl/vgl_homg_point_2d.h>
#include <vnl/vnl_math.h>
#include <vnl/vnl_matrix_fixed.h>
#include <vgl/algo/vgl_h_ma... |
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <map>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
using namespace cv;
using namespace std;
static ... |
/* Copyright (c) <2003-2011> <<NAME>, 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,
*... |
/**
* This code is mostly taken from recastnavigation's demo project. Just slightly adjusted to fit within godotdetour.
* Most thanks go to <NAME> and maintainers for this.
*/
//
// Copyright (c) 2009-2010 <NAME> <EMAIL>
//
// This software is provided 'as-is', without any express or implied
// warranty. In no e... |
// Code Version 6.0 C++
#include <iostream>
#include <fstream>
#include <cmath>
#include <iomanip>
#include <math.h>
#include <stdio.h>
#include <sstream>
#include <string>
#include <unistd.h>
#include <array>
#include <vector>
#include <random>
#include <ctime>
#include<gsl/gsl_rng.h>
#include<gsl/gsl_randist.h>
usi... |
#include "EpicsArch.hh"
#include <cassert>
#include <bitset>
#include <chrono>
#include <unistd.h>
#include <iostream>
#include <map>
#include <algorithm>
#include <getopt.h>
#include <Python.h>
#include "DataDriver.h"
#include "drp/RunInfoDef.hh"
#include "psdaq/service/kwargs.hh"
#include "psdaq/service/EbDgram.hh"
... |
// Copyright 2020 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/fxge/win32/cgdi_device_driver.h"
#include <math.h>
#include <w... |
#include "ProtocolHandler.h"
#include "LichtensteinUtils.h"
#include "lichtenstein_proto.h"
#include "../status/StatusHandler.h"
#include <glog/logging.h>
#include <INIReader.h>
#include <cpptime.h>
#include <chrono>
#include <bitset>
#include <cstring>
#include <sys/types.h>
#include <sys/socket.h>
#include <net... |
/*
* Copyright (c) 2013, <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 conditio... |
/******************************************************************************
* SAGE - Scalable Adaptive Graphics Environment
*
* Module: fsConsole.cpp - a UI console to control the Free Space Manager
* Author : <NAME>, <NAME>
*
* Copyright (C) 2004 Electronic Visualization Laboratory,
* University of Illinois... |
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>.
[1] <NAME>, <NAM... |
/****************************************************************************
**
** Copyright (C) 2013-2014 <NAME>.
** Contact: <EMAIL>
**
** This file is part of QML Creator.
**
** QML Creator is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published b... |
// segment.cc
// CopyRight 2018 <NAME>
// <NAME>
// Apache 2.0
#include "segmenter.h"
Object::Object(PixelSet& pixels, size_t id,
ObjectSegmenter* segmenter):
pixels_(pixels), id_(id) {
int num_classes = segmenter->GetNumClasses();
class_logprobs_.reserve(num_classes);
for (... |
/****************************************************************************
*
* This is a part of TOTEM offline software.
* Authors:
* <NAME> (<EMAIL>)
*
****************************************************************************/
#include "Geometry/VeryForwardGeometryBuilder/interface/RPAlignmentCorrectionsM... |
/* c++ file for the teaser skeletonization strategy */
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include "cpp-MinBinaryHeap.h"
#include "cpp-generate_skeletons.h"
// global variables
static long grid_size[3];
static long nentries;
static long sheet_size;
static long row_size;
static long infinity;
... |
/*
寿星天文历v5.05js版 C++翻译工程
API测试
2018-8-28
*/
#include <time.h>
#include <iostream>
#include <array>
#include <map>
#include "../tool.h"
#include "../lunar/lunar.h"
#include "../eph/eph_show.h"
#include "../eph/eph0.h"
#include "../eph/eph.h"
#include "../lat_lon_data.h"
#define MAP_H 18
#define MAP_W 7
std::array<std... |
/*************************************************************************
* *
* Vega FEM Simulation Library Version 4.0 *
* *
* "distance field" ... |
//====================================================================
//
// AnnotsXrce.cc
//
// author: <NAME>
//
// 09-2006
//
// Xerox Research Centre Europe
//
//====================================================================
#include "AnnotsXrce.h"
#include <stdlib.h>
#include "Object.h"
#include "Link.h"
#i... |
#include "genetic/population.hpp"
#include "genetic/generator.hpp"
#include "genetic/mutation.hpp"
#include "util/globals.hpp"
#include "util/hash.hpp"
#include "cxxopts.hpp"
#include <ostream>
#include <set>
#include <chrono>
#include <ctime>
#include <fstream>
#include <sstream>
#include <string>
#include <future>
#i... |
/// See LICENSE_CELLO file for license and copyright information
/// @file enzo_EnzoInitiaHdf5.cpp
/// @author <NAME> (<EMAIL>)
/// @date 2021-05-13
/// @brief Read initial conditions from HDF5
#include "enzo.hpp"
#include <chrono>
#include <thread>
#define CHECK_COSMO_PARAMS true
//--------------------... |
/*
* dhFullTest - Diffie-Hellman exerciser.
*/
#include <stdlib.h>
#include <stdio.h>
#include <Security/cssm.h>
#include "cspwrap.h"
#include "common.h"
#include <security_cdsa_utils/cuFileIo.h>
#include <strings.h>
#include "cspdlTesting.h"
#define USAGE_DEF "noUsage"
#define LOOPS_DEF 10
#define KEY_SIZE_DEF 5... |
int u7
,xETg,/*u*/ Y1b
, n/*P*/ ,
JKkRw,/*p*/ jU ,H5vy
, Kf/*YYk*/,/**/AEXUz,
BD9 , Ecv7
,
HU
,D,
F//S
, uc6I
,mW,
Lml,fyOi ,Wb
,
J0//rX
,DN1 /*bC9*/
,
a3,QB1,sq
,
GG,OKo ,Va0uNP
,
Kh5iQ/*s*/ ,
i0 ,
eN //FnDJ
,t53W ,r, nD
,
Fh5K, wJ5f7,TRN ,iyyh
,
Dw
,wWlm,//Ud
bg , fz0 //dYK
, pVx,
fe3a, xJ... |
// Authorship: <NAME> (a1648090)
// Implementation of TerrainGenerator class member functions.
#include "TerrainGenerator.hpp"
#include <algorithm>
#include <cassert>
#include <array>
#include <cmath>
#include <limits>
#include <numeric>
#include <vector>
#include <glm/glm.hpp>
#define STB_PERLIN_IMPLEMENTATION
#in... |
/**
* Copyright (C) 2018-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but W... |
/*
* Copyright (c) 2013 Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* ... |
#include "exec.hpp"
#include <lix/compiler/compile.hpp>
#include <lix/refl_get_member.hpp>
#include <iomanip>
#include <iostream>
using namespace lix;
using namespace lix::exec;
#if 0 // Toggle on/off exec debugging
using std::cerr;
using std::endl;
#define EXEC_DEBUG 1
#else
#define EXEC_DEBUG 0
#endif
namespac... |
/*
* Copyright 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 writ... |
#include "mainwindow.h"
#include <Tempest/Log>
#include <Tempest/RenderState>
#include <assimp/Importer.hpp>
aiLogStream stream;
using namespace Tempest;
const Color cl[7] = {
Color(1,0,0),
Color(0,0,1),
Color(1,1,0),
Color(0,1,0),
Color(1,0,1),
Color(0,1,1),
Color(1,0.8f,0.5f)
};
MainWindow::MainW... |
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... |
/*
** Copyright 2019-2021 Centreon
**
** 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 t... |
// Copyright(C) 2019 Intel Corporation
// Licensed under the MIT License
#include "core/common/common.h"
#include "core/common/logging/logging.h"
#include "core/framework/compute_capability.h"
#include "core/framework/allocatormgr.h"
#include "core/framework/kernel_registry.h"
#include "core/graph/graph_viewer.h"
#inc... |
//===--- DeadCodeElimination.cpp - Delete dead code ----------------------===//
//
// 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... |
#include "assert.h"
#include "stdlib.h"
#include "string.h"
#include "ctype.h"
#include "trace.h"
#include <string>
#include <fstream>
#include <algorithm>
#include "strparse.h"
#include "allegro.h"
#include "algrd_internal.h"
using namespace std;
#define streql(s1, s2) (strcmp(s1, s2) == 0)
#define field_max 80
cla... |
/*****************************************************************************************
* *
* OpenSpace *
* ... |
#include "scrypt.h"
WORD* hmac(SHA256_CTX *ctx, WORD *salt, unsigned long salt_len, WORD *message, unsigned long message_len){
WORD *khash = (WORD*) malloc(sizeof(WORD)*8);
sha256_in_words(ctx, message, message_len, khash);
// for(int i=0;i<8; i++){
// printf("%08x", khash[i]);
// }
WORD i... |
// Copyright (c) 2010 Google 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 list of conditio... |
/**********************************************************************
// @@@ START COPYRIGHT @@@
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. ... |
//===-- KnownBits.cpp - Stores known zeros/ones ---------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#include "RetroAchievements.h"
#include "HttpReq.h"
#include "ApiSystem.h"
#include "SystemConf.h"
#include "PlatformId.h"
#include "SystemData.h"
#include "utils/StringUtil.h"
#include "utils/ZipFile.h"
#include "ApiSystem.h"
#include "Log.h"
#include <algorithm>
#include <rapidjson/rapidjson.h>
#include <rapidjson/po... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <array>
#include <boost/functional/hash.hpp> // IWYU pragma: keep
#include <cstddef>
#include <functional>
#include <limits>
#include <unordered_map>
#include <utility>
#include <vector>
#include "DataStructures/ApplyMatrice... |
// Version 1.1
/*
Copyright (c) 2014, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and ... |
///////////////////////////////////////////////////////////////////
// Copyright <NAME> 2021. //
// Distributed under the Boost Software License, //
// Version 1.0. (See accompanying file LICENSE_1_0.txt //
// or copy at http://www.boost.org/LICENSE_1_0.txt) ... |
/*
SIN Toolchain (x86 target)
evaluate_expression.cpp
Generates code for evaluating an expression. This data will be loaded into registers as specified by "Doc/Registers"
*/
#include "compiler.h"
#include "compile_util/function_util.h"
// todo: add evaluation of expressions labeled 'constexpr'
// todo: create an ... |
// ~/xlin/gsl/testminsky.cc
// 150924 003 Task now -> grid
// Basert på 150921 001 testminskyall.cc
// Unified source for (74) and (77) variants
//
// Todo: Endre kappa def til arctan ? (se:'destabilizing..')
//
// GSL Manual 26.6
// http://stackoverflow.com/questions/27913858/how-to-consult-gsl-ode-with... |
#include <iostream>
#include <SFML/Graphics.hpp>
#include <SFML/Network.hpp>
#include "client.hpp"
#include "constants.hpp"
#include "control.hpp"
#include "icon.hpp"
#include "input.hpp"
#include "menu.hpp"
#include "server.hpp"
#include "sound.hpp"
// TODO sound
using std::cerr;
using std::endl;
using std::string... |
#include "timestepper.hpp"
#include "petscvec.h"
TimeStepper::TimeStepper() {
dim = 0;
mastereq = NULL;
ntime = 0;
total_time = 0.0;
dt = 0.0;
storeFWD = false;
}
TimeStepper::TimeStepper(MasterEq* mastereq_, int ntime_, double total_time_, Output* output_, bool storeFWD_) : TimeStepper() {
mastereq = m... |
// Copyright (c) 2010 <NAME>
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2018 The PIVX developers
// Copyright (c) 2018 The WISPR developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.openso... |
#include <stdio.h>
#include <stdlib.h>
#include <ugens.h>
#include <math.h>
#include <mixerr.h>
#include <rt.h>
#include <rtdefs.h>
#include <string.h>
#include <assert.h>
#include "pv.h"
#include "PVOC.h"
#include "setup.h"
#include "PVFilter.h"
#ifdef MACOSX
#define cosf(x) (float) cos((double)(x))
#define sinf(... |
/* Optimal accuracy alignment; SSE version.
*
* Contents:
* 1. Optimal accuracy alignment, DP fill
* 2. OA traceback
* 7. Copyright and license information.
*
* SRE, Mon Aug 18 20:01:01 2008 [Casa de Gatos]
* SVN $Id: optacc.c 3018 2009-10-29 17:33:06Z farrarm $
*/
#include <hmmer3/p7_config.h>
#include <flo... |
// A VO-based non-probablistic state estimator for the multisense
// - occasionally uses IMU to avoid orientation drift
// - when VO fails extrapolate using previous vision lin rate and imu rot rates
#include <zlib.h>
#include <lcm/lcm-cpp.hpp>
#include <bot_param/param_client.h>
#include <bot_frames/bot_frames.h>
#inc... |
#include "DetectorConstruction.hh"
#include "DetectorMessenger.hh"
#include "G4Material.hh"
#include "G4Tubs.hh"
#include "G4Box.hh"
#include "G4Cons.hh"
#include "G4Sphere.hh"
#include "G4LogicalVolume.hh"
#include "G4PVPlacement.hh"
#include "G4SubtractionSolid.hh"
#include "G4GeometryManager.hh"
#include "G4Physi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.