text stringlengths 8.71k 38.4k |
|---|
/**********************************************************************************
Copyright 2021 <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... |
#include <algorithm>
#include <cfloat>
#include <vector>
#include <map>
#include "string.h"
#include "caffe/layer.hpp"
#include "caffe/layer_factory.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/vision_layers.hpp"
#include <iostream>
#include "caffe/util/benchmark.hpp"
#ifdef __GNUC__
#include <ext/ha... |
// perf.cpp : baseline performance benchmarking for integer<>
//
// Copyright (C) 2017-2022 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include <universal/utility/directives.hpp>
#include <iostream>
#include <string>
#in... |
//
// (c) 2021 <NAME>.
//
#include "Model.h"
#include "io/FileData.h"
#include "io/Data.h"
#include "texture/TextureData.h"
#include "pool/TexturePool.h"
#include <algorithm>
#include <sstream>
#include "tiny_obj_loader.h"
#include "tiny_gltf.h"
using namespace Supernova;
Model::Model(Scene* scene): Mesh(scene){
... |
#include <ros/ros.h>
#include <rl_msgs/RLStateReward.h>
#include <rl_msgs/RLEnvDescription.h>
#include <rl_msgs/RLAction.h>
#include <rl_msgs/RLExperimentInfo.h>
#include <rl_msgs/RLEnvSeedExperience.h>
#include <ros/callback_queue.h>
#include <rl_common/core.hh>
#include <rl_common/Random.h>
#include <rl_common/Exp... |
#include <cmath>
#include <cstdint>
#include <functional>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <boost/math/constants/constants.hpp>
#include <boost/math/special_functions/cbrt.hpp>
#include <boost/math/special_functions/factorials.hpp>
#include <boost/math/special_functions/gamma.... |
/*
* ParameterGroupViewCubeWidget.cpp
*
* Copyright (C) 2019 by Universitaet Stuttgart (VIS).
* Alle Rechte vorbehalten.
*/
#include "stdafx.h"
#include "widgets/ParameterGroupViewCubeWidget.h"
#include "graph/ParameterGroups.h"
using namespace megamol;
using namespace megamol::core;
using namespace megamol::gu... |
/* Written by <NAME>, Student
Copyright (c) 2019 Manta AUV, Vortex NTNU.
All rights reserved. */
#include "dp_controller/controller_ros.h"
#include "dp_controller/eigen_helper.h"
#include <tf/transform_datatypes.h>
#include <eigen_conversions/eigen_msg.h>
#include "std_msgs/String.h"
#include <math.h>
... |
/**************************************************************************
***
*** Copyright (c) 1995-2000 Regents of the University of California,
*** <NAME>, <NAME> and <NAME>
*** Copyright (c) 2000-2007 Regents of the University of Michigan,
*** <NAME>, <NAME>, <NAME> and
*** ... |
// (C) 2018 ETH Zurich, ITP, <NAME> and <NAME>
template <class V, class M>
inline void kernel_core(V& psi, std::size_t I, std::size_t d0, std::size_t d1, std::size_t d2, std::size_t d3, M const& m)
{
std::complex<double> v[1];
v[0] = psi[I];
std::complex<double> tmp[16] = {0., 0., 0., 0., 0., 0., 0., 0., 0., 0., ... |
#include <stdio.h>
#include <string>
#include <math.h>
#include <sys/time.h>
#include <sys/dir.h>
#include <rapidxml.hpp> //rapidxml must be include before boost
#include <rapidxml_print.hpp> //rapidxml must be include before boost
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include <boo... |
// online2bin/online2-web-nnet3-decode-testmode.cc
// this is for testing kaldi decoder for lots of voice
// Copyright 2014 Johns Hopkins University (author: <NAME>)
// 2016 Api.ai (Author: <NAME>)
// 2018 Polish-Japanese Academy of Information Technology (Author: <NAME>)
// See ../../COPYING fo... |
//
// Original Author: <NAME> Nov 9, 2007
// $Id: JetCorrectorParameters.cc,v 1.20 2012/03/01 18:24:53 srappocc Exp $
//
// Generic parameters for Jet corrections
//
#include "CondFormats/JetMETObjects/interface/JetCorrectorParameters.h"
#include "CondFormats/JetMETObjects/interface/JetCorrectorParametersHelper.h"
#in... |
/*--------------------------------------------------------------------------*/
/* Volume Rendering Application */
/* Copyright (C) 2006-2007 <NAME> */
/* */
/* This softwa... |
#include "FlexIOSPI.h"
#define BAUDRATE 115200
#define FLEXIO1_CLOCK (480000000L/16) // Again assuming default clocks?
//#define DEBUG_FlexSPI Serial
#define DEBUG_digitalWriteFast(pin, state) digitalWriteFast(pin, state)
//#define DEBUG_digitalWriteFast(pin, state)
FlexIOSPI *FlexIOSPI::_dmaActiveObjects[FlexIOHand... |
#include "UnidirectionalPathTracer.h"
#include "../Constants.h"
#include <iostream>
#include <algorithm>
#include <iterator>
#include <thread>
#include <atomic>
#include <iomanip>
std::ostream& operator<<(std::ostream& os, const glm::vec3& m) {
return os << '(' << m.x << ", " << m.y << ", " << m.z << ')';
}
NaiveUni... |
#include <TG3DLine.h>
#include <TGButton.h>
#include <TGMenu.h>
#include <TGPicture.h>
#include <TGSplitter.h>
#include <TGToolBar.h>
#include <TGMsgBox.h>
#include <TGrid.h>
#include <TSystem.h>
#include <TInterpreter.h>
#include <TROOT.h>
#include <TEveManager.h>
#include <TEveSelection.h>
#include <AliEveEventMan... |
/**************************************************************
*
* 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 yo... |
/*
* @CopyRight:
* FISCO-BCOS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* FISCO-BCOS is distributed in the hope that it ... |
#include "conditionaltest_serial.h"
#include "conditionaltest_workblock.h"
#include "conditionaltest_resultblock.h"
#include "ccmatrix_pair.h"
#include "correlationmatrix_pair.h"
#include "correlationmatrix.h"
#include "correlationmatrix_pair.h"
#include "expressionmatrix_gene.h"
#include <ace/core/elog.h>
#include <gs... |
/*=========================================================================
Program: ALBA (Agile Library for Biomedical Applications)
Module: albaDecl
Authors: <NAME>
Copyright (c) BIC
All rights reserved. See Copyright.txt or
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warra... |
// WIN7, I7 980, HD 6970
//
// MAP: In host queue: 11674ns, In device queue: 10234854ns, Execution time: 111ns, UNMAP: In host queue: 54681ns, In device queue: 542124ns, Execution time: 1240555ns
// MAP: In host queue: 48230ns, In device queue: 147652ns, Execution time: 111ns, UNMAP: In host queue: 48845ns, In device q... |
#include "GPU.h"
#include "Util.h"
#include <iostream>
#include <assert.h>
using namespace std;
Hdma::Hdma(/* args */)
{
src = 0x0000;
dst = 0x8000;
active = false;
mode = HdmaMode_Gdma;
remain = 0x00;
}
uint8_t Hdma::get(unsigned int a)
{
switch (a)
{
case 0xff51:
return (uin... |
// -*- C++ -*-
//
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// <NAME>
// California Institute of Technology
// (C) 2005 All Rights Reserved
//
// {LicenseText}
//
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... |
/**
* @file libs/device/lis3dh.cpp
* @brief LIS3DH driver library.
*/
//###############################################
#include <device/lis3dh.h>
//###############################################
#define update_field(reg, addr, name, field, value) { \
get_register(®.raw, addr); \
reg.name.field = value; ... |
int
FH,pp6 , UJ8O
,U0,
ECYt
,x5j//GOTo
,JJ,i4I ,
tU , eIK,aQz
, DMp ,ZLh,
SO,m ,
QrC ,LRa
, ST
, GW47,
gL
, z3 , yrUt, /*ch4*/OQb,
xAO
, HiadM4,vb
,
gzcbt
,fK,eoC ,CacE
,
rZJ4 , jAb ,D, OmDnL,gGE, J5 , Fch,Ggk,
dz , EW2g
, n1aM , /*b1mY*/At
,
Gts,Ahzr,z71 ,Rf ,
ZY
;void f_f0 ()
{ {
{... |
/*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: <NAME>, <NAME>
*/
#include <shogun/structure/FactorGraphDataGenerator.h>
#include <shogun/mathematics/UniformRealDistribution.h>
#include <shogun/mathematics/RandomNamespace.h>
using namespace shogun;
FactorGraphDataGen... |
#include "UT4XBalancer.h"
#include "UTFlagRunGame.h"
#include "UTVoiceChatTokenFeature.h"
// folder name of this module in plugins folder
#define DEBUGLOG Verbose
AUT4XBalancer::AUT4XBalancer(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
DisplayName = FText::FromString("UT4X Balancer 1... |
#include "structs.h"
#include "utils.h"
#include "buffer.h"
#include "characters.h"
extern struct TimeInfoData time_info;
typedef struct {
SInt32 type;
SInt32 value;
} TOKEN;
#define TOP 256
#define WTOP 3
#define NON_TERMINAL 0
#define END_OF_INPUT 10
#define MAX_ANSWER 32767
#define SCR_WIDTH 76
#define NO 0... |
/*****************************************************************************
Copyright 2012 Laboratory for Advanced Computing at the University of Chicago
This file is part of UDR.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You ma... |
/////////////////////////////////////////////////////////////////////////
// Copyright (c) 2001- Twelve Tone Systems, Inc. All rights reserved.
//
// MotorMixSurface.cpp : Methods in CControlSurface specific to MotorMix
/////////////////////////////////////////////////////////////////////////
#include "stdafx.h... |
//
// "$Id$"
//
// Box drawing code for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2015 by <NAME> and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see the l... |
// Copyright (C) 2012-2018 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include <LeapSerial/LeapSerial.h>
#include <gtest/gtest.h>
#include <array>
#include <cmath>
#include <sstream>
#include <type_traits>
class SerializationTest:
public testing::Test
{};
// Need to ensure that all builtins are corr... |
/* Copyright 2021 Stanford University
*
* 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 <common.h>
#include <game.h>
#include <g3dhax.h>
#include "boss.h"
const char* TLCarcNameList [] = {
"tcloud",
NULL
};
class dThunderCloud : public dEn_c {
int onCreate();
int onDelete();
int onExecute();
int onDraw();
mHeapAllocator_c allocator;
m3d::mdl_c bodyModel;
nw4r::g3d::ResFile resFile;
... |
#include <library/getopt/last_getopt.h>
#include <library/colorizer/colors.h>
#include <library/unittest/registar.h>
#include <util/generic/array_size.h>
#include <util/string/subst.h>
#include <util/string/vector.h>
#include <util/string/iterator.h>
using namespace NLastGetopt;
namespace {
struct TOptsNoDefaul... |
/* Copyright (c) 2013-2017 Ardexa Pty Ltd. All rights reserved.
*
* This code is licensed under the MIT License (MIT).
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NO... |
#include <iostream>
#include <cmath>
// GLEW
#define GLEW_STATIC
#include <GL/glew.h>
// GLFW
#include <GLFW/glfw3.h>
// Other Libs
#include "SOIL2/SOIL2.h"
// GLM Mathematics
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
// Other includes
#include "Shader.h"
#inclu... |
/*****************************************************************************
Copyright (c) 1996, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2016, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License... |
// -*- C++ -*-
//
// Package: EcalDeadCellDeltaRFilter
// Class: EcalDeadCellDeltaRFilter
//
/**\class EcalDeadCellDeltaRFilter EcalDeadCellDeltaRFilter.cc
Description: <one line class summary>
Event filtering for RA2 analysis (filtering status is stored in the event)
*/
//
// Original Author: <NAME>
//
//... |
/*
The 3-Clause BSD License
SPDX short identifier: BSD-3-Clause
Copyright 2016-2017 Trenz Electronic GmbH
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above co... |
/*
* Copyright (C) 2002-2013 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... |
// =-=-=-=-=-=-=-
// local includes
#include "s3_archive_operations.hpp"
#include "libirods_s3.hpp"
// =-=-=-=-=-=-=-
// irods includes
#include <msParam.h>
#include <rcConnect.h>
#include <rodsLog.h>
#include <rodsErrorTable.h>
#include <objInfo.h>
#include <rsRegReplica.hpp>
#include <dataObjOpr.hpp>
#include <irod... |
// 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 "chrome/browser/shell_integration_linux.h"
#include <fcntl.h>
#include <stddef.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/ty... |
// -*- C++ -*-
//
// Package: test/EmbeddingLHEProducer
// Class: EmbeddingLHEProducer
//
/**\class EmbeddingLHEProducer EmbeddingLHEProducer.cc test/EmbeddingLHEProducer/plugins/EmbeddingLHEProducer.cc
Description: [one line class summary]
Implementation:
[Notes on implementation]
*/
//
// Original Au... |
#include "TerrainImporter.hpp"
TerrainImporter::TerrainImporter(const vsg::Path& heightmapPath, const vsg::Path& texturePath, float terrainScale, float terrainScaleVertexHeight, bool terrainFormatLa2d, bool textureFormatS3tc, int heightmapLod, int textureLod, int test, uint32_t tileCountX, uint32_t tileCountY, int til... |
//====== Copyright (c) 2012, Valve 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
// li... |
/*
An Algorithm for Automatically Fitting Digitized Curves
by <NAME>
from "Graphics Gems", Academic Press, 1990
*/
#define TESTMODE
/* fit_cubic.c */
/* Piecewise cubic fitting code */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <iostream>
#include "eagleeye/algorithm/FitCurves.h"
#d... |
//
// begin license header
//
// This file is part of Pixy CMUcam5 or "Pixy" for short
//
// All Pixy source code is provided under the terms of the
// GNU General Public License v2 (http://www.gnu.org/licenses/gpl-2.0.html).
// Those wishing to use Pixy source code, software and/or
// technologies under different lice... |
//
// AudioLimiter.cpp
// libraries/audio/src
//
// Created by <NAME> on 2/11/15.
// Copyright 2016 High Fidelity, Inc.
//
#include <math.h>
#include <assert.h>
#include "AudioLimiter.h"
#ifndef MAX
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#endif
#ifndef MIN
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#endif
#ifd... |
#include "lambda-worker.h"
#include <getopt.h>
#include <glog/logging.h>
#include <stdlib.h>
#include <sys/resource.h>
#include <sys/timerfd.h>
#include <cstdlib>
#include <iterator>
#include <limits>
#include <sstream>
#include <stdexcept>
#include "cloud/bvh.h"
#include "cloud/integrator.h"
#include "cloud/manager.... |
#include <iostream>
#include <chrono>
#include "cuda_runtime_api.h"
#include "logging.h"
#include "common.hpp"
#define USE_FP16 // comment out this if want to use FP32
#define DEVICE 0 // GPU id
#define BATCH_SIZE 1
#define EXPANDRATIO 1.4
static const int INPUT_H = 640;
static const int INPUT_W = 640;
static cons... |
#include <ros/ros.h>
#include <std_msgs/Header.h>
#include <livox_mapping/CustomMsg.h>
#include <stdio.h>
#include <nav_msgs/Odometry.h>
#include <pcl_conversions/pcl_conversions.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/common/transforms.h>
#include <pcl/io/pcd_io.h>
#include <cmath>
#... |
//===-- ExecutionState.cpp ------------------------------------------------===//
//
// The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------------... |
#include "global.h"
#include "RageMath.h"
#include "RageTypes.h"
#include "RageUtil.h"
#include "RageDisplay.h"
#include "RageLog.h"
#include "arch/Dialog/Dialog.h"
void RageVec3ClearBounds( RageVector3 &mins, RageVector3 &maxs )
{
mins = RageVector3( 999999, 999999, 999999 );
maxs = mins * -1;
}
void RageVec3AddTo... |
// File: KMD5.cpp
// Copyright: Copyright(C) 2013-2017 Wuhan KOTEI Informatics Co., Ltd. All rights reserved.
// Website: http://www.nuiengine.com
// Description: This code is part of NPlan Project (Powered by NUI Engine)
// Comments:
// Rev: 1
// Created: 2018/8/27
// Last edi... |
#include "core/global.h"
#include "core/config_parser.h"
#include "core/timer.h"
#include "search/asyncbot.h"
#include "program/setup.h"
#include "program/play.h"
#include "main.h"
using namespace std;
#define TCLAP_NAMESTARTSTRING "-" //Use single dashes for all flags
#include <tclap/CmdLine.h>
static bool tryParse... |
// license:BSD-3-Clause
// copyright-holders:<NAME>
// LC58 generic disassembler
#include "emu.h"
#include "lc58d.h"
u32 lc58_disassembler::opcode_alignment() const
{
return 1;
}
#define P std::ostream &stream, const lc58_disassembler *d, u16 opcode
const lc58_disassembler::instruction lc58_disassembler::instructi... |
//
// main.cpp
// LearnOpenGL-12-LightCasters
//
// Created by KK on 2019/5/17.
// Copyright © 2019 KK. All rights reserved.
//
#include <cmath>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include "shader/shader.hpp"
#include <iostream>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <... |
/*
Copyright (C) 2018 Fx Bricks Inc.
This file is part of the pfxbrick python module.
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 ... |
#include "samfaidx.h"
#define DEFAULT_FASTA_LINE_LEN 60
static unsigned char comp_base[256] = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
32, '!', '"', '#', '$', '%', '&', '\'','(', ')', '*', '+', ',... |
#include <bits/stdc++.h>
#include <functional>
#include "src/mc-graph.hpp"
#include "src/input-parser.hpp"
using namespace std;
typedef vector<pair<int,int>> graph_edges;
const bool kRequireLClique = false;
const bool kRoughAnalaysis = false;
const bool kHandleAnyProperty = false;
const bool kSkipSingletons = false;... |
#include <iostream>
#include <sstream>
#include <player.h>
#include <Polynomial/LGInterpolator.h>
#include <MessageHash/MessageHash.h>
#include <algorithm>
#include <AsymKey/AsymKey.h>
#include <MessageHash/conversions.h>
player::player(const std::string& id, const std::string& uri, const std::string& addr, const std:... |
void bf_partition(BFMat &bfA, Mat *A_in, std::vector<Mat *> &A)
{
BFInt L = bfA.getL();
BFInt P = 1 << L;
int rank, size;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &size);
BFInt nRows = bfA.getGlobalRows();
BFInt nCols = bfA.getGlobalCols();
BFInt lRows, lCo... |
#include <fstream>
#include <math.h>
#include <uWS/uWS.h>
#include <chrono>
#include <iostream>
#include <thread>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "json.hpp"
#include "spline.h"
//#include <curses.h>
#include <unistd.h>
//#include <term.h>
#include "... |
int p1, sH
, E
,M ,Tk ,wDZ ,RaAo, V2TF
, h,
wsk, iprm0, Ogi ,QOk,
JuR /*y*/,//
CiH, Jan4, l51
, o,KUv9S//t
,keq
,
t8
,
ut,bsc , g ,Jj2V//f
,
QB , we/*nNiV*/,
W ,Sl/*amJu*/,
j5WHJ,GL0wq /*Cy*/ ,
u0gRM ,Mf6w2 ,
Qzd
, gK
,tTT , OH ,y ,sMPh
,WbFNDSr ,Es , rYvSCJ,
/*o6IT*/Zkw , l, HtN1
;/*Oki*/
... |
// Copyright 2015. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following di... |
#include "GPU-Includes.h"
//imgui includes
#include "imgui/imgui.h"
#include "imgui/imgui_impl_sdl.h"
#include "imgui/imgui_impl_opengl3.h"
#include "glm/ext.hpp"
//stb_image include
#define STB_IMAGE_IMPLEMENTATION //put this line in only one .cpp file
#include <external/stb_image.h>
#include <external/loguru.hpp>
... |
/* fsm.cpp to manage finate state machine
* History :
* v001 : first version with fsm_transition_function()
* v002 : Separate into different states in fsm_transition_function()
* Modify fsm_transition_function() + change state
* Add switch/case to fsm_transition_function()
* Add function isLaneC... |
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include "stdafx.h"
#include "D3D1XDefaultPipeline.h"
#include "CDebug.h"
#include "D3DRenderer.h"
#include "D3D1XShader.h"
#include "D3D1XTexture.h"
#include "... |
#include "StdAfx.h"
#include "BVH.h"
#include "iostream"
#include <opencv2/opencv.hpp>
#include "Scene.h"
#include "Render.h"
#include <time.h>
#include "global.h"
inline void UpdateProgress(double progress)
{
int barWidth = 70;
std::cout << "[";
int pos = barWidth * progress;
for (int i = 0; i < barWidth; ++i) {... |
/* <orly/data/social_graph.cc>
Generates a core-vector file with a large sample social graph
Copyright 2010-2014 OrlyAtomics, 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
... |
///////////////////////////////////////////////////////////////////////////////////////////////////
//Description:
// The file is copied from MCD Application Team,and I modified it.
// The follows is the original copyright information:
// /******************** (C) COPYRIGHT 2008 STMicroelectronics ****************... |
//=============================================================================
// Unsorted Spellcross data handling routines.
//
// This code is part of Spellcross Map Editor project.
// (c) 2021, <NAME>, <EMAIL>
// Distributed under MIT license, https://opensource.org/licenses/MIT.
//================================... |
//
// BlobFinder.cpp
// kinectTCPServer
//
// Created by maybites on 14.02.14.
//
//
#include "BlobFinder.h"
void BlobFinder::setup(ofxGui &gui){
//////////
//GUI //
//////////
panel = gui.addPanel();
panel->loadTheme("theme/theme_light.json");
panel->setName("Tracking...")... |
#include <fstream>
#include <math.h>
#include <uWS/uWS.h>
#include <chrono>
#include <iostream>
#include <thread>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "json.hpp"
#include "spline.h"
using namespace std;
// for convenience
using json = nlohmann::json;
... |
#include <nds.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <osc_scale.h>
#include <osc_logo.h>
#include <osc_sprite.h>
#include <maxmod9.h>
#include "mmsolution.h" // solution definitions
#include "mmsolution_bin.h" // solution binary reference
#include "ifft.h"
#define hi(v) (*((... |
#include "btMiniSDF.h"
//
//Based on code from DiscreGrid, http://github.com/InteractiveComputerGraphics/Discregrid
//example:
//GenerateSDF.exe -r "32 32 32" -d "-1.6 -1.6 -.6 1.6 1.6 .6" concave_box.obj
//The MIT License (MIT)
//
//Copyright (c) 2017 <NAME>
//
#include <limits.h>
#include <string.h> //memcpy
stru... |
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restrictio... |
// Begin CVS Header
// $Source: /fs/turing/cvs/copasi_dev/copasi/steadystate/CMCAMethod.cpp,v $
// $Revision: 1.50 $
// $Name: Build-33 $
// $Author: shoops $
// $Date: 2010/07/16 19:03:26 $
// End CVS Header
// Copyright (C) 2010 by <NAME>, Virginia Tech Intellectual
// Properties, Inc., University of Heide... |
// sat_conversion.cpp: test suite runner for fixed-point saturating conversions
//
// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include <universal/utility/directives.hpp>
#include <iostream>
#inc... |
/* $Id: NetIf-solaris.cpp $ */
/** @file
* Main - NetIfList, Solaris implementation.
*/
/*
* Copyright (C) 2008-2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modif... |
//
// Abst_SoundFile.cpp -- CSL's abstract sound file class
// See the copyright notice and acknowledgment of authors in the file COPYRIGHT
//
#include "SoundFile.h"
#ifdef USE_TAGS
#include <taglib/fileref.h> // libTag includes
#include <taglib/tag.h>
#endif
using namespace csl;
SoundFileMetadata::SoundFileMeta... |
#include "stdafx.h"
#include "Compat.h"
#include "LandauVishkin.h"
#include "mapq.h"
#include "Read.h"
#include "BaseAligner.h"
#include "Bam.h"
#include "exit.h"
using std::make_pair;
using std::min;
LandauVishkinWithCigar::LandauVishkinWithCigar()
{
for (int i = 0; i < MAX_K+1; i++) {
for (int j = 0; ... |
// Copyright 2016 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 <iostream>
#include <memory>
#include <unordered_map>
#include "base/at_exit.h"
#include "base/command_line.h"
#include "base/files/file_path.h"... |
/// Direct Download Genereted EXE Link == http://bit.ly/1TJCNfx
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<string.h>
#include<windows.h>
#include<time.h>
///Logic Functions
/// Update & Insert Function
void insertfirst(int data, char foodname[25], int quantity, float price);
void insertmid(in... |
/*
Module : AAMoon.cpp
Purpose: Implementation for the algorithms which obtain the position of the Moon
Created: PJN / 29-12-2003
History: PJN / 07-02-2009 1. Optimized the layout of the MoonCoefficient1 structure by making all elements
integers instead of doubles.
PJN / 12-02-2... |
/***************************************************
* This library is for interfacing with the BME280
* sensor using the ESP266 chip via the I2C protocol.
* Common tasks like setting filter coefficients and
* getting sensor readings are abstracted.
* Inspired by SparkFun's BME280 Arduino library.
*
* Sponsore... |
// #include "sat_verifier_dt.h"
#include "verifier.h"
#define NDEBUG
SATVerifierTable::SATVerifierTable(string htnFile) {
readHTNFile(htnFile);
}
void SATVerifierTable::readHTNFile(string htnFile) {
cout << "read model from" << htnFile << "\n";
std::ifstream *fileInput = new std::ifstream(htnFile);
i... |
/*
Ckmeans_1d_dp.cpp -- Performs 1-D k-means by a dynamic programming
approach that is guaranteed to be optimal.
<NAME>
Computer Science Department
New Mexico State University
<EMAIL>
<NAME>
Computer Science Department
New Mexico State University
<EMAIL>
Created: May 19, 2007
Updated: September 3, 2009
... |
// ---------------------------------------------------------------------
//
// rampWeights.cpp
//
// Created by ingo on 4/20/16.
// Copyright (c) 2016 <NAME>. All rights reserved.
//
// ---------------------------------------------------------------------
#include <string>
static const std::string kVERSION = "4.0.... |
#include <gazebo/physics/ode/ODEPhysics.hh>
#include <gazebo/physics/ode/ODECollision.hh>
#include <gazebo/physics/ode/ODETypes.hh>
#include <gazebo/physics/ode/ODERayShape.hh>
#include "collisions/collision_std.h"
#include "collisions/collision_trimesh_internal.h"
#include "collisions/heightfield.h"
#include "collisio... |
#ifdef _WIN32
#include "..\core\forcore.cpp"
extern "C" {
#include "..\core\dictionary.c"
#include "..\core\iniparser.c"
}
#else
#include "../core/forcore.cpp"
extern "C" {
#include "../core/dictionary.c"
#include "../core/iniparser.c"
}
#endif
#include "fornuts.h"
void usage()
{
cout<<"Usage:"<<endl... |
/*
Copyright (c) 2012, <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 and the following ... |
/* envphong.c - <NAME>, SGI */
/**
** Demonstrates a use of environment texture mapping for improved highlight
** shading.
**
** Press mouse button one to move the object, press mouse button two to
** move the light source. Pressing the <s> key switches between using
** regular lighting or texture mapping for ... |
/*
* Copyright 2019 Codeplay Software Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use these files 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 ... |
/*
* This file belongs to the Galois project, a C++ library for exploiting parallelism.
* The code is being released under the terms of the 3-Clause BSD License (a
* copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
/****************************************************************************************
Copyright (C) 2015 Autodesk, Inc.
All rights reserved.
Use of this software is subject to the terms of the Autodesk license agreement
provided at the time of installation or download, or which otherwise accompa... |
#include "RecordingPlotter.h"
#include "DefaultValues.h"
#include "Recording.h"
#include "RecordingDataModel.h"
#include <QAction>
#include <QColor>
#include <QtDebug>
#include <QPaintEvent>
#include <QPainter>
#include <QResizeEvent>
#include <QSettings>
#include <QStringRef>
#include <QTextStream>
#i... |
///////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2013) by the //
// Broad Institute. All rights are reserved. This software is supplied //
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.