text stringlengths 8.71k 38.4k |
|---|
// STL
#include <cstdlib>
#include <iostream>
// GLEW
#include <GL/glew.h>
// GLUT
#include <GL/freeglut.h>
// GLM
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/matrix_transform.hpp>
// Internal
#include "Grid.hpp"
#define GL_CHECK_ERRORS assert(glGetError() == GL_NO_ERROR)
// set screen di... |
//------------------------------------------------------------------------------
/// @file
/// @brief HPCAnswer.hpp の実装 (解答記述用ファイル)
/// @author ハル研究所プログラミングコンテスト実行委員会
///
/// @copyright Copyright (c) 2015 HAL Laboratory, Inc.
/// @attention このファイルの利用は、同梱のREADMEにある
/// 利用条件に従ってください
//----------------... |
#include "AliAnalysisTaskStrangenessLifetimes.h"
#include <Riostream.h>
#include <TChain.h>
#include <TFile.h>
#include <TH1D.h>
#include <TH2D.h>
#include <TList.h>
#include <TMath.h>
#include "AliAnalysisManager.h"
#include "AliESDEvent.h"
#include "AliESDtrack.h"
#include "AliExternalTrackParam.h"
#include "AliInp... |
// Functions for the <see cref="OldPia"/> class - parent of all methods
// using pia tables in the calculation of a Social Security benefit.
// $Id: oldpia.cpp 1.36 2011/08/01 11:38:35EDT 044579 Development $
#include <cmath> // for floor
#include <utility> // for rel_ops
#include "OldPia.h"
#include "date... |
#include "MicroBunkerAttackSquad.h"
#include "Micro.h"
#include "InformationManager.h"
#include "CombatCommander.h"
#include "MathUtil.h"
#include "PathFinding.h"
const double pi = 3.14159265358979323846;
namespace { auto & bwemMap = BWEM::Map::Instance(); }
namespace { auto & bwebMap = BWEB::Map::Instance(); }
usin... |
#include "BulletModel.h"
#include "ConfigurationSpace/Cfg.h"
#include "Geometry/Bodies/Body.h"
#include "Geometry/Bodies/Connection.h"
#include "Geometry/Bodies/MultiBody.h"
#include "Geometry/GMSPolyhedron.h"
#include "MPProblem/Robot/Actuator.h"
#include "MPProblem/Robot/Robot.h"
#include "Simulator/Conversions.h"
... |
/// Register/Stack allocation class definition.
///
/// @file PlnDataAllocator.cpp
/// @copyright 2017-2021 <NAME>
#include <iostream>
#include <stdlib.h>
#include <limits.h>
#include <boost/assert.hpp>
#include "PlnDataAllocator.h"
#include "PlnConstants.h"
using namespace std;
PlnDataAllocator::PlnDataAllocator(i... |
/*-----------------------------------------------------------------------
<NAME> 2017 - 2020
http://trederia.blogspot.com
crogine - Zlib license.
This software is provided 'as-is', without any express or
implied warranty.In no event will the authors be held
liable for any damages arising from the use of this softwar... |
/*
* Copyright 2002 - <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 2, or (at your option)
* any later version.
*
* This program is distributed in the... |
/*
Copyright (c) 2020 <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, distribute, subl... |
/*
* Program to implement a SAT solver based on Conflict Driven Clause Learning
* with non-chronological backtracking <NAME> CS15BTECH11036
*/
#include <algorithm>
#include <fstream>
#include <cmath>
#include <iostream>
#include <random>
#include <vector>
#include <unistd.h>
#include <iostream>
#includ... |
#include "garment_boundaries.h"
#include "connectedSubmesh.h"
#include "../adjacency.h"
#include "dijkstra.h"
#include "remesh.h"
#include <array>
#include <igl/remove_unreferenced.h>
#include <igl/writeOFF.h>
#include <igl/adjacency_list.h>
#include <igl/cut_mesh.h>
#include <igl/facet_components.h>
#include <igl/b... |
// Include VCL library
#include "vcl/vcl.hpp"
// Include common part for exercises
#include "main/helper_scene/helper_scene.hpp"
// Include exercises
#include "scenes/scenes.hpp"
// for CL
#include "main/gl_interop.h"
#if defined(__APPLE__) || defined(__MACOSX)
#include <OpenCL/opencl.h>
#include <OpenGL/OpenGL.h>
... |
/*
SIN Toolchain
Copyright 2019 <NAME>
Allocate.cpp
Contains the various functions to allocate data in the SIN compiler. Local and global variables use their own functions, as do global constants.
Dynamic memory, since it allocates a pointer to dynamic memory in the appropriate scope, is handled in local/global alloc... |
/*
** SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
** Copyright (C) [dates of first publication] Silicon Graphics, Inc.
** All Rights Reserved.
**
** Permission is hereby granted, free of charge, to any person obtaining a copy
** of this software and associated documentation files (the "Software"), to deal... |
#include <iostream>
#include "stream.h"
#include "streamcharsource.h"
#include "exp.h"
#include <sstream>
#ifndef YAML_PREFETCH_SIZE
#define YAML_PREFETCH_SIZE 8192
//#define YAML_PREFETCH_SIZE 1024
#endif
#define S_ARRAY_SIZE(A) (sizeof(A) / sizeof(*(A)))
#define S_ARRAY_END(A) ((A) + S_ARRAY_SIZE(A))
#define lik... |
// <NAME>, 2012
#include "Offline/Mu2eG4/inc/constructExtMonFNAL.hh"
#include <iostream>
#include <iterator>
#include <algorithm>
#include <cmath>
#include "Geant4/G4Color.hh"
#include "Geant4/G4RotationMatrix.hh"
#include "Geant4/G4LogicalVolume.hh"
#include "Geant4/G4ExtrudedSolid.hh"
#include "Geant4/G4Trap.hh"
#... |
//===- FileCheck.cpp - Check that File's Contents match what is expected --===//
//
// 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
//
//===---------------------------... |
/*
Copyright ©1994-1996, <NAME>
All rights reserved.
File: CAvaraGame.c
Created: Sunday, November 20, 1994, 19:09
Modified: Tuesday, September 17, 1996, 03:22
*/
#define MAINAVARAGAME
/*
#define TIMING_GRAIN 4
#define MAX_ADVANCE (3*TIMING_GRAIN)
#define MIN_AVDVANCE (TIMING_GRAIN/2)
#defi... |
/*
* Copyright (C) 2019 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... |
/** This is free and unencumbered software released into the public domain.
The authors of ISIS do not claim copyright on the contents of this file.
For more details about the LICENSE terms and the AUTHORS, you will
find files of those names at the top level of this repository. **/
/* SPDX-License-Identifier: CC0-1.0... |
/*
Hybrid suffix-array builder, written by <NAME> and <NAME>,
distributed under the Plan 9 license, which reads in part
3.3 With respect to Your distribution of Licensed Software (or any
portion thereof), You must include the following information in a
conspicuous location governing such distribution (e.g., a separate... |
// =================================================================================================
// ADOBE SYSTEMS INCORPORATED
// Copyright 2006 Adobe Systems Incorporated
// All Rights Reserved
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
// of the Adobe lic... |
/*
Copyright (C) 2009-2010 ProFUSION embedded systems
Copyright (C) 2009-2010 Samsung Electronics
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of t... |
/*
* See header file for a description of this class.
*
* \author <NAME> - INFN Torino
*
* threadsafe version (//-) oct/nov 2014 - WATWanAbdullah -ncpp-um-my
*
*/
#include <DQM/DTMonitorClient/src/DTResolutionAnalysisTest.h>
// Framework
#include <FWCore/Framework/interface/Event.h>
#include <FWCore/Framew... |
/* Initial Handshake using Flush+Reload between Sender & Receiver Adapted from "https://github.com/yshalabi/covert-channel-tutorial".
Subsequent Streamline Attack based on code written by <NAME>, Georgia Tech.
Copyright (C) 2020, <NAME>
*/
#include "utils.hh" //Header for Streamline defines.
#include "fr_util.hh... |
#include <iostream>
#include <vector>
#include <sstream> // std::stringstream
#include <array>
#include <unordered_map>
#include <fstream>
using namespace std;
// Based on N. Loyfer Pattern algorithm
string TAB = "\t";
int MAX_PAT_LEN = 300;
struct CpG_record
{
string next_cpg;
int index;
CpG_record(){}
... |
/**
* @file
* @date 2017/5/21
*/
#include <gtest/gtest.h>
#include <Moe.Core/StringUtils.hpp>
using namespace std;
using namespace moe;
using namespace StringUtils;
TEST(StringUtils, ToLowerUpper)
{
EXPECT_EQ('1', ToLower('1'));
EXPECT_EQ('a', ToLower('a'));
EXPECT_EQ('a', ToLower('A'));
EXPECT_E... |
#include "burner.h"
#include "png.h"
#define PNG_SIG_CHECK_BYTES (8)
void img_free(IMAGE* img)
{
free(img->rowptr);
img->rowptr = NULL;
if (img->flags & IMG_FREE) {
if (img->bmpbits) {
free(img->bmpbits);
img->bmpbits = NULL;
}
}
}
INT32 img_alloc(IMAGE* img)
{
img->flags = 0;
img->rowbytes = (... |
/*
WifiManager.cpp - Managing WiFi and OTA
Copyright (C) 2020 - 2022 <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... |
// Copyright 2006 Google Inc. All Rights Reserved.
// Author: nsanders, menderico
// 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
// Unl... |
#include <string>
#include "imgui.h"
#include "gui.h"
#include "core/vec3.h"
#include "renderer/renderer.h"
#include "glm/glm.hpp"
#include "glm/gtc/type_ptr.hpp"
#include "glm/gtx/transform.hpp"
const std::string GUI::showpath_vertex_shader_source = R"(
#version 330 core
layout(location = 0) in vec3 vPos;
... |
// multilayer_perceptron.cc
// Copyright 2019 <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 applicabl... |
/*
* FEMEnums.cpp
*
* Created on: Sep 2, 2010
* Author: TF
*/
#include "FEMEnums.h"
#include <cstdlib>
#include <iostream>
namespace FiniteElement
{
ProcessType convertProcessType ( const std::string& pcs_type_string)
{
if (pcs_type_string.compare ("LIQUID_FLOW") == 0)
return LIQUID_FLOW;
if (pcs_type_... |
#pragma once
#include <eosio/eosio.hpp>
#include <eosio/singleton.hpp>
#include <eosio/asset.hpp>
#include <eosio/binary_extension.hpp>
#include <platform/platform.hpp>
namespace token {
struct account {
eosio::asset balance;
uint64_t primary_key() const { return balance.symbol.code().raw(); }
... |
#include "BoardManager.hpp"
#include <iostream>
#include <string>
#include <cmath>
#include "Sound.hpp"
#include "colors.hpp"
BoardManager::BoardManager(SDL_Renderer *renderer, FontManager *fonts, SoundManager * sounds, OptionManager * options, int x, int y, int width, int height, int moves, int required_matches, in... |
// 1SixPartUse.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include "pch.h"
#include <vector>
#include <algorithm>
#include <functional>
#include <iostream>
#include <string>
#include <cmath>
#include <list>
#include <tuple>
#include <set>
using namespace std;
namespace cppClassTest
{
class A
{
public:
virtual void... |
/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The 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, including without limitation the... |
#include "DCPh_ripemd128.h"
#include "Util.h"
#include "Exception.h"
using namespace dcpcrypt;
DCPh_ripemd128::DCPh_ripemd128()
{
}
DCPh_ripemd128::~DCPh_ripemd128()
{
}
std::string DCPh_ripemd128::getAlgorithm()
{
return "ripemd-128";
}
int DCPh_ripemd128::getHashSize()
{
return 128;
}
bool DCPh_ripemd128::se... |
/****************************************************************************************[Solver.C]
MiniSat -- Copyright (c) 2003-2006, <NAME>, <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 Softwa... |
// =================================================================================================
// ADOBE SYSTEMS INCORPORATED
// Copyright 2002-2008 Adobe Systems Incorporated
// All Rights Reserved
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
// of the Adob... |
/* ------------------------------------------------------------------
* Copyright (C) 1998-2009 PacketVideo
*
* 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.o... |
//
// model.cpp
//
#include "model.h"
#include "../Math/Vector.h"
#include "../Fileio.h"
#include <string.h>
#include "../Physics/Shapes.h"
#include <algorithm>
#pragma warning( disable : 4996 )
/*
====================================================
FloatToByte
// Assumes a float between [-1,1]
====================... |
/*
* Copyright (c) 1999-2008 <NAME> and <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retain the above copyright
* notice, this list of condit... |
/**
* ============================================================================
*
* Copyright (C) 2018, Hisilicon Technologies Co., Ltd. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
... |
/*
* Copyright (C) 2002-2021 The DOSBox Team
*
* 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 version.
*
* This p... |
// ************************ Prize-collecting Steiner Forest (PCSF) *********************//
// This is a C++ implementation of our heuristic algorithm for the PCSF (Akhmedov et al 2017).
// The heuristic is developed for functional analyses of large biological networks in a reasonable time.
// Loading the required l... |
/* -------------------------------------------------------------------------- *
* OpenSim: Body.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and simulation. *
... |
/*! @file
@brief Implementazione delle principali funzioni pubbliche della classe RFM69
Questo file contiene l'implementazione della maggior parte delle funzioni pubbliche
della classe. Ne sono escluse solo le funzioni di impostazione della radio, che
utilizzano le costanti definite nel file RFM69_impostazioni.h che ... |
/*
* Copyright (c) 2011, <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions ... |
// This program is free software: you can use, modify and/or redistribute it
// under the terms of the simplified BSD License. You should have received a
// copy of this license along this program. If not, see
// <http://www.opensource.org/licenses/bsd-license.html>.
//
// Copyright (C) 2012, <NAME> <<EMAIL>>
// Copyri... |
//
// Created by 刘镇 on 2020/6/3.
//
#include "Screen.h"
#include <iostream>
#include "src/cpp/painterTool/PainterTool.h"
Screen::Screen(QWidget *parent, bool isExternalScreen) :
QDialog(0) {
initParams(isExternalScreen);
timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(change... |
int Y,GQu ,R81
, yB , Z5b,/*2k5XK*/
sFp
,K9vL, VV,RB,ZV,
gt,//5
jbKc
, v6,
SQKZ, jZPW,gZ /*6Y*/, mCl
, Jtf, BiUe,sCJ ,
M3g ,hMZE//qYF
, kcY , eG9 , lmI0v1W ,
P3
,uGW ,UE , dX ,
ls1N
,
GWqDV
,
DNVG ,M , sd ,
YFag//HdWO
,Vn, KWF , GAW,G1
,rY ,Y5CB /*Br*//*SFE*/,Ed //m
, N6v
,jN/*QZ*/
,Rmf4
//xK8
, W... |
#include "Arduino.h"
#include "DSC.h"
#include "DSC_Constants.h"
#include "DSC_Globals.h"
#include <TextBuffer.h>
/// ----- GLOBAL VARIABLES -----
/*
* The existence of global variables are "declared" in DSC_Global.h, so that each
* source file that includes the header knows about them. The variables must then be
... |
int Kv, Vq
,
TDmt ,
BOJs7B,gu,
LZyK8 ,ag/*9s*/,Maus ,
IYgi ,
n,
yBM//x
,ngBe ,
D67
,
k1G
,dCNVE ,CM
, reTa
,X,c4 ,//jJF
OrCU6B, bob,koHNy //bu
,
MmEE,Bw, W40n,su8/*bgrQ*/, /*G*/
XBK , R, ZLLv , kQ
,cmx, VL
,
pE
,Jlls,g42t
,//BM
VkDE,P01v/*m*/ , SivM , vo,PXu/*wqb*/,
Ilu/*FFmC*/
, iPY
; void /... |
// Includes
#include "AMG_3D.h"
#include <pspgu.h>
#include <pspdisplay.h>
#include <pspkernel.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "AMG_User.h"
#include <malloc.h>
#include "lightmap.h"
#include "AMG_Texture.h"
// OSLIB
#ifdef AMG_COMPAT_OSLIB
#include <oslib/osli... |
#include "Cubemap.h"
#include "VecReader.h"
#include <vector>
#include <vector_types.h>
#include <vector_functions.h>
#include <helper_math.h>
#include <memory>
#include <iostream>
#include <omp.h>
#include <algorithm>
#include <fstream>
//CHANGE_Huijie
float Cube::cubeMaxValue = -10;
float Cube::cubeMinValue = 10;
... |
// HJ: August 3, 2020
// EKF adopted from earlier python code, fuses IMU and encoder data
// ***I didn't use typedefs for clarity for readers
#include "ekf.h"
#include "encoder_imu_ekf_ros/initRequest.h"
#include "ros/ros.h"
#include "sensor_msgs/Imu.h"
#include "std_msgs/Int32MultiArray.h"
#include <tf/transform_broa... |
/* neuron_dist_func.cpp
* The plugin to calculate distance between two neurons. Distance is defined as the average distance among all nearest pairs in two neurons.
* 2012-05-04 : by <NAME>
*/
#include <v3d_interface.h>
#include "v3d_message.h"
#include "basic_surf_objs.h"
#include "neuron_dist_func.h"
#include "neu... |
#include "confidence_bounds_strategy_evaluator.h"
//#include "flipflop_estimate.h"
#include "estimator.h"
#include "error_calculation.h"
#include "debug.h"
namespace inst = instruments;
using inst::INFO; using inst::DEBUG;
#include <math.h>
#include <assert.h>
#include <float.h>
#include <limits>
#include <fstream>
... |
/*
* XvidDecoder.cpp - XviD plugin for the Haiku Operating System
*
* Copyright (C) 2007 <NAME> <<EMAIL>>
*
* 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 Free Software Foundation.
*
* This program is... |
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
/*
NNLS-Chroma / Chordino
Audio feature extraction plugins for chromagram and chord
estimation.
Centre for Digital Music, Queen Mary University of London.
This file copyright 2008-2010 <NAME> and QMUL.
This program is fre... |
#include "toonz/sceneproperties.h"
// TnzLib includes
#include "toonz/cleanupparameters.h"
#include "toonz/tcenterlinevectorizer.h"
#include "toonz/captureparameters.h"
#include "toonz/tcamera.h"
#include "toonz/tstageobjecttree.h"
#include "toonz/txshleveltypes.h"
#include "cleanuppalette.h"
// TnzBase includes
#i... |
// Test cases
#include <gtest/gtest.h>
#include <Python.h>
#include "CPy.h"
static PyObject *moduleDict;
static PyObject *int_from_str(const char *str) {
return PyLong_FromString(str, 0, 10);
}
static std::string str_from_object(PyObject *x) {
PyObject *str = PyObject_Str(x);
const char *utf8 = PyUnicod... |
#include "Globals.h"
#include "Application.h"
#include "ModuleSceneIntro.h"
#include "ModulePlayer.h"
#include "Primitive.h"
#include "PhysBody3D.h"
ModuleSceneIntro::ModuleSceneIntro(Application* app, bool start_enabled) : Module(app, start_enabled)
{
}
ModuleSceneIntro::~ModuleSceneIntro()
{}
// Load assets
bool M... |
// Copyright (c) 2012 The WebM 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 in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All contributing projec... |
/*
* irule - The irods utility to execute user composed rules.
*/
#include "rodsClient.h"
#include "parseCommandLine.h"
#include "rodsPath.h"
#include "getUtil.h"
#include "irods_client_api_table.hpp"
#include "irods_pack_table.hpp"
#define string sizeFlag /* in rodsArg, use the sizeFlag field for string mode */
vo... |
/*****************************************************************************
* McPAT
* SOFTWARE LICENSE AGREEMENT
* Copyright 2012 Hewlett-Packard Development Company, L.P.
* All Rights Reserved
*
* Redistribution and use in... |
/* ------------------------------------------------------------------
Copyright (c) 2017 <NAME>
email: <EMAIL>
This code is distributed under the MIT License.
Please see <root-path>/LICENSE for details.
-------------------------------------------------------------- */
#include "pairCollision.h"
... |
/*
* Copyright (c) <NAME> 2013.
* The following source file belongs to the open-source project Pikifen.
* Please read the included README and LICENSE files for more information.
* Pikmin is copyright (c) Nintendo.
*
* === FILE DESCRIPTION ===
* Mob utility classes and functions.
*/
#include <algorithm>
#inclu... |
/*******************************************************************************
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
******************************************************************************/
/*************************************************************************... |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... |
// Fever SOS / <NAME>
#include "cave.h"
#include "ymz280b.h"
#include "gp2xsdk.h"
#define CAVE_VBLANK_LINES 12
static unsigned char DrvJoy1[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
static unsigned char DrvJoy2[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
static unsigned short DrvInput[2] = {0x0000, 0x0000};
static ... |
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
#include <Eigen/Core>
#include <Eigen/Geometry>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <cstddef>
#define _USE_MATH_DEFINES
#include <cassert>
#include <cmath>
#include "face/cu_model_kernel.h"
#include "face/model_cudahelper.h"
#include "face/raw_model.h"
#include "mesh/colormapping.h"
#include "util/cu... |
#include "hype.hh"
//----------------------------------------------------------------------------
// Constructor - Takes input parameters and sets memory
//----------------------------------------------------------------------------
HyPE_2D::HyPE_2D(Vector (*f)(double, double), AppCtx params):
Params(params),
tria... |
#include "subroutines.h"
#include "CuResources.h"
int main(int argc, char **argv)
{
Memory mem = Memory();
CausetPerformance cp = CausetPerformance();
stopwatchStart(&cp.sCauset);
Graph graph = Graph(parseArgs(argc, argv));
int e_start = printStart((const char**)argv, 0);
bool success = false;
if (!init(&gra... |
#include "Poo.h"
#include "Graphics.h"
#include <assert.h>
void Poo::Init( float in_x,float in_y,float in_vx,float in_vy )
{
assert( initialized == false );
x = in_x;
y = in_y;
vx = in_vx;
vy = in_vy;
initialized = true;
}
void Poo::Update()
{
assert( initialized == true );
x += vx;
y += vy;
const float ri... |
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>.
[1] <NAME>, <NAME>.... |
/////////////////////////////////////////
//
// LieroX Game Script Compiler
//
// Copyright Auxiliary Software 2002
//
//
/////////////////////////////////////////
// Main compiler
// Created 7/2/02
// <NAME>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "CVec.h"
#include "CGameScr... |
#include "decoration.h"
#include "clientlist.h"
#include "globals.h"
#include "settings.h"
#include "ewmh.h"
#include <stdio.h>
#include <string.h>
// public globals:
HSDecTriple g_decorations[HSDecSchemeCount];
// module intern globals:
static GHashTable* g_decwin2client = NULL;
static int* g_pseudotile_center_th... |
/*
* Copyright (c) 2010 Jice
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... |
// Standard headers
#include <cstdlib>
#include <cmath>
#include <random>
#include <vector>
#include <algorithm>
#include <iostream>
#include <thread>
#include <functional>
#include <limits>
#include <signal.h>
#include "std_msgs/Bool.h"
// My headers
#include "common_mav.h"
#include "graph.h"
#include "airsim_ros_pkg... |
//*************************************************************************************************************
//
// © 2016-2019 Regents of the University of California on behalf of the University of California at Berkeley
// with rights granted for USDOT OSADP distribution with the ECL-2.0 open source license.
... |
/*
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... |
/*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 writing, software
distri... |
// 2014-2019, ETH Zurich, Integrated Systems Laboratory
// Authors: <NAME>
#include "ll_omen.h"
#include "ll_hbonds.h"
#include "ll_fn.h"
#include "ll_io.h"
#include "ll_hio.h"
#include "aux_io.h"
#include "aux_md5.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <ctime>
using namespace ll__;
// generate da... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2021 <NAME>
//
// 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)
// /////////////////////////////////////////////////... |
/*
* Copyright (c) 2013 Google, Inc.
*
* 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,
* including commerci... |
//==============================================================================
/*
Software License Agreement (BSD License)
Copyright (c) 2003-2016, CHAI3D.
(www.chai3d.org)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted pro... |
//
// Created by JBinggi on 03.07.18.
//
using namespace std;
#include <cstdio>
#include <zconf.h>
#include <ncurses.h>
#include <sys/ioctl.h>
#include <thread> // std::thread
#include <menu.h>
#include "ngui.h"
#include "defines.h"
#include "data.h"
#include "minerapi.h"
#include "helper.h"
#define STATUS_... |
//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-2021 <NAME> and <NAME>
//LIC//
//LIC// This lib... |
/************************** TRICK HEADER **********************************************************
@copyright Copyright 2019 United States Government as represented by the Administrator of the
National Aeronautics and Space Administration. All Rights Reserved.
PURPOSE:
(See GunnsFluidSublimator.hh)
RE... |
#include "blossom_quad.h"
#include "MeshSmoothing/QualityMetrics.h"
using namespace std;
PolyMesh blossom_quad::do_blossom_algo(PolyMesh loadedMesh ) {
// raw triangle mesh
workMesh = loadedMesh;
// property for edge in connection graph
OpenMesh::HPropHandleT<int> hprop_graph_edge_idx;
workMesh.add_property( h... |
#include "child.h"
#define VERBOSE (false)
void Child::Initialize (std::string argument_string) {
/****************** INITIALIZATION *************************************\
** ALGORITHM
** Get command-line arguments (name of input file + any other opts)
** Set silent_mode flag
** Open main i... |
// DecryptCPUU.cpp
// Written by <NAME> @mubix in collaboration with @egypt
//
#include <iostream>
#include <windows.h>
// stolen from https://stackoverflow.com/a/27173017
static void print_buf(const char* title, const unsigned char* buf, size_t buf_len)
{
size_t i = 0;
fprintf(stdout, "%s\n", title);
for... |
/*
* Copyright (C) 2014 <NAME>. All rights reserved.
* License: https://github.com/crosire/reshade#license
*/
#include "dll_log.hpp"
#include "dll_resources.hpp"
#include "runtime_d3d11.hpp"
#include "runtime_objects.hpp"
#include "reshade_api_type_utils.hpp"
#include <d3dcompiler.h>
extern bool is_windows7();
ex... |
#include "settings_mngr.h"
#include "ui_add_camera_ui.h"
#include "ui_remove_camera_ui.h"
#include <unordered_map>
#include <map>
#include <string>
#include <QDialog>
#include <stdio.h>
#include <dirent.h>
#include <unistd.h>
#include <gst/gst.h>
#include <fstream>
#include <vector>
#include "rapidxml-1.13/rapidxml.hpp... |
#include <fstream> // for file in and out
#include <iostream> // for cout
#include <cmath> // for log, exp
#include <sstream> // for read parameters
//#include "maxwell_construction.h"
using namespace std;
//non-local smoothed density approximation:SDA
//non-local density functional theory(NLDFT)
//Referenc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.