text stringlengths 5.71k 33.7k |
|---|
/*
* stmt.cpp --- Seq AST statements.
*
* (c) Seq project. All rights reserved.
* This file is subject to the terms and conditions defined in
* file 'LICENSE', which is part of this source code package.
*/
#include <memory>
#include <string>
#include <vector>
#include "parser/ast.h"
#include "parser/visitors/vi... |
#include <stdio.h>
#include <math.h>
#include <SDL.h>
#define WIDTH 720
#define HEIGHT 1280
#define BPP 4
#define DEPTH 32
inline int min(int a, int b)
{
return a < b ? a : b;
}
inline int max(int a, int b)
{
return a > b ? a : b;
}
inline double sec(double t)
{
return 1.0 / cos(t);
}
inline double csc(double t... |
/*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Unit Test
// Copyright (c) 2007-2012 <NAME>, Amsterdam, the Netherlands.
// Copyright (c) 2008-2012 <NAME>, Paris, France.
// Copyright (c) 2009-2012 <NAME>, London, UK.
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
// (geol... |
/**
* \file QryWznmUsrList.cpp
* job handler for job QryWznmUsrList (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author <NAME> (auto-generation)
* \date created: 28 Nov 2020
*/
// IP header --- ABOVE
#ifdef WZNMCMBD
#include <Wznmcmbd.h>
#else
#include <Wznmd.h>
#endif
#include "QryWz... |
// Portions Copyright 2012 <NAME> (<EMAIL>), <NAME> (<EMAIL>)
//
// If you help write or modify the code, please also list your names here.
// The reason of having Copyright info here is to ensure all the modified version, as a whole, under the GPL
// and further prevent a violation of the GPL.
// More about "... |
//===========================================================================
/*
Software License Agreement (BSD License)
Copyright (c) 2003-2012, CHAI3D.
(www.chai3d.org)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitt... |
/*
* image.cpp
*
* Created on: 2020年11月16日
* Author: 0
*/
#include "image.h"
int f[10 * CAMERA_H];//考察连通域联通性
//每个白条子属性
typedef struct {
uint8_t left;//左边界
uint8_t right;//右边界
int connect_num;//连通标记
}range;
//每行的所有白条子
typedef struct {
uint8_t num;//每行白条数量
range area[white_num_M... |
// Copyright (c) 2010 <NAME>
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chainparams.h"
#include "consensus/merkle.h"
#include "util.h"
#include "tinyformat.h"
#in... |
#include "nlohmann/json.hpp"
#include "workflow_executor.hpp"
#include "../deployundeploy/includes/httpfuntions.hpp"
#include <utility>
#include <cstdio>
#include <iostream>
#include <stdexcept>
#include <string>
#include <regex>
#include "exec.hpp"
#include <unistd.h>
int exec(const std::string &cmd, std::string &er... |
/**
* \file WznmWrappJbase.cpp
* Wznm operation processor - write code for Java accessor app (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author <NAME> (auto-generation)
* \date created: 28 Nov 2020
*/
// IP header --- ABOVE
#ifdef WZNMCMBD
#include <Wznmcmbd.h>
#else
#include <Wznmop... |
/*
* iquest - The irods iquest (question (query)) utility
*/
#include "rodsClient.hpp"
#include "parseCommandLine.hpp"
#include "rodsPath.hpp"
#include "rcMisc.hpp"
#include "lsUtil.hpp"
#include <iostream>
#include <string>
#include "irods_client_api_table.hpp"
#include "irods_pack_table.hpp"
#include <boost/format... |
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
#include <derecho/core/detail/derecho_internal.hpp>
#include <iostream>
#include <vector>
#include <memory>
#include <derecho/core/derecho.hpp>
#include <derecho/utils/logger.hpp>
#include <cascade/cascade.hpp>
#include <cascade/object.hpp>
using namespace derecho::cascade;
using derecho::ExternalClientCaller;
static... |
std::string GetValueStr(const std::string& line, const std::string& name)
{
size_t pos = line.find(name);
size_t size = name.size();
// 見つからなかった
if (pos == std::string::npos) { return ""; }
size_t valueFirst = line.find('=', pos + size);
valueFirst += 1;
size_t valueEnd = line.find(' ',... |
#include "theora/theoraenc.h"
#include "theora/theoradec.h"
#include "network.h"
#include "network_client.h"
#include "video.h"
// https://www.reddit.com/r/programming/comments/4rljty/got_fed_up_with_skype_wrote_my_own_toy_video_chat?st=iql0rqn9&sh=7602e95d
// https://github.com/rygorous/kkapture
// https://github.co... |
/**
* minigl.cpp
* -------------------------------
* Implement miniGL here.
*
* You may include minigl.h and any of the standard C++ libraries.
* No other includes are permitted. Other preprocessing directives
* are also not permitted. These requirements are strictly
* enforced. Be sure to run a test grading... |
/* vim: set sts=0 ts=4 sw=4 noet : */
#include "utils.h"
#include <cmath>
#include <stack>
#include <iostream>
#include <algorithm>
using namespace std;
#ifdef WIN32
double drand48()
{
return static_cast<double>(rand()) / static_cast<double>(RAND_MAX);
}
#endif
bool
RadialCompare::
operator()(const Vec2d & a, co... |
#include "lidar_processor/robot_finder.hpp"
RobotFinder::RobotFinder(std::string laser_topic,
float arena_diameter,
float max_robot_side,
float min_robot_side,
float object_distance_threshold,
... |
#include "ukf.h"
#include <iostream>
#include <iomanip>
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
*/
UKF::UKF() {
// state dimension
n_x_ = 5;
// augmented state dimension
n_aug_ = n_x_ + 2; // new dimensions are std_a_ and std_yawdd
// me... |
/**
* Copyright (C) 2016-2018 Xilinx, Inc
* Author(s): <NAME>, <NAME>
* PCIe HAL Driver layered on top of XOCL GEM kernel driver
*
* 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
*
* h... |
#include <algorithm>
#include <iterator>
#include <queue>
#include "MinimumFillIn.h"
#include "SetFunctions.h"
#include "Log.h"
#include "ConsList.h"
#include "LexBFS.h"
#include "Kernelizer.h"
#include "MCS.h"
#include <string>
struct Stats {
int num_four_cycles = 0;
int num_semi_marked_moplexes = 0;
int num_un... |
#include <iostream>
#include "PhysicsTools/KinFitter/interface/TSLToyGen.h"
#include "TMatrixD.h"
#include "PhysicsTools/KinFitter/interface/TFitConstraintM.h"
#include "PhysicsTools/KinFitter/interface/TFitConstraintEp.h"
#include "PhysicsTools/KinFitter/interface/TAbsFitParticle.h"
#include "TH1.h"
#include "TMath.h"... |
/*
* datasetnifti.cpp
*
* Created on: May 9, 2012
* @author <NAME>
*/
#include "datasetnifti.h"
#include "../../gui/gl/colormapfunctions.h"
#include <QDebug>
#include <QWidget>
DatasetNifti::DatasetNifti( QDir filename, Fn::DatasetType type, nifti_image* header ) :
Dataset( filename, type ),
m_header( h... |
#include <typeinfo>
#include <iostream>
#include "AtlasRegistration.h"
AtlasRegistration::AtlasRegistration(QString module) : Script(module)
{
}
// SET //
void AtlasRegistration::setLog(QString log_path)
{
m_log_path = log_path;
}
void AtlasRegistration::setRegistrationParameters(RegistrationParameters* param... |
/*
* Copyright (C) 2019 MediaTek 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 agr... |
/**************************************************************************/
/* */
/* WWIV Version 5.x */
/* Copyright (C)1998-2017, WWIV Software Services */
/* ... |
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/web_applications/web_app.h"
#if defined(OS_WIN)
#include <ShellAPI.h>
#endif // defined(OS_WIN)
#include "base/file_util.h... |
// The current file is licensed under the license terms found in the main header file "calculator.h".
// For additional information refer to the file "calculator.h".
#include "math_general.h"
#include "crypto.h"
#include "math_extra_algebraic_numbers.h"
#include "calculator.h"
#include "math_rational_function_implement... |
#include "App.h"
#include "Input.h"
#include "Textures.h"
#include "Audio.h"
#include "Render.h"
#include "Window.h"
#include "Scene.h"
#include "Map.h"
#include "Player.h"
#include "Transitions.h"
#include "CastleScene.h"
#include "EntityManager.h"
#include "FlyEnemy.h"
#include "PatrolEnemy.h"
#include "WanderEnemy.h... |
#include "../Headers/ImageSignificantMask.hpp"
void fm::ImageSignificantMask(const Image__& src,
Mask__& mask,
const int& medFilterSide,
const int& gaussFilterSide,
const int& minFilterSide,
... |
// salsa20.cc - An implementation of Salsa hash.
// Based on the spec (https://cr.yp.to/snuffle/spec.pdf).
#include "salsa20.h"
#include <cassert>
#include <cstddef>
#include <iomanip>
#include <iostream>
// This function is defined in Section 2 of the spec.
// out_i = y_{i + (c mod 32)} (where y_i is the ith bit of... |
// *************************************************************************
// Copyright (C) 2016 by <NAME>
// You may not use this file except in compliance with the License.
// You obtain a copy of the License in the LICENSE file.
// Unless required by applicable law or agreed to in writing, software
// distributed... |
/* from http://source.macgimp.org/plug-ins/bmp/bmpwrite.c*/
/* bmpwrite.c Writes Bitmap files. Even RLE encoded ones. */
/* (Windows (TM) doesn't read all of those, but who */
/* cares? ;-) */
/* I changed a few things over the time, so perhaps */
/* it dos now, but now there's ... |
//
// Dis VM
// File: vm.cpp
// Author: arr
//
#include <cassert>
#include <memory>
#include <algorithm>
#include <sstream>
#include <disvm.h>
#include <debug.h>
#include <runtime.h>
#include <exceptions.h>
#include <builtin_module.h>
#include <vm_version.h>
#include "scheduler.h"
#include "garbage_collector.h"
#inclu... |
/*
* matrix44.cpp
*
* Created on: 29 janv. 2012
*
*/
#include "matrix44.h"
Matrix::Matrix(const float *tab)
{ int i=16;
double *ptr=m;
while (i--)
{ *ptr++ = *tab++;
}
}
// lecture d'un Matrix dans un flux
istream& operator>>(istream& f,Matrix&p)
{ for (int i=0; i<16; i++)
{ f >> p.m[i];
}
return... |
/*
* Copyright (c) 2017, [Ribose Inc](https://www.ribose.com).
* Copyright (c) 2009 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is originally derived from software contributed to
* The NetBSD Foundation by <NAME> (<EMAIL>), and
* carried further by Ribose Inc (https://www.ribose.com).
*
* ... |
/* NeuQuant Neural-Net Quantization Algorithm
* ------------------------------------------
*
* Copyright (c) 1994 <NAME>
*
* NEUQUANT Neural-Net quantization algorithm by <NAME>, 1994.
* See "Kohonen neural networks for optimal colour quantization"
* in "Network: Computation in Neural Systems" Vol. 5 (1994) pp 3... |
#include <iostream>
#include <string>
#include <cmath>
#include <random>
#include <chrono>
#include <functional>
#include <algorithm>
int const V = 1;
int const COUNT = 127;
int const KOL = 40;
int const INF = 1000000000;
using std::string;
using std::cin;
using std::cout;
using std::endl;
using std::min;
double ran... |
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
#include <cmath>
#include <cstdlib> // exit, EXIT_FAILURE
#include <iostream>
#include <map>
#include <string>
#include <unordered_map>
#include "al/graphics/al_OpenGL.hpp"
#include "al/io/al_Window.hpp"
using namespace std;
static void cbError(int code, const char... |
#include "main.h"
#include "timer.h"
#include "object.h"
#include "handlers.hpp"
using namespace std;
GLMatrices Matrices;
GLuint programID;
GLFWwindow *window;
/**************************
* Customizable functions *
**************************/
Player p;
Platform ground;
deque <Coin> coins;
bool randi;
deque<Fir... |
#include <map>
#include <set>
#include <deque>
#include <iostream>
#include <fstream>
#include <cfloat>
#include <instructionTraceAnalyzer.h>
#include <instructionTraceGenerator.h>
#include <argumentParser.h>
#include <exception.h>
// Boost includes
#include <boost/archive/text_iarchive.hpp>
#include <boost/serializ... |
////////////////////////////////////////////////////////////////////////////////
// //
// Name: GlobalP0Analysis.cxx //
// ... |
/*
** Copyright (C) 1996, 1997 Microsoft Corporation. All Rights Reserved.
**
** File: missileIGC.cpp
**
** Author:
**
** Description:
** Implementation of the CmissileIGC class. This file was initially created by
** the ATL wizard for the core object.
**
** History:
*/
// missileIGC.cpp : Implementation of ... |
/*
The MIT License (MIT)
Copyright (c) 2017, <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, pu... |
#include "ofApp.h"
//#define server
#define server_lv
Mesh_my mesh, mesh_ref;
Eigen::MatrixX3f coef_land;
Eigen::MatrixX3f coef_mesh;
Eigen::Vector3f mi_rgb;
Eigen::Vector3f ma_rgb;
float mi_x, ma_x;
const int test_coef_num = 18;
const int show_color_ma = 10;
//---------------------------------... |
//
// main.cpp
// canrecord
//
// Created by <NAME> on 3/12/22.
//
#include "CmdLineMgr.hpp"
#include "CmdLineRegistry.hpp"
#include "CanBusMgr.hpp"
#include "FrameDB.hpp"
#include "GMLAN.hpp"
#include "Wranger2010.hpp"
#include "OBD2.hpp"
#include "FrameDumper.hpp"
#include <sstream>
#include <stdio.h>
#inclu... |
#ifdef HAVE_CONFIG_H
#include <../../config.h>
#endif
/*
* Copyright (c) 1990, 1991 Stanford University
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided
* that the above copyright notice appear in all copies and ... |
//
// See README-LCALS_license.txt for access and distribution restrictions
//
//
// Source file containing LCALS "A" subset forall lambda loops using
// the google benchmark library.
//
#include <benchmark/benchmark.h>
#include "../LCALSSuite.hxx"
#include "../SubsetDataA.hxx"
#include "../LCALSTraversalMethods.hxx"... |
/*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on
* the source.
*/
/*
* $Logfile: /Freespace2/code/MenuUI/SnazzyUI.cpp $
* $Revision: 307 $
*... |
//===-- AMDGPUSubtarget.cpp - AMDGPU Subtarget Information ----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
//
// Created by wnabo on 08.03.2019.
//
#include "FabrikSolve.h"
#include <iostream>
#include <math.h>
void FabrikSolve::chain_backwards() {
std::cout << "Chain backward" << std::endl;
std::cout << "Last Joint3D: [" << joints.at(joints.size() - 1).coeff(0) << ", "
<< joints.at(joints.size() - 1... |
#include <RcppArmadillo.h>
// [[Rcpp::depends("RcppArmadillo")]]
using namespace Rcpp;
const double log2pi = std::log(2.0 * 3.14159265359);
// [[Rcpp::export]]
arma::mat tensor_rotate_X(arma::mat X,
arma::mat eigvecS,
arma::mat eigvecT,
ar... |
#include <iostream>
using std::istream;
using std::ostream;
#include <cstdlib>
using std::exit;
#include <cstring>
using std::strcmp;
using std::strstr;
#include <cmath>
using std::sqrt;
#include <matrix.h>
#include <element.h>
#include <track.h>
pBeam::pBeam(char* str,int N,double rn)
{
int i;
N_particle=N;
nd... |
#include "Globals.h"
#include "Application.h"
#include "ModuleCharacterSelect.h"
#include "ModuleTextures.h"
#include "ModuleRender.h"
#include "ModulePlayer.h"
#include "ModuleInput.h"
#include "ModuleFadeToBlack.h"
#include "ModuleSceneking.h"
#include "ModuleAudio.h"
#include "ModulePlayer2.h"
#include "ModuleVersus... |
/* This is the main file thats primarily just used to help test
* Paul's SSH Class (PTssh) */
/************************
* Define the types of tests to run
***********************/
//#define EXEC_TEST
//#define SCP_SEND_TEST
//#define SCP_RECEIVE_TEST
//#define TERMINAL_TEST
//#define AUTHENTICATION_T... |
// prog3WhichLangMacbeth.cpp
// Use letter frequency counts to determine what language text is in.
//
// Author: <NAME> & <NAME>
// Date: Oct 2, 2018
// Class: CS 141, Fall 2018
// Language: C++
//
// Translations of Macbeth were created online using Google translate, starting with the
// English version at http://s... |
#include "dialogs/FaceEditSheet.h"
#include <QDoubleValidator>
#include <QFormLayout>
#include <QGridLayout>
#include <QHBoxLayout>
#include <QPushButton>
using namespace ui;
CFaceEditSheet::CFaceEditSheet( QWidget *pParent ) :
QDialog( pParent )
{
this->setWindowTitle( tr( "Face Edit Sheet" ) );
auto pDialogLay... |
//author: samylee
//date: 2018.4.19
#include <time.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include "network.h"
#include "mtcnn.h"
#include <sys/stat.h>
#include <sys/time.h>
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
enum DATA... |
/*!
* Generic implementation for abstract handles of language constructs
*/
#include "abstract_handle.h"
#include <utility>
#include <sstream>
#include <iostream>
#include <assert.h>
#include <vector>
#include <map>
#include <cstring>
using namespace std;
/* A local helper function to convert integers to strings ... |
#include <boost/regex.hpp>
#include "TFile.h"
#include "TEveTreeTools.h"
#include "TError.h"
#include "TMath.h"
#include "TEnv.h"
#include "DataFormats/FWLite/interface/Handle.h"
#include "DataFormats/Common/interface/TriggerResults.h"
#include "DataFormats/Provenance/interface/ProcessConfiguration.h"
#include "DataF... |
#include <cmath>
#include <bcl/bcl.hpp>
#include <bcl/containers/SPMatrix.hpp>
#include <mkl.h>
#include <bcl/core/detail/hash_functions.hpp>
double synct = 0;
double issue = 0;
double acc = 0;
double compute = 0;
double load = 0;
double end_acc = 0;
double rebroadcast = 0;
template <typename index_type, typename ... |
// surject_main.cpp: define the "vg surject" subcommand, which forces alignments into linear space
#include <omp.h>
#include <unistd.h>
#include <getopt.h>
#include <string>
#include <vector>
#include <set>
#include "subcommand.hpp"
#include <bdsg/hash_graph.hpp>
#include <bdsg/overlays/path_position_overlays.hpp>
... |
//===--- GenArchetype.cpp - Swift IR Generation for Archetype Types -------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
/*
* Copyright (C) 2014 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, dis... |
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... |
#include <StdInc.h>
#include <Hooking.h>
#include <CoreConsole.h>
#include <RageParser.h>
#include <nutsnbolts.h>
#include <CrossBuildRuntime.h>
#include <boost/algorithm/string.hpp>
#include <atArray.h>
static void** g_profileSettings;
#define PS_NAME(s) { HashRageString(s), s }
static std::map<uint32_t, std::... |
/*
Copyright 2005-2014 Intel Corporation. All Rights Reserved.
This file is part of Threading Building Blocks. Threading Building Blocks is free software;
you can redistribute it and/or modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundat... |
#include <iostream>
#include <iomanip>
#include <conio.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <windows.h>
using namespace std;
int winner(int deck1[52], int deck2[52]); //checks to see if either player has won (is one deck[0] == -1?)
void deal(int deck1[52], i... |
#include "util_shared.hpp"
/**
* Matrix A is of size M x K (global)
* Matrix B is of size K x N
* Each rank works on Nr x Nr
* Each thread works on Nt x Nt
*
* There are n sub blocks on a given rank
*/
void gemm(const int M, const int K, const int N, const int block_size,
const int n_threads, int P, i... |
/* TimingUtilitiesOSX.c */
// Timing utilites - OSX User Space and Kernel version
#include "TimingUtilitiesOSX.h"
#ifdef COMPILE_OSX_KERNEL
#define DO_PRINTING 0
#define PRINT_STYLE IOLog
#include <libkern/OSByteOrder.h>
#else
#include <StdIO.h>
#define DO_PRINTING 0
#define PRINT_STYLE printf
#endif
/... |
#include <iostream>
#include <cstdlib>
#include <cstdint>
#include <cstring>
#include <cmath>
#include <string>
#include <vector>
#include <unordered_map>
#include <utility>
#include <tuple>
#include <algorithm>
#include <chrono>
#include "sam.hpp"
#include "mapping_params.hpp"
#include "mapping.hpp"
#include "ksw2.h"... |
#include <AMReX_MultiFabUtil.H>
#include <AMReX_ParmParse.H>
#include <AMReX_BC_TYPES.H>
#include <AMReX_Box.H>
#include <incflo.H>
#include <boundary_conditions_F.H>
#include <embedded_boundaries_F.H>
#include <setup_F.H>
void incflo::ReadParameters()
{
{
// Variables without prefix in inputs file
Parm... |
#include "AliJEbeHistos.h"
#include "AliJCard.h"
AliJEbeHistos::AliJEbeHistos():
fcard(NULL),
fHMG(NULL),
fCentBin(),
fHarmonicBin(),
fhVnObsVector(),
fhVnObsVectorJFluc(),
fhVnObsVectorAfterSelection(),
fhResponseDist(),
fhMultiCount(),
fhVnObsEP(),
fhCosndPhiPt(),
fheCo... |
#include "StLGeoConverter.h"
#include "Controller/Controller.h"
#include "Basics/LargeRAWFile.h"
#include "SysTools.h"
#include "Mesh.h"
#include <fstream>
#include "TuvokIOError.h"
using namespace tuvok;
StLGeoConverter::StLGeoConverter() :
AbstrGeoConverter()
{
m_vConverterDesc = L"Stereo Lithograp... |
#include "Geometry.h"
void GeometryGenerator::GenerateBox(float width, float height, float depth, ColoredMesh& mesh)
{
ColoredVertex v[24];
float w2 = 0.5f*width;
float h2 = 0.5f*height;
float d2 = 0.5f*depth;
//Front
v[0] = ColoredVertex(-w2, -h2, -d2, 0.0f, 0.0f, -1.0f, 0.0f, 0.5f, 0.0f, 1.0f);
v[1] = C... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the library KASKADE 7 */
/* see http://www.zib.de/projects/kaskade7-finite-element-toolbox */
... |
#include "ILogger.h"
#include "StdioLoggerFactory.h"
#include "IPAddress.h"
#include "MessageBroker.h"
#include "StartupHandler.h"
#include "ShutdownHandler.h"
#include "JobDispatcher.h"
#include "JobWorkerFactory.h"
#include "JobFactory.h"
#include "TCPServerListener.h"
#include "TCPCommService.h"
#include "User.h"
#i... |
/*
T-Watch. Sleep and wake-up with BMA423 accelerometer or ESP32 button
Putting the ESP32 and accessories to sleep. Programmed wake-up demo (Timer)
in deep sleep mode. Waking up with the home button with an interrupt on the
AXP202 power management controller or by detecting motion using the BMA423
... |
/*
Copyright (C) 2003 Parallel Realities
Copyright (C) 2011, 2012, 2013 <NAME>
Copyright (C) 2012, 2015-2017 <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 3
of the L... |
//#include "../core/core_headers.h"
#include "../core/gui_core_headers.h"
extern MyMainFrame* main_frame;
void ConvertImageToBitmap(Image* input_image, wxBitmap* output_bitmap, bool auto_contrast) {
MyDebugAssertTrue(input_image->logical_z_dimension == 1, "Only 2D images can be used");
MyDebugAssertTrue(outpu... |
//-------------------------------------------------
//
/** \class DTTrigTest
*
* EDAnalyzer that generates a rootfile useful
* for L1-DTTrigger debugging and performance
* studies
*
*
*
* \author <NAME>
*/
//
//--------------------------------------------------
// This class's header
#include "L1Tri... |
//------------------------------------------------------------------------------
// TestOptCtrl
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2020 United States Government as represented by the... |
//
// main.cpp
// normalize
//
// Created by tihmstar on 31.10.19.
// Copyright © 2019 tihmstar. All rights reserved.
//
#include <iostream>
#include "Traces.hpp"
#include <vector>
#include <future>
#include <sys/stat.h>
#include <string.h>
#include <limits.h>
#include <tuple>
#include <algorithm>
#define SIMD
#... |
/**
* GeoDa TM, Copyright (C) 2011-2015 by <NAME> - all rights reserved
*
* This file is part of GeoDa.
*
* GeoDa 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
* ... |
/////////////////////////////////////////////////////////////////////////////
// Name: src/font.cpp
// Purpose: source for font management classes
// Author: <NAME> <<EMAIL>>
// Created: 16/08/2010
// Copyright: (C) 2010-2011 <NAME>
// Licence: MIT License
/////////////////////////////////////... |
/*******************************************************/
/* oPoSSuM solver: network.cpp */
/* Implementation of the tree network and PSL problem */
/* (c) <NAME> (UNS-CNRS) 2012 */
/*******************************************************/
#include "network.hpp"
bool showID = fal... |
/**
* 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... |
#include "flashControl.h"
void flashControl::allocateQuery(std::string filename) {
if (_myRank == 0) {
_queryIndices = new unsigned int[(unsigned)(_numQueryVectors * _dimension)];
_queryVals = new float[(unsigned)(_numQueryVectors * _dimension)];
_queryMarkers = new unsigned int[(un... |
#include <cstring>
#include <fcntl.h>
#include <iostream>
#include <string>
#include <thread>
#include <unistd.h>
#include <sys/epoll.h>
#include "Broker.h"
Broker::Broker() :
refreshTimeout(1),
messageQueue(),
table(),
port(8000),
priorityNumber(0),
subscription()
{}
Broker::Broker(in_p... |
/* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certai... |
// The code in this file is licensed under the MIT License (MIT).
#include <parser-library/parse.h>
#include <parser-library/nt-headers.h>
#include <iostream>
#include <array>
#include <unordered_map>
#include <unordered_set>
#include <set>
#include <map>
#include <stack>
#include <deque>
#include <list>
#include <a... |
#include <signal.h>
#include <pwd.h>
#include <event2/event.h>
#include <string.h>
#include <unordered_map>
#include <phosg/JSON.hh>
#include <phosg/Network.hh>
#include <phosg/Strings.hh>
#include <phosg/Filesystem.hh>
#include <set>
#include "NetworkAddresses.hh"
#include "SendCommands.hh"
#include "D... |
#include "GL_RiemannHistogram.h"
#include "../OpenGL/GL_Mesh.h"
#include "../../Utility/MemoryPool.h"
#include "../Threading/ThreadInfo.h"
#include "../Threading/ThreadMap.h"
#include "../OpenGL/GL_Util.h"
#include "GL_Graph.h"
#include "../Geometry/Vector.h"
#include "../OpenGL/GL_Image.h"
#include "../Geometry/Rotati... |
/*
* Copyright (c) 2015-2017, the ypspur_ros authors
* 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... |
#include <glew.h>
#include <glfw3.h>
#include <cmath>
#include "src/Mesh.h"
#include "src/Model.h"
#include "src/Shader.h"
#include "src/Camera.h"
#include "src/Material.h"
#include "src/DirectionLight.h"
#include "src/PointLight.h"
#include "src/SpotLight.h"
#define STB_IMAGE_IMPLEMENTATION
#include "src/stb_image.h... |
#include <Function.h>
#include <algorithm>
#include <iostream>
#include <list>
#include <string>
Function::Function() {
_head = NULL;
_end = NULL;
BB_computed = false;
BB_pred_succ = false;
dom_computed = false;
}
Function::~Function() {}
void Function::set_head(Line *head) { _head = head; }
void Function... |
//
// Created by <NAME> on 2019-03-03.
//
#include "helpers.h"
#include <math.h>
#include <cmath>
#include <iostream>
#include <fstream>
map_waypoints readMap(const std::string& map_file) {
// Load up map values for waypoint's x,y,s and d normalized normal vectors
map_waypoints wp;
std::ifstream in_map(map_f... |
#include "../include/Leader.hh"
#include <SFML/Window.hpp>
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include <cmath>
#include <iostream>
Leader::Leader(float x, float y, int N, std::string whichPattern, bool yestofollowers, bool tracersYorN, bool slowmo) {
// Some constants
displayx = x;
displayy... |
#include <Engine/Shared.h>
#include <Engine/ThirdParty/imgui/imgui.h>
#include <Engine/ThirdParty/imgui/examples/directx11_example/imgui_impl_dx11.h>
#include "UIManager.h"
#include "Clock.h"
#include "ColorPicker.h"
#include "TransformationFeature.h"
#include "LightingFeatures.h"
#include <Engine/Graphics/Camera.h>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.