text stringlengths 5.71k 33.7k |
|---|
#include "environment.hpp"
#include "exception.hpp"
#include "libc_common.hpp"
#include <vector>
#include <cstdlib>
#include <sstream>
#include <ctime>
using std::string;
using std::vector;
using std::stringstream;
/* ==============================================
* Util functions
* ===============... |
// this program makes a text file and put every data sets in one folder with proper numbering
// fileoperation.cpp is comparative program
#include <fstream>
#include <iostream>
#include <string>
#include <dirent.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sstream>
#include <opencv2/... |
/*----------------------------------------------------------------
Raven Library Source Code
Copyright (c) 2008-2020 the Raven Development Team
----------------------------------------------------------------*/
#include "RavenInclude.h"
/*****************************************************************
Forci... |
/*!
\author <NAME>
\author <NAME>
Copyright (C) 2011 <NAME> & <NAME>
\file moonmd_interface.cpp
\brief Interface between continuum flow solver and stochastic particle
population balance solver
Licence:
This file is free software; you can redistribute it and/or
modify it under ... |
#include <SceneParser.hpp>
#include "Tokenizer.hpp"
#include <sstream>
#include <set>
#include <Eigen/Geometry>
#include <math.h>
CSceneParser::CSceneParser(ISceneGenerator& generator) :
m_generator(generator)
{
//Create unit transform
m_transformStack.push(Matrix4d::Identity());
}
bool CSceneParser::Pa... |
// !!! Change: this is a new file
#include <cstdio>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
#include "getopt.h"
#include "km.h"
using namespace std;
typedef vector<float> Vector;
typedef vector<Vector> Vector2D;
typedef vector<V... |
// Copyright (c) 2019 The Bitcoin SV developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "orphan_txns.h"
#include "policy/policy.h"
#include "config.h"
COrphanTxns::COrphanTxns(
size_t maxExtraTxnsForCompact... |
#include <cuda_runtime.h>
#include <iostream>
#include <string>
#include <memory.h>
#include <algorithm>
#include <chrono>
#include <iomanip>
#include <map>
#include <unistd.h>
#include <assert.h>
#include "nccl.h"
#include "mpi.h"
#include "dgc.h"
#include "common.h"
#include "data.h"
extern float data[CHUNKSIZE];
... |
#include "llvm/ADT/APInt.h"
#include "llvm/Bitcode/BitcodeWriter.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Constant.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/IR/Value.h... |
int ptZGG
,YhGm, /*e1*/p9j ,/**/sreej
, wuI , W6,
vpDQ ,Buq
,//mO
ehz ,NGdI, EP
,/*P*/ H3xG6j
//F
,LMWl , y0
,
QYf, I3//R2
, PWAN//SnK
, gbpR ,f ,/*XDJ*/ViR,
X, XjM , mT9y1 ,KE ,xaL
/*8nP*/,db ,
uc,
Kmmb, //Ed
Yl, sjA ;
void
f_f0() {
{int oycW; volatile int
aPv
, p, D10,/*I*/EC//tD
,... |
/*****************************************************************/
/* NAME: <NAME> */
/* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */
/* FILE: ShoreBroker.cpp */
/* DATE: Dec 16th 2011 ... |
#include "sim.hpp"
#include <tuple>
#include <numbers>
#include <fmt/format.h>
point_particle_simulator::point_particle_simulator()
: mt(rd()),
delta_dist(-1.0, 1.0),
window(sf::VideoMode(width, height), "Particle simulator"),
v(sf::FloatRect(0, 0, width, height)),
approx_fps(0.f),
zoom_factor(1.0f)
{
if (... |
/**********************************************************************
This source file is a part of Demi3D
__ ___ __ __ __
| \|_ |\/|| _)| \
|__/|__| || __)|__/
Copyright (c) 2013-2014 Demi team
https://github.com/wangyanxing/Demi3D
Released under the MIT License
https://github.com/wangyanxing/De... |
// Copyright <NAME>, Radboud University 2012.
// 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)
#include "M6Lib.h"
#include <set>
#include <cmath>
#include <numeric>
#include <boost/static_asser... |
/* LICENSE:
Copyright (c) Members of the EGEE Collaboration. 2010.
See http://www.eu-egee.org/partners/ for details on the copyright
holders.
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... |
#include <chrono>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <getopt.h> // getopt
#include <unistd.h> // getopt_long
#include <assert.h>
#include "sort.h"
int tmp0 = 0;
omem tmp1;
omem tmp2;
omem tmp3;
template <int s> struct _elt {};
template <> struct _... |
/*
* Copyright (C) 2018 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUT... |
/*****************************************************************************/
/* */
/* (C) Copyright 1995-1997 <NAME> */
/* Portions (C) Copyright 1999 <NAME> */
/* ... |
/*
* MIT License
* Copyright (c) 2019 <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, merg... |
#include "windowed_game_runner.h"
#include <ctime>
const int SCREEN_WIDTH = 800;
const int SCREEN_HEIGHT = 800;
WindowedGameRunner::WindowedGameRunner() {
if (SDL_Init(SDL_INIT_VIDEO) < 0)
{
printf("SDL could not initialize! SDL_Error: %s\n", SDL_GetError());
return;
}
window_ = SDL_CreateWindow("... |
/**
* \file fea/tetrahedral_mesh.cpp
* This file is part of SANM, a symbolic asymptotic numerical solver.
*/
#include "fea/tetrahedral_mesh.h"
#include "fea/mesh_template.h"
#include <Eigen/Dense>
#include <cerrno>
#include <cstdio>
#include <cstring>
#include <fstream>
using namespace fea;
INST_MESH_IO_TRANS(3... |
#include "wheelchair.h"
bool manual_drive = false; // Variable changes between joystick and auto drive
double curr_yaw, curr_velS; // Variable that contains current relative angle
double encode... |
#include "camera_extrinsics.hpp"
#include <fstream>
#include <experimental/filesystem>
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/calib3d.hpp>
#include <open3d/pipelines/registration/Registration.h>
#include <open3d/pipelines/registration/ColoredICP.h>
#include <open3d/utility/Cons... |
//
// Simu5G
//
// Authors: <NAME>, <NAME>, <NAME> (University of Pisa)
//
// This file is part of a software released under the license included in file
// "license.pdf". Please read LICENSE and README files before using it.
// The above files and the present reference are part of the software itself,... |
#include <stdlib.h>
#include <assert.h>
#include <fstream>
#include <sys/time.h>
#include <vector>
#include <queue>
#include <getopt.h>
#include <string.h>
#ifdef _OPENMP
#include <omp.h>
#endif
bool verbose, debug, random_start;
#define MAX_LEVELS 65536
#include "util.h"
#include "graph.h"
#include "bcc_bfs.h"
#in... |
#include <boost/algorithm/string/predicate.hpp>
using boost::starts_with;
#include <algorithm>
#include <cassert>
#include <chrono>
#include <ctime>
#include <iostream>
#include <iterator>
#include <limits>
#include <map>
#include <set>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vect... |
// Copyright 2017 Google 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 may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... |
/* -------------------------------------------------------------------------
*
* contrib/sepgsql/selinux.c
*
* Interactions between userspace and selinux in kernelspace,
* using libselinux api.
*
* Copyright (c) 2010-2012, PostgreSQL Global Development Group
*
* ------------------------------------------------... |
/***************************************************************************
* tests/containers/ppq/test_ppq_arrays_and_iterator.cpp
*
* Part of the STXXL. See http://stxxl.sourceforge.net
*
* Copyright (C) 2014 <NAME> <<EMAIL>>
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompan... |
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "application/impl/app_configuration_impl.hpp"
#include <iostream>
#include <rapidjson/document.h>
#include <rapidjson/filereadstream.h>
#include <boost/program_options.hpp>
#include "common/hexutil.hpp"
#in... |
#include "Planner3D.h"
#include <chrono>
#include <thread>
#include <iomanip>
#include <sstream>
Planner3D::Planner3D() : nh("~") {
ROS_INFO_STREAM("Planner3D::Planner3D() - start");
// Planning parameters
planningTimeInitial = readParameter(nh, TAG, "planning_time_initial", 5);
planningTimeSecondary ... |
//===-- typecheck/CheckExpr.cpp ------------------------------- -*- C++ -*-===//
//
// This file is distributed under the MIT license. See LICENSE.txt for details.
//
// Copyright (C) 2009-2010, <NAME>
//
//===----------------------------------------------------------------------===//
#include "Scope.h"
#include "Type... |
/*
NHB_AD7794.cpp - Library for using the AD7794 ADC
Original created by <NAME>, December 28, 2010
This file is part of the NHB_AD7794 library.
MIT License
Copyright (C) 2010,2019 <NAME>, NHBSystems
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and asso... |
#include "SpirvCompiler.h"
#include "platform/DynLibLoader.h"
#include <StandAlone/ResourceLimits.h>
#include <StandAlone/SharedLibCombined/SharedLibCombined.h>
#include <iostream>
#include <mutex>
EShLanguage FindLanguage(const std::string& filename);
EShLanguage LangFromStage(ShaderStageType type);
namespace {
s... |
//===--- CGDecl.cpp - Emit LLVM Code for declarations ---------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
* Classes for handling storage to flash, and retreival of data from flash for sending
* FlashHandler simplifies writing to flash. The program may always use storeWord() to
* store data; update(), if called repeatedly, handles the actual storage and organization
* in flash, including avoiding conflict with B... |
// Copyright 2021 The GPGMM 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 agreed ... |
#include "upd.h"
#include <cstring>
#include <esp_log.h>
#include "config.h"
#include "common/util.h"
#include "esp_system.h"
#include "sd.h"
#include "uart.h"
#include "common/slots.h"
#include <FreeRTOS.h>
#include <task.h>
#include <esp_partition.h>
#include <esp_ota_ops.h>
#define USTATE_NOT_READ 0xff
#define UST... |
#include <algorithm>
#include <cmath>
#include "test.h"
#include "transducer.h"
void testForwardBackward(
const std::vector<float>& emissions,
const std::vector<float>& predictions,
const std::vector<int>& labels,
const std::vector<int>& inputLengths,
const std::vector<int>& labelLengths,
int ... |
#include <algorithm>
#include <sstream>
#include "Application.hpp"
#include "q3bsp/Q3BspMap.hpp"
#include "q3bsp/Q3BspPatch.hpp"
#include "renderer/OpenGLHeaders.hpp"
#include "renderer/Texture.hpp"
#include "Frustum.hpp"
#include "renderer/CameraDirector.hpp"
#include "renderer/Math.hpp"
extern Application g_applicat... |
//===------------------ llvm-opt-report/OptReport.cpp ---------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// Copyright (c) the JPEG XL Project Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include <stdio.h>
#include <string.h>
#include <fstream>
#include <iostream>
#include <unordered_map>
#include "lib/jxl/base/file_io.h"
#inclu... |
/***************************************************************************************
Author: <NAME>
Program Name: point_cloud_segmenter.cc
Brief:
Date: MAR 1 2018
***************************************************************************************/
#include "segmenter/point_cloud_segmenter.h"
#include "s... |
#include "stdafx.h"
#include "GameTaskManager.h"
#include "alife_registry_wrappers.h"
#include "ui/xrUIXmlParser.h"
#include "GameTask.h"
#include "Level.h"
#include "map_manager.h"
#include "map_location.h"
#include "HUDManager.h"
#include "actor.h"
#include "UIGameSP.h"
#include "ui/UIPDAWnd.h"
#include "encyclopedia... |
//===--- CompilationGraph.cpp - The LLVM Compiler Driver --------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open
// Source License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include <vlog/materialization.h>
#include <vlog/concepts.h>
#include <vlog/edb.h>
#include <vlog/qsqr.h>
#include <trident/model/table.h>
#include <fstream>
#include <string>
#if defined(_WIN32)
#else
#include <signal.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/wait.h>
#endif
void Materialization::... |
/*
* Copyright (c) 2016 <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... |
#include<iostream>
#include<ctype.h>
#include<string>
#include<string.h>
#include<cstring>
#include<stdlib.h>
#include<limits>
using namespace std;
void followfirst(char , int , int); //Function to calculate the Follow of a symbol, from the First of another symbol
void First(char , int , int); //Function to... |
// Copyright 2017 The Fuchsia 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 <lib/edid/edid.h>
#include <math.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <iterator>
#include <memory>
#include <f... |
/*
ccs811.cpp - Library for the CCS811 digital gas sensor for monitoring indoor air quality from ams.
Created by <NAME> 2017 Dec 11
*/
#include <Arduino.h>
#include <Wire.h>
#include "ccs811.h"
// Timings
#define CCS811_WAIT_AFTER_RESET_US 2000 // The CCS811 needs a wait after reset
#define CCS811_WAIT_AFT... |
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
*
* This program 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 Fre... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <cassert>
#include <chrono>
#include <iostream>
#include <memory>
#include <vector>
#include <random>
namespace gl {
inline const char *GLGetErrorString(GLenum error) {
switch (error) {
case GL_NO_ERROR:
return "GL_NO_ERROR";
case GL_INVALID_ENU... |
/*
* Copyright (c) 2016 GitHub, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
#include "parallel_optimized_v2.h"
#include "engines/naive_converter.h"
#include "engine.h"
#include "nmms.h"
#include "system.h"
#include "state.h"
#include "log.h"
namespace {
const Vec3 unitX(1, 0, 0);
const Vec3 unitY(0, 1, 0);
const Vec3 unitZ(0, 0, 1);
void naive_move(const Vec3& destination, Vec3& position, ... |
/******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... |
/* -*- c-file-style: "bsd"; c-basic-offset: 2; indent-tabs-mode: nil -*- */
#include "calculateDensities.hpp"
void calculateDensities(LSMSSystemParameters &lsms, int iatom, int is, int ie, int nume, Complex energy, Complex dele1,
Matrix<Complex> &dos,Matrix<Complex> &dosck,Array3d<Complex> &g... |
/* Very simple OculusSDK OpenGL usage example updated to the Oculus SDK 0.6.0 and OpenGL 4.
*
* This program assumes that you have GLEW and GLFW's include and lib directories in your respective
* include and library paths (set this from the Property Manager in Visual Studio).
*
* The sample assumes that you have ... |
/* 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,
*... |
// Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
#include "pokemaze/levels/Level3.hpp"
#include "pokemaze/util/io/IOUtils.hpp"
#include "pokemaze/engine/Collisions.hpp"
#include "pokemaze/models/characters/Charizard.hpp"
#include "pokemaze/models/objects/Wall.hpp"
#include "pokemaze/models/objects/Tree.hpp"
#include "pokemaze/models/scene/Floor.hpp"
#include "pokema... |
// Copyright 2019 The Dawn 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 agreed t... |
#include "Etterna/Globals/global.h"
#include "MovieTexture_FFMpeg.h"
#include "RageUtil/Graphics/RageDisplay.h"
#include "Core/Services/Locator.hpp"
#include "RageUtil/Utils/RageUtil.h"
#include "RageUtil/File/RageFile.h"
#include "RageUtil/Graphics/RageSurface.h"
static void
FixLilEndian()
{
static bool Initialized... |
/* Authors: <NAME> and <NAME> */
/*
* Copyright (c) 2019, The 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:
* * Redistributions of source code ... |
#include "hwacc/scratchpad_memory.hh"
#include "base/random.hh"
#include "base/trace.hh"
#include "mem/packet.hh"
#include "mem/packet_access.hh"
#include "sim/system.hh"
#include "debug/Drain.hh"
#include <stdio.h>
#include <stdlib.h>
#include <iomanip>
using namespace std;
/****************************************... |
#include <Windows.h>
#include <objidl.h>
#include <Psapi.h>
#include "shlobj.h"
#include "Shlwapi.h"
#pragma comment(lib, "Shlwapi.lib")
#include "common.h"
using namespace std;
string int_to_str(int num, bool is_hex /*= false*/) {
cout.clear();
stringstream out;
out << (is_hex ? hex : dec) << num;
string retur... |
// Copyright information can be found in the file named COPYING
// located in the root directory of this distribution.
#include "platformMac/macCarbFont.h"
#include "platformMac/platformMacCarb.h"
#include "math/mRect.h"
#include "console/console.h"
#include "core/strings/unicode.h"
#include "core/stringTable.h"
#incl... |
#include <iostream>
#include <vector>
#include <cmath>
#include <chrono>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/opencv.hpp>
#include "GPIOlib.h"
#define _DEBUG
using namespace cv;
using namespace GPIO;
typedef std::chrono::time_point<std::chrono::system_clock> pid_time;
co... |
/*----------------------------------------------------------------------------*\
|
| NVIDIA PhysX Technology
|
| www.nvidia.com
|
\*----------------------------------------------------------------------------*/
//Test Cloth Implementation
#if defined WIN32
#define WIN32_LEAN_AND_MEAN
#define NOMINM... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <quda.h>
#include <host_utils.h>
#include <command_line_params.h>
#include <gauge_field.h>
#include "misc.h"
#include "gauge_force_reference.h"
#include "gauge_force_quda.h"
#include <sys/time.h>
#include <gtest/gtest.h>
static QudaGaugeFieldOrder ga... |
#include "SevenSegmentTM1637.h"
SevenSegmentTM1637::SevenSegmentTM1637(uint8_t pinClk, uint8_t pinDIO) :
_pinClk(pinClk),
_pinDIO(pinDIO)
{
// setup pins
pinAsOutput(_pinClk);
pinAsOutput(_pinDIO);
digitalHigh(_pinClk);
digitalHigh(_pinDIO);
// setup defaults
setCursor(0, TM1637_DEFAULT_CURSOR_POS... |
#include <iostream>
#include <fstream>
#include <sstream>
#include <random>
#include <vector>
#include "../vaccine_abm/individual.h"
#include "../vaccine_abm/households.h"
#include "../vaccine_abm/ibm_simulation.h"
#include <sys/stat.h>
#include <sys/types.h>
#include <chrono>
#include <algorithm>
#include "../nlohmann... |
#include <AnalyzerChannelData.h>
#include <AnalyzerHelpers.h>
#include <algorithm>
#include "USBAnalyzer.h"
#include "USBAnalyzerResults.h"
#include "USBTypes.h"
std::string GetPIDName(USB_PID pid)
{
switch (pid)
{
case PID_IN: return "IN";
case PID_OUT: return "OUT";
case PID_SOF: return "SOF... |
/*
Copyright (c) 2012, The Smith-Kettlewell Eye Research Institute
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... |
/*! @file
@brief ファンクションキーウィンドウ
@author <NAME>
*/
/*
Copyright (C) 1998-2001, <NAME>
Copyright (C) 2001, genta
Copyright (C) 2002, YAZAKI, MIK, Moca
Copyright (C) 2003, MIK, KEITA
Copyright (C) 2004, novice
Copyright (C) 2006, aroka, ryoji
Copyright (C) 2007, ryoji
Copyright (C) 2009, ryoji
This source co... |
#include <unistd.h>
#include <fstream>
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <queue>
#include <pcl/common/time.h>
#include <pcl/conversions.h>
#include <pcl/filters/filter.h>
#include <pcl/io/io.h>
#include <pcl/io/op... |
/*
UW- Madison CS 559 - Fall Semester
By <NAME>
main for screenSaver project
*/
#include <vector>
#include <iostream>
#include <array>
#include <gl/glew.h>
#include <gl/freeglut.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#define _USE_MATH_DEFINES
#include <ma... |
#include "PCH.hpp"
#include "Mesh.h"
#define BIT(bit) (1<<(bit))
#define IS_SET(flaga,bit) (((flaga) & (bit)) != 0)
#define IS_CLEAR(flaga,bit) (((flaga) & (bit)) == 0)
#define IS_ALL_SET(flaga,bity) (((flaga) & (bity)) == (bity))
#define SET_BIT(flaga,bit) ((flaga) |= (bit))
#define CLEAR_BIT(flaga,bit) ((flaga) &= ~... |
/* colors.cpp: functions for color conversions
Copyright (C) 2010, Project Pluto
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later versio... |
/*
* Copyright (C) 2018 by Author: Aroudj, Samir
* TU Darmstadt - Graphics, Capture and Massively Parallel Computing
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD 3-Clause license. See the License.txt File for details.
*/
#include <fstream>
#include "Graphics/Pinh... |
#include "mtcnn.h"
bool CompareBBox(const FaceInfo & a, const FaceInfo & b) {
return a.bbox.score > b.bbox.score;
}
float MTCNN::IoU(float xmin, float ymin, float xmax, float ymax,
float xmin_, float ymin_, float xmax_, float ymax_, bool is_iom) {
float iw = std::min(xmax, xmax_) - std::max(xmin, xmin_) + 1;... |
/*
* place_constraints.cpp
*
* Created on: Mar. 1, 2021
* Author: khalid88
*
* This file contains routines that help with making sure floorplanning constraints are respected throughout
* the placement stage of VPR.
*/
#include "globals.h"
#include "place_constraints.h"
#include "place_util.h"
/*checks... |
#include <RcppArmadillo.h>
#include <RcppArmadilloExtensions/sample.h>
using namespace Rcpp;
using namespace arma;
// [[Rcpp::depends("RcppArmadillo")]]
// [[Rcpp::plugins(cpp11)]]
std::vector<double> custom_Pow( const std::vector<double> base,
const std::vector<double> expo )
{
// ... |
#include <qtworld.h>
N::SceneTexture:: SceneTexture ( void )
: SceneNode ( Scene::Texture )
, original ( NULL )
, textureID ( -1 )
, textureOp ( GL_TEXTURE_2D )
, LOD ( false ... |
#include "tile_editor.h"
#include "pugixml.hpp"
#include <iostream>
std::vector <Tile> *levelOne_tilemap_ptr;
Texture2D* levelOne_tilemap_texture_ptr;
std::uint32_t levelOne_tilewidth;
std::uint32_t levelOne_tileheight;
TileEditor::TileEditor()
{
//tile placement area
m_tiles_startx = 250;
m_tiles_starty = 200;
... |
#include "include/movement.h"
#include "visualization_msgs/Marker.h"
#include <algorithm>
#include "include/run_yolo.h"
#include <std_msgs/Bool.h>
#include "geometry_msgs/PointStamped.h"
#include "offb/obj.h"
using namespace std;
enum flying_step
{
IDLE,
TO2Hover,
Hover,
Prep,
Starto,
Move2wp... |
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/internet-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/applications-module.h"
#include "ns3/mobility-module.h"
#include "ns3/netanim-module.h"
#include "ns3/network-module.h"
#include "ns3/csma-module.h"
#include "ns3/ipv4-globa... |
#include "elim_tree.h"
Elimination_Tree::Elimination_Tree(){};
Elimination_Tree::Elimination_Tree(int n){
this->cluster_inner.resize(n);
this->cluster_leaves.resize(n);
this->children_inner.resize(n);
this->children_leaves.resize(n);
this->parents_inner.... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/frame/csp/source_list_directive.h"
#include "third_party/blink/renderer/core/frame/csp/content_security_policy.... |
#include "head_pose_estimation.hpp"
#include <opencv2/calib3d/calib3d.hpp>
using namespace dlib;
using namespace std;
using namespace cv;
inline Point2f toCv(const dlib::point& p) {
return Point2f(p.x(), p.y());
}
HeadPoseEstimation::HeadPoseEstimation(const string& face_detection_model, int mod,
float fx, ... |
/****************************************************************************//*
* Copyright (C) 2021 <NAME>
*
* Creative Commons Legal Code
*
* CC0 1.0 Universal
*
* CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
* LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
*... |
#include "./pxtnPulse_Noise.h"
#include "./pxtn.h"
#include "./pxtnMem.h"
void pxtnPulse_Noise::set_smp_num_44k(int32_t num) { _smp_num_44k = num; }
int32_t pxtnPulse_Noise::get_unit_num() const { return _unit_num; }
int32_t pxtnPulse_Noise::get_smp_num_44k() const { return _smp_num_44k; }
float pxtnPulse_Noise::... |
#include "FWCore/Framework/interface/ModuleFactory.h"
#include "FWCore/Framework/interface/ESProducer.h"
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "DataFormats/TrackerCommon/interface/TrackerDetSide.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"
#include "RecoTracker/TkDe... |
/*compile with -lncurses option*/
/*-------------------------------------------------------------------*
* HEADER FILES *
*--------------------------------------------------------------------*/
#include <iostream>
#include <curses.h>
#include <cstdlib>
#include <un... |
/*
* Created on: 14/09/2015 by Bruno
* A framework for the independent set problem
*
* Modified on: 08/09/2017 by Peng
* Add implementation of simulated annealing and naive greedy algorithm
* Add implementation of Bron-Kerbosch algorithm
*/
#include "Graph.h"
#include "ArgPack.h"
#include "InitEr... |
#include "parametrization_utils.h"
#include <igl/adjacency_matrix.h>
#include <igl/arap.h>
#include <igl/avg_edge_length.h>
#include <igl/boundary_loop.h>
#include <igl/colon.h>
#include <igl/harmonic.h>
#include <igl/edge_topology.h>
#include <igl/grad.h>
#include <igl/slice_into.h>
#include <igl/map_vertices_to_circ... |
/**
@file GameProfile.cpp
(c)2006 Palestar Inc
@author <NAME> @date 10/18/2006 8:35:33 PM
*/
#include "GameProfile.h"
#include "Debug/Assert.h"
#include "Standard/Bits.h"
//---------------------------------------------------------------------------------------------------
struct BadgeRequirement
{
Statistics ... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/audio/mac/audio_output_mac.h"
#include <CoreServices/CoreServices.h>
#include "base/basictypes.h"
#include "base/debug/trace_event.h... |
// ==========================================================================
// gustaf_mate_joining
// ==========================================================================
// Copyright (c) 2006-2018, <NAME>, FU Berlin
// All rights reserved.
//
// Redistribution and use in source ... |
/**
* This work belongs to the Star Tracker project at UCSB.
* Copyright 2010 <NAME>
* Copyright 2010 <NAME>
* Copyright 2012 <NAME>
* This work is licensed under the Apache License Version 2.0,
* subject to all terms as reproduced in the included LICENSE file.
*/
#include "detector.h"
#include <cstdio>
#in... |
// We use 4-character tabstops, so IN VIM: <esc>:set ts=4
// ...that's: ESCAPE key, colon key, then "s-e-t SPACE key t-s-=-4"
/*
AdaEncoder.cpp - A library for reading from Lady Ada's or
Sparkfun's rotary encoder.
Copyright 2011 <NAME> (aka, "GreyGnome"), except for the code at the end marked
"The following ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.