text stringlengths 5.71k 33.7k |
|---|
// ============================================================================
//
// Project 1: Lidar Obstacle Detection (Udacity Sensor Fusion Nanodegree)
//
// Authors: <NAME> using code base/skeleton provided by Udacity
//
// Source: https://github.com/udacity/SFND_Lidar_Obstacle_Detection.git
// ... |
/*
* Copyright (C) 2013 by <NAME> (<EMAIL>) and
* <NAME> (Cornell University)
*
* Released under the MIT license, see LICENSE.txt
*/
#include "halPhyloP.h"
using namespace std;
using namespace hal;
PhyloP::PhyloP() : _mod(NULL), _softMaskDups(false), _maskAllDups(false),
_seqnameHash(NULL), ... |
/*
* Copyright 2020 <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 wr... |
/*****************************************************************/
/* NAME: <NAME>, <NAME>, and <NAME> */
/* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */
/* FILE: BHV_Trail.cpp */
/* DATE: Jul 3rd 2005 Sunday morning at Brueggers */
/* ... |
//
// Created by Maarten on 11/05/2020.
//
#include "experiment_3_simplex.hpp"
#include <iostream>
#include <esl/data/filesystem.hpp>
////////////////////////////////////////////////////////////////////////////////
#include <esl/computation/environment.hpp>
#include <esl/simulation/model.hpp>
using esl::simulation::... |
/*
* Copyright 2017 The Polycube 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
//------------------------------------------------------------------------------
#include "EPSDetectorConstruction.hh"
//------------------------------------------------------------------------------
#include "G4RunManager.hh"
#include "G4NistManager.hh"
#include "G4Box.hh"
#include "G4Cons.hh"
#include "G4Orb.hh"
#inc... |
#include <windows.h>
#include <gl\glut.h>
#include <math.h>
#include "loadbmp.h"
#define PI 3.141592
int windoww, windowh;
GLuint M_DList;
GLuint K_DList;
GLuint K8_DList;
GLuint Texture;
float xa = 0, ya = 0, ll = 0;
int model = 0;
bool setka = false;
void Point_K8(float u, float v, float&... |
#include <stdio.h>
#include <fcntl.h>
#include <cv.h>
#include "highgui.h"
#include <time.h>
#include <math.h>
#include <stdlib.h>
#include <unistd.h>
#include <termios.h>
#include <string.h> // needed for memset
#define PROXIMITY 40
struct coords
{
int x,y;
}centers[20],centers_filt[20],centers_filt_temp[20];
int f... |
#include <stdio.h>
#include <stdlib.h>
#include <Fl/Fl.H>
#ifdef __APPLE__
#include <OpenGL/glu.h>
#else
#include <GL/glu.h>
#endif
#include "GLView.h"
#include "timer.h"
#include "controller.h"
void idle_func()
{
printf("idle\n");
Fl::redraw();
}
void GLView::glInit()
{
GLfloat light_pos[4] = {1.0, 1.... |
/* Create a map of all the sectors to load */
#include <iostream>
#include <string>
#include <vector>
using namespace std;
#include <stdio.h>
#define _DEBUG_ 0
#define SUCCESS 0
#define FAILURE 1
#define VERSION "e2u3map 0.1a by <NAME>"
#if _DEBUG_
#define DEBUG(x) printf x
#else
#define DEBUG(x) ;
#endif
stri... |
//
// Copyright (c) 2017, Intel Corporation
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// Redistributions of source code must retain the above copyright notice, this
// list of conditi... |
//////////////////////////////////////////////
//dual coordinate descent for maximum entropy models
#include "Solver_CD_DUAL.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <locale.h>
#include <algorithm>
#include <time.h>
#include <iostream>
///////////////... |
#include "ft2232.h"
ft2232::ft2232()
: ftdi_handle(0)
, bptr(0)
, calls_rd(0)
, calls_wr(0)
, retries(0)
{
description = string("Digilent Adept USB Device");
}
ft2232::~ft2232()
{
if (ftdi_handle) {
close();
free(ftdi_handle);
}
}
int
ft2232::open()
{
uint8_t buf1[5];
uint8_t buf[9] = { ... |
#include "MainFrame.h"
#include <wx/menu.h>
#include <wx/log.h>
#include <wx/msgdlg.h>
#include <wx/filedlg.h>
#include <wx/dirdlg.h>
#include <wx/sizer.h>
#include <wx/treectrl.h>
#include <wx/imaglist.h>
#include <wx/image.h>
#include <wx/imagpng.h>
#include <wx/dirctrl.h>
#include <wx/busyinfo.h>
#inclu... |
#include "stdafx.h"
#include "CLUtility.h"
#include "CLHelper.h"
#include "CLImageDownsampler.h"
#include "CLImageDownsampleStack.h"
#include "CLImageComparator.h"
#include "CLImageSharpnessCalc.h"
#include "CLWeightCalculator.h"
using namespace std;
using namespace sf;
const cl_int2 MainWindowSize{ 1280... |
#include <iostream>
#include <fstream>
#include <sstream>
#include "CommonHeader.h"
#include "NonlinearOptimizerInfo.h"
#include <ctime>
#include "Splines.h"
using namespace SplineLib;
static void SplinePiece1DObjGene(const double & sInit, const double & sGoal, const double & PosInit, const double & VelInit, const do... |
// OpenCV + v4l2 Camera Sample
// For Ubuntu 14.x or later
// Will not work on Windows environment
#define _FILE_OFFSET_BITS 64
#include "main.h"
#include "Capture.h"
// XWindow (Used to get display size)
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include "V4LCapture_Min.h"
#include "CommandParser.h"
#include "... |
/********************************************************************
* Filename: GTree.cpp [C++ source code]
*
* Description: Implementation of GTree class, templatized for
* Node/pNode purposes
*
* Author: Primary - <NAME>
* Secondary - Dr. <NAME>
*
*********************************************... |
/* <NAME>
SMU Mathematics
6 August 2020 */
// Inclusions
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <armadillo>
using namespace std;
// prototypes of other functions
int GramSchmidt(arma::mat& X);
// Example routine to test the Mat class
int main(... |
#ifdef _WIN32
#error "Not for windows"
#endif
#include <iostream>
#include <utility>
#include <vector>
#include <string>
#include <filesystem>
#include <chrono>
#include <soci/boost-optional.h>
#include <soci/boost-tuple.h>
#include <boost/log/core.hpp>
#include <boost/log/trivial.hpp>
#include <boost/log/expressions... |
#include "tracer.h"
uint64_t all_miss_tests = 0;
uint64_t all_miss_culls = 0;
uint64_t all_hit_tests = 0;
uint64_t all_hit_hits = 0;
uint64_t aabb_tests = 0;
void print_traverse_stats()
{
std::cout << "all_miss_tests: " << all_miss_tests << std::endl;
std::cout << "all_miss_culls: " << all_miss_culls << ... |
#include "qtdclient.h"
#include <QDebug>
#include <QPointer>
#include <QEventLoop>
#include <QMetaObject>
#include <QJsonDocument>
#include <QtConcurrent>
#include <QJsonDocument>
#include <QApplication>
#include <QStandardPaths>
#include "qtdthread.h"
#include "qtdhandle.h"
#include "auth/qtdauthstatefactory.h"
#inclu... |
#include "pch.h"
#include "maths.h"
#include "TBall.h"
#include "TFlipperEdge.h"
void maths::enclosing_box(rectangle_type* rect1, rectangle_type* rect2, rectangle_type* dstRect)
{
int xPos1 = rect1->XPosition;
int yPos1 = rect1->YPosition;
int width1 = rect1->Width;
int height1 = rect1->Height;
int xPos2 = rect... |
// from SemaCXX/class-layout.cpp
// RUN: c-index-test -test-print-type-size %s -target x86_64-pc-linux-gnu | FileCheck -check-prefix=CHECK64 %s
// RUN: c-index-test -test-print-type-size %s -target i386-apple-darwin9 | FileCheck -check-prefix=CHECK32 %s
namespace basic {
// CHECK64: VarDecl=v:[[@LINE+2]]:6 (Definitio... |
/*
Event : Halloween
Author: Angelis
Team : Sun++
*/
#include "Setup.h"
//Black Cat
class BlackCat : public MoonScriptCreatureAI
{
MOONSCRIPT_FACTORY_FUNCTION(BlackCat, MoonScriptCreatureAI);
BlackCat(Creature* pCreature) : MoonScriptCreatureAI(pCreature) {}
void OnDied(Unit* pKiller)
{
pKiller->CastSpel... |
/*! @file
@brief 外部コマンド実行ダイアログ
@author <NAME>
*/
/*
Copyright (C) 1998-2001, <NAME>
Copyright (C) 2000, jepro
Copyright (C) 2001, jepro, Stonee
Copyright (C) 2002, aroka, YAZAKI, MIK
Copyright (C) 2006, ryoji
Copyright (C) 2007, maru
Copyright (C) 2009, ryoji
Copyright (C) 2018-2021, Sakura Editor Organizat... |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* 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 app... |
// Game_Music_Emu https://bitbucket.org/mpyne/game-music-emu/
#include "Music_Emu.h"
#include "Multi_Buffer.h"
#include <string.h>
/* Copyright (C) 2003-2006 <NAME>. This module is free software; you
can redistribute it and/or modify it under the terms of the GNU Lesser
General Public License as published by the Fre... |
/*
* Copyright (C) 2018 The Android Open Source Project
*
* 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 app... |
/***************************************************************
*
* 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. Yo... |
/*
* Copyright (C) 2017 Open Source Robotics Foundation
*
* 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 appl... |
// Class include
#include "TimeAdjuster.hh"
TimeAdjuster::TimeAdjuster(const TString & skimfilename, const TString & signalskimfilename, const TString & infilesconfig,
const TString & sadjustvar, const TString & stime, const Bool_t doshift, const Bool_t dosmear,
const Bool_t skipdata, const Bool_t skipbkgd... |
/*
microsoft-oms-auditd-plugin
Copyright (c) Microsoft Corporation
All rights reserved.
MIT License
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, in... |
#include <cstdlib>
#include <sstream>
#include <stdlib.h>
#include <cassert>
#include <algorithm>
#include <leveldb/db.h>
#include <leveldb/slice.h>
#include <leveldb/filter_policy.h>
#include <leveldb/cache.h>
#include <fstream>
#include <iostream>
#include "rapidjson/document.h"
#include "rapidjson/writer.h"
#include... |
//LIC// ====================================================================
//LIC// This file forms part of oomph-lib, the object-oriented,
//LIC// multi-physics finite-element library, available
//LIC// at http://www.oomph-lib.org.
//LIC//
//LIC// Copyright (C) 2006-2022 <NAME> and <NAME>
//LIC//
//LIC// This lib... |
/*******************************************************************************
* python/module.cpp
*
* Copyright (c) 2019 <NAME>
*
* All rights reserved. Published under the MIT License in the LICENSE file.
******************************************************************************/
#include <pybind11/pybin... |
#include "polytracker/output.h"
#include "polytracker/logging.h"
#include "polytracker/polytracker.h"
#include "polytracker/sqlite3.h"
#include "polytracker/tablegen.h"
#include "polytracker/taint.h"
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <mutex>
#include <optional>
#in... |
//
// Created by zhangtao on 2019/9/4.
//
#include "filter.h"
filter::filter() {
av_register_all();
avfilter_register_all();
avcodec_register_all();
avdevice_register_all();
inFormatContext = NULL;
outFormatContext = NULL;
avInputFormat = NULL;
avOutputFormat = NULL;
inCodecCont... |
/* -*- tab-width: 4; -*- */
/* vi: set sw=2 ts=4 expandtab textwidth=80: */
/*
* Copyright 2019-2020 Khronos Group, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
#include <emscripten/bind.h>
#include <ktx.h>
#include <iostream>
using namespace emscripten;
#define ktxTexture2(t) reinterpret_cast<ktxTexture2*>(m_p... |
//
// hourglassKeypoint.cpp
// MNN
//
// Created by <NAME> on 2020/01/17.
//
#include <stdio.h>
#include "MNN/ImageProcess.hpp"
#include "MNN/Interpreter.hpp"
#define MNN_OPEN_TIME_TRACE
#include <algorithm>
#include <fstream>
#include <functional>
#include <memory>
#include <sstream>
#include <iostream>
#include <... |
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
/*======
This file is part of PerconaFT.
Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.
PerconaFT is free software: you can redistribute it and/or modif... |
/***********************************************************************
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
* *
* This file is part of EvtGen. *
* ... |
/*
* General support for vehicles in HackflightSim
*
* This class peforms the following functions:
*
* (1) Statically builds meshes, cameras, and other UE4 objects
*
* (2) Provides basic support for displaying vehicle kinematics
*
* Copyright (C) 2019 <NAME>, <NAME>
*
* MIT License
*/
#pragma... |
#include "CollisionManager.h"
#include "PhysicsScene.h"
#include "PhysicsObject.h"
#include "Rigidbody.h"
#include "Plane.h"
#include "Sphere.h"
#include "Box.h"
#include "CollisionData.h"
#include <list>
#include <vector>
#include <algorithm>
#include <iostream>
typedef void(*fn)(CollisionData&);
fn collisionFunc... |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* 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 app... |
// Programming 2D Games
// Copyright (c) 2011 by:
// <NAME>
// entity.cpp v1.9
// Last modification: Apr-12-2013
#include "entity.h"
//=============================================================================
// constructor
//=============================================================================
Entity::E... |
/*
* Copyright 2013 <NAME>. All rights reserved.
* License: http://www.opensource.org/licenses/BSD-2-Clause
*/
#include <string>
#include <vector>
#include "common.h"
#include <bgfx.h>
#include <bx/timer.h>
#include <bx/readerwriter.h>
#include "fpumath.h"
#include "imgui/imgui.h"
#include <stdio.h>
#include <st... |
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#include <set>
#include <vector>
#include "IR.hpp"
#include "AST.hpp"
using namespace AST;
using namespace std;
template <class T> bool contains(set<T> &s, T o) {
return s.find(o) != s.end();
}
template <class T, class U> bool contains(m... |
//
// C++ Implementation: bot_util
//
// Description: Basic util functions, mostly bot related
//
//
// Author: <<EMAIL>>
//
//
//
//
#include "cube.h"
#include "bot.h"
// Function code by PMB - Begin
// Random functions begin
// copied from
// http://forums.bots-united.com/showthread.php?t=244&page=1&pp=10&highli... |
// Copyright 2010-2014 Google
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... |
#include <string>
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <time.h>
#include "suffix_tree.h"
#include <algorithm> // std::sort
#include <unordered_map>
#include <deque>
#define ALPH_SIZE 4
#define MAX_ITERATIONS 2500
#define FILENAME "lambda_scramble.f... |
#include "clUtil.h"
std::string cl::getOpenCLErrorName(cl_int errorCode)
{
switch (errorCode)
{
case CL_SUCCESS: return "CL_SUCCESS";
case CL_DEVICE_NOT_FOUND: return "CL_DEVICE_NOT_FOUND";
case CL_DEVICE_NOT_AVAILABLE: ... |
/* Copyright (c) 2000, 2019, 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... |
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "gfxGDIFont.h"
#include "m... |
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
//===-- X86AsmPrinter.cpp - Convert X86 LLVM IR to X86 assembly -----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// extract.cpp: Extract 3D surface of ice-bed layers.
// By <NAME>, July 2016
//
#include <iostream>
#include <cmath>
#include <vector>
using namespace std;
#include "mex.h"
#include "Instances.h"
class TRWSNode {
public:
double *prior;
double *messages[4];
TRWSNode(size_t max_disp) {
... |
/*
* Copyright (c) 2016-2017, the mcl_3dl 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, t... |
#include <PrecompiledHeader.h>
#include "SimpleProfiler.h"
#include "Systems/BoidSystems.h"
#include "libmorton/morton.h"
#include <execution>
#include <algorithm>
#include "GameWorld.h"
#include "ApplicationInfoUI.h"
//#include "ApplicationInfoUI.h"
GridVec BoidMap::GridVecFromPosition(const PositionComponent ... |
/********************************************************************************
* Copyright 2015 The Robotics Group, The <NAME>-<NAME>ler Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in c... |
#include "stdafx.h"
#include "leaf.h"
#include "weather.h"
#include "initinfo.h"
#include <cmath>
#include <algorithm>
#define MINUTESPERDAY (24*60);
using namespace std;
/* LWPeffect adjusts leaf growth for water stress. The functin is defined here. The parameter psi_threshold_bars has two values, one for leaf growth
... |
/*
* Copyright (C) 2005 - 2013 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2013 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.com/>
*
* Copyright (C) 2010 - 2013 ArkCORE <http://www.arkania.net/>
*
* This program is free software; you can ... |
/*
* AUTHOR: <NAME>
* LAST MODIFIED: 15/12/2021
* COPYRIGHT UNDER THE MIT LICENSE
*/
//
// Matrix4 class definition
//
#include "Matrix4.h"
#include <intrin.h>
Matrix4::Matrix4()
: _m{}
{ }
Matrix4::Matrix4(const float* values)
: _m{}
{
uint32_t index = 0;
for (uint32_t e = 0; e < 4; ++e)
{
index =... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during i... |
#include "OpenglNoel.h"
#include "external/imgui/imgui.h"
#include <iostream>
OpenglNoel::OpenglNoel() : GLTools::Window("Solar System"), mSphere(0, 256, 256), mCube(0), mSquare(0), mMouseSet(false), mTextureManager("res/textures") {
mRender3DProgram = std::make_shared<GLTools::Program>("res/shaders/basic3d.vs.... |
// TODO: read config from paramserver
#include <iostream>
#include <vector>
#include "multisense_renderer.h"
#include <zlib.h>
#include <lcm/lcm.h>
#include <bot_core/bot_core.h>
#include <bot_vis/bot_vis.h>
#include <bot_frames/bot_frames.h>
#include <lcmtypes/multisense_images_t.h>
#include "../multisense-glview/j... |
#include <cmath>
#include <cstdio>
#include <cstring>
#if _OPENMP
#include <omp.h>
#endif
#include "AscGrid.h"
#include "CRESTPhysModel.h"
#include "DatedName.h"
static const char *stateStrings[] = {
"SM",
"GW"
};
CRESTPHYSModel::CRESTPHYSModel() {}
CRESTPHYSModel::~CRESTPHYSModel() {}
bool CRESTPHYSModel::... |
//
// c3dMath.cpp
// HelloCpp
//
// Created by wantnon (<NAME>) on 14-1-4.
//
//
#include "c3dMath.h"
float isEqual(float a,float b,float eps){
if(fabsf(a-b)<=eps)return true;
else return false;
}
float maxf(float a,float b){
return a>b?a:b;
}
float minf(float a,float b){
return a<b?a:b;
}
Cc3dMa... |
#include <common/types.hpp>
#include <math/math.hpp>
#include <unit_test/suite.hpp>
using framework::int32;
using framework::uint32;
using framework::math::Vector2f;
using framework::math::Vector3f;
using framework::math::Vector4f;
using framework::math::Vector2d;
using framework::math::Vector3d;
using framework::ma... |
// see LICENSE
//! \author <NAME>, 10984646, <EMAIL>
//! \date Wed Sep 27 14:02:58 2017
//! \file suMain.cpp
//! \brief A collection of methods of the class suMain.
// basic includes
#include <time.h>
// std includes
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <string>
#include <vector>
//... |
/*
This program compresses the MIT-BIH >Arrhythmia database.
*/
#include "BWCoder.h"
#include "TSignal.h"
#include "CommonDef.h"
#include <windows.h>
#include <time.h>
#include <iostream>
#include <data/config.h>
#include <boost/filesystem.hpp>
#define MITDB_SIZE 48
#define DBBEGIN 0
#define CLK_TCK (double)CLOC... |
/************************************************************************************************************************************
Copyright 2017 Autodesk, Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
You ... |
#include <fstream>
#include <cassert>
#include <algorithm>
#include "localgraph.h"
#include "utils.h"
#define assert_msg(x) !(std::cerr << "Assertion failed: " << x << std::endl)
using namespace std;
LocalGraph::LocalGraph() {
// reserve space in index
//index.reserve(10);
}
LocalGraph::~LocalGraph() {
... |
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <algorithm>
#include <math.h>
#include <iomanip>
#include <dirent.h>
#include <sys/stat.h>
#include "mail.h"
#include "io_disp.h"
#include "utils.h"
using namespace std;
struct Errors {
double out_noc;
double out_all;
double avg_noc;
double a... |
/*
* Copyright (C) 2015-2021 Swift Navigation Inc.
* Contact: https://support.swiftnav.com
*
* This source is subject to the license found in the file 'LICENSE' which must
* be be distributed together with this source. All other rights reserved.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY ... |
/* Copyright 2020 iwatake2222
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 writing, soft... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#define GLM_FORCE_SWIZZLE
//#define GLM_FORCE_AVX
#include <glm/glm.hpp>
#include <glm/ext.hpp>
#include <glm/gtx/string_cast.hpp>
#include "io.h"
#include "ogl/PointModel.h"
#include "ogl/Shader.h"
#include "ogl/Plane.h"
#include "ogl/Texture.h"
#include "ogl/ProgramSha... |
/* mpiParallelIO.cpp handles the parallel I/O for Cal-DisKS
* <NAME>, Spring 2020
* for Senior Project at Calvin University.
*/
#include <stdio.h> /* I/O stuff */
#include <stdlib.h> /* calloc, etc. */
#include <mpi.h> /* MPI calls */
#include <string.h> /* strlen() */
#include <stdbool.h> /* bool */
#include <sys... |
/*
Name: <NAME>
*/
#include <iostream>
#include <cstdlib>
#include <string>
#include <fstream>
#include <iomanip>
#include <sstream>
#include <cstring>
#include <stdlib.h>
#include <ctime>
#include <windows.h>
#include <stdio.h>
#include <conio.h>
using namespace std;
//These values were preset to... |
#include "main.h"
#include <cage-core/math.h>
#include <cage-core/entities.h>
#include <cage-core/timer.h>
#include <cage-core/hashString.h>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
namespace
{
void basicFunctionality()
{
CAGE_TESTCASE("basic functionality");
Holder<EntityManager> ... |
int
LTztp
,
B ,WWbXO, WRH3, wiySFIo,
fek , eTWX, b4 ,
Sc ,X1y,
Xjl,//JJ2
wg //Pm
,
N1k ,ibcH/*N*/ ,
//XYhCp
cP , cuZ ,dLAxGB , sP
, VcA ,dJ ,s,/*I*/dSF3 , Y ,//s
MF,h5G , //G
Ayy,
OV0
,Hsef0, wq9FFq
/*o5*/, NWoV, //lx
uuxT ,jDz ; void
f_f0()
{volatile int T5IO
, lBj1y
,E2,B9d ,
NBXKT ,e7B
,K,//... |
/*
Copyright (c) 2020 svm-git
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, distribute, sublic... |
//===- CalyxToHW.cpp - Translate Calyx into HW ----------------------------===//
//
// 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 "time.h"
#include "structs.h"
#include <string.h>
#include <stdio.h>
#include <ios>
#include <iostream>
#include <fstream>
#include <vector>
// #define PPM6
// #define DEBUGMODE
#define DEBUG_X 659
#define DEBUG_Y 815
// #region Some parameters we might want to change
#define DEPTH 5
float AA = 3.0f;
float ... |
#include "Misc.h"
#include <stdio.h> // FILE, fopen, fseek, etc...
#include <thread>
#include <stdlib.h> // atoi, malloc
#include <vector>
#include <map>
#include <condition_variable>
#include <mutex>
#ifdef _WIN32
SOCKET sendSocket = INVALID_SOCKET;
SOCKET recvSocket = INVALID_SOCKET;
#else
int sendSocket = INVALID... |
/**
@file W4DoublesidedStripDetector.cpp
@author <NAME>
@date 2019/12/22
**/
#include "W4DoublesidedStripDetector.hpp"
#include "W4SensitiveDetector.hpp"
#include <iomanip>
#include <iostream>
#include <string>
#include <G4UnitsTable.hh>
#include <G4SystemOfUnits.hh>
#include <G4Element.hh>
#include... |
/*
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2005-2009 Free Software Foundation Europe e.V.
Copyright (C) 2011-2012 Planets Communications B.V.
Copyright (C) 2013-2016 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of... |
/**
* DNS Buffer
*
* Copyright (c) 2014 <NAME>
* All rights reserved.
*
* Developed by: <NAME>
* https://github.com/mnezerka/
* mailto:<EMAIL>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* ... |
#include <gflags/gflags.h>
#include <stddef.h>
#include <stdint.h>
#include <algorithm>
#include <chrono>
#include <map>
#include <memory>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include "ncode/common.h"
#include "ncode/file.h"
#include "ncode/logging.h"
#include "ncode/lp/demand_matri... |
#include "electron_h0_fourier.h"
#include "constants.h"
#include "exceptions.h"
#include "io.h"
#include "particle.h"
#include <cmath>
void ElectronH0Fourier::trimBands(Context &context, const double &minEn,
const double &maxEn) {
std::vector<int> retainBand;
int newNumBands = 0;... |
#include <string.h>
#define GLEW_STATIC
#include<GL/glew.h>
#include<GL/SOIL.h>
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <iostream>
#include <math.h>
#include <sstream>
#define PI 3.14159
using namespa... |
#include "input.hpp"
#include "log.h"
using namespace engine;
InputManager::InputManager()
{
create_mouse_mapping();
create_keyboard_mapping();
}
void InputManager::clear_input()
{
m_updated.clear();
}
void InputManager::gather_input(SDL_Event event)
{
m_updated.push_back(event);
}
bool InputManag... |
/*
* other/level_bi.cpp
*
* Laden von Levels im Original-Lemmings-Format (.LVL)
*
* Als Referenz dient diese Beschreibung des Formats, die im Lemmings File
* Archive zu finden sein sollte:
*
* http://camanis.net/lemmings/files/docs/lix_lvl_file_format.txt
*
* Many thanks to the active Lemmings community! Wi... |
/*
* Copyright (c) 2020-2022, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2021, NAVER Corp. Authored by CLOVA.
*
* 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
*
* h... |
/*
* Copyright 2020-present Ksyun
*
* 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... |
#include <gtest/gtest.h>
#include <string>
#include "json.h"
using namespace json;
using namespace std;
Json parseOk(const string& strJson) {
string errMsg;
Json json = Json::parse(strJson, errMsg);
EXPECT_EQ(errMsg, "");
return json;
}
#define testError(expect, strJson) \
do { ... |
//
// Created by FLXR on 3/1/2019.
//
#include "test3d.hpp"
#include <xe/gfx/renderer.hpp>
#include <xe/resources/texturemanager.hpp>
#include <xe/ui/imgui/imgui.h>
using namespace xe;
Test3D::Test3D() {
const float width = app.getWindowSize().x;
const float height = app.getWindowSize().y;
camera = new Camera... |
#include "driver.hpp"
#include <cmath>
#include <fstream>
#include <iostream>
#include <omp.h>
#include <sstream>
#include <string>
#include<bits/stdc++.h>
#include"utils.hpp"
using namespace std;
void proteinSampleRun(string refFile, string queFile, string out_file){
long long int total_cells = 0;
vector<string>... |
// See LICENSE.md
#include <cassert>
#include "bignum.h"
void test_bignum()
{
/* test empty constructor */
bignum b1;
assert(b1.num_limbs() == 1);
assert(b1.limb_at(0) == 0);
/* test integral constructor */
bignum b2(1);
assert(b2.num_limbs() == 1);
assert(b2.limb_at(0) == 1);
/* test array constructor */... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.