text stringlengths 3.08k 22k |
|---|
/*************************************************************************
SensorTree - description
-------------------
Begin : 21/10/2015
copyright : (C) 2015 ny <NAME> && <NAME>
*************************************************************************/
//---------- Realization of <Se... |
/* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
*
* 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 re... |
/*
* AlgorandAccountTests
*
* Created by <NAME> on 02/06/2020.
*
* The MIT License (MIT)
*
* Copyright (c) 2020 Ledger
*
* 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 res... |
//*********************************************************
// Turn_Stats.cpp - Turning Movement Statistics
//*********************************************************
#include "Validate.hpp"
//---------------------------------------------------------
// Turn_Stats
//--------------------------------------------------... |
#include "DirectXGraphics.h"
#include <assert.h>
#include "Camera.h"
#include "Skybox.h"
#include <d3dx9math.h>
void DirectXGraphics::ResetWorldMatrix()
{
D3DXMATRIXA16 id;
D3DXMatrixIdentity(&id);
g_pd3dDevice->SetTransform(D3DTS_WORLD, &id);
}
DirectXGraphics::DirectXGraphics()
{
camera1 = NULL;
... |
//-----------------------------------------------------------------------------
// Copyright (c) 2015-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, in... |
/*
* Copyright 2021 Google LLC.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkStringView.h"
#include "tests/Test.h"
DEF_TEST(SkStringViewConstructors, r) {
skstd::string_view empty;
REPORTER_ASSERT(r, empty.data() == n... |
// Test for boost/core/bit.hpp (rotl, rotr)
//
// Copyright 2020 <NAME>
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/core/bit.hpp>
#include <boost/core/lightweight_test.hpp>
#include <boost/core/detail/splitmix64.hpp>
#include <boost/cstdint.hpp... |
// Copyright (c) 2012 <NAME> <<EMAIL>>
// Distributed under the Modified BSD License, see license.txt.
#include "patch_grid_mesh.h"
#include <cassert>
#include <exception>
#include <stdexcept>
#include <boost/assign/list_of.hpp>
#include <scm/log.h>
#include <scm/core/memory.h>
#include <scm/gl_core/render_device... |
#include "fg/FrameGraph.hpp"
#include <stack>
#include <sstream>
namespace {
struct StyleSheet {
bool useClusters{true};
const char *rankDir{"TB"}; // TB, LR, BT, RL
struct {
const char *name{"helvetica"};
int32_t size{10};
} font;
struct {
// https://graphviz.org/doc/info/colors.html
struc... |
/*
Copyright (c) 2013, Trail of Bits
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 ... |
#include "inventory.h"
#include "inventory_weapons.h"
#include "types.h"
#include <iostream>
View::WeaponsInventory::WeaponsInventory(SDL_Renderer * r, const YAML::Node & initInv) :
font(gPath.PATH_FONT_ARIAL_BOLD, TEXT_SUPPLIES_SIZE) {
this->iconPaths[w_bazooka] = gPath.PATH_ICON_BAZOOKA;
this->iconPaths[w_mor... |
/*
* Copyright 2021 Huawei Technologies Co., Ltd
*
* 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 ... |
#include "ukf.h"
using Eigen::MatrixXd;
using Eigen::VectorXd;
using namespace utility;
Ukf::Ukf() {
// Process noise standard deviation longitudinal acceleration in m/s^2
std_a = 0.5;
// Process noise standard deviation yaw acceleration in rad/s^2
std_yawdd = 0.8;
is_initialized = false;
previous_tim... |
//********************************************************
// Syzygy is licensed under the BSD license v2
// see the file SZG_CREDITS for details
//********************************************************
#include "arPrecompiled.h"
#include "arBumpMap.h"
#include "arMath.h"
GLuint make_lookup_texture(double ... |
#include <iostream>
#include <iomanip>
#include "SLL.h"
// ==================================================================
// SLLNode class member functions
// ==================================================================
// default constructor for SLLNode
template <typename type>
SLLNode<type>::SLLNode() ... |
#include <racingGame/carState.h>
#include <racingGame/car.h>
#include <racingGame/track.h>
#include <utils/utils.h>
#include <cmath>
#include <sstream>
#include <debugManager/debugManager.h>
#ifndef M_PI
#define M_PI 3.14159265359f
#endif
CarState CarState::GenerateState(const Car& car, const Track::Path& path, uns... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "PointCloudActor.h"
#include "ROSIntegration/Classes/RI/Topic.h"
#include "ROSIntegration/Classes/ROSIntegrationGameInstance.h"
#include "ROSIntegration/Public/sensor_msgs/PointCloud2.h"
//#include "Kismet/GameplayStatics.h... |
#pragma once
#include <pcl/common/common_headers.h>
#include <pcl/sample_consensus/ransac.h>
#include <pcl/sample_consensus/sac_model_sphere.h>
#include <pcl/point_cloud.h>
#include "Geodesy.hpp"
#include <string>
#include <iostream>
#include <fstream>
#include <vector>
#include <cmath>
#include <Eigen/Dense>
class ... |
/*
* Copyright (c) 2019, NVIDIA CORPORATION. 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 requi... |
#include "CAST256.h"
uint32_t CAST256::F1(const uint32_t Data, const uint32_t Kmi, const uint8_t Kri){
uint32_t temp = ROL((Kmi + Data) & mod32, Kri, 32);
uint8_t Ia = temp >> 24, Ib = (temp >> 16) & 255, Ic = (temp >> 8) & 255, Id = temp & 255;
return ((CAST_S1[Ia] ^ CAST_S2[Ib]) - CAST_S3[Ic] + CAST_S4[I... |
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <unordered_map>
#include <opencv2/opencv.hpp>
#include "phash.h"
using namespace std;
using namespace cv;
void read_txt_line_by_line(const char* path, vector<string>& result)
{
FILE* fin = fopen(path, "r");
if(fin==NULL) ... |
/* Copyright (c) Stanford University, The Regents of the University of
* California, and others.
*
* All Rights Reserved.
*
* See Copyright-SimVascular.txt for additional details.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated doc... |
/***
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
****/
/*
mkmovie.c
converts a movie file from the game engine to a collection of ... |
#include <mpi.h>
#include <vedo/framework/Assembler.h>
#include <vedo/framework/Consultant.h>
#include <vedo/framework/DOModel.h>
#include <vedo/framework/DOWorld.h>
#include <vedo/framework/GeometricShape.h>
#include <vedo/framework/SimMediator.h>
#include <vedo/iris-gm/NBSParallelConsultant.h>
#include <vedo/ModuleLi... |
//
// Copyright (c) 2015 Singular Inversions Inc. (facegen.com)
// Use, modification and distribution is subject to the MIT License,
// see accompanying file LICENSE.txt or facegen.com/base_library_license.txt
//
// Authors: <NAME>, <NAME>
// Created: March 29, 2008
//
#include "stdafx.h"
#include "FgDepGraph... |
// Copyright © 1996-2018, Valve Corporation, All rights reserved.
#include "vgui_askconnectpanel.h"
#include "cl_pluginhelpers.h"
#include "inputsystem/ButtonCode.h"
#include "keys.h"
#include "mathlib/mathlib.h"
#include "vgui/ILocalize.h"
#include "vgui/IVGui.h"
#include "vgui_baseui_interface.h"
#include "vgui_con... |
// Example for dispatching a SPIR-V Kernel using Level Zero on the Intel HD Graphics
// Sample based on the test-suite exanples from Level-Zero:
// https://github.com/intel/compute-runtime/blob/master/level_zero/core/test/black_box_tests/zello_world_gpu.cpp
#include "ze_api.h"
#include <chrono>
#include <cstrin... |
#include "CountingBp.h"
#include "WeightedBp.h"
bool CountingBp::checkForIdenticalFactors = true;
CountingBp::CountingBp (const FactorGraph& fg)
: Solver (fg), freeColor_(0)
{
findIdenticalFactors();
setInitialColors();
createGroups();
compressedFg_ = getCompressedFactorGraph();
solver_ = new Weighted... |
#include "label-image.h"
LabelImage::LabelImage() {
root = "";
graph =
"tensorflow/examples/ch-tf-label-image-client/data/inception_v3_2016_08_28_frozen.pb";
labels =
"tensorflow/examples/ch-tf-label-image-client/data/imagenet_slim_labels.txt";
input_width = 299;
input_height = 299;
input_mea... |
// Shellscript: ~12h
// Previous version shelling out: 50min
// PNG C++ version: 8min
// Switch to JPG with quality 100: 1m15s
// * not full core saturation due to regex parsing being the limiting factor on 12 threads
// * quality 50: 50s
// * less copying: 35s
// * threadpool with affinity: 29s (parallelism 11.349)
//... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <iostream>
#include "common.h"
#include <dlog.h>
#include <glib.h>
#include <bluetooth.h>
#undef LOG_TAG
#define LOG_TAG "REMOTE_KEY_FW"
static GMainLoop* gMainLoop = NULL;
static bt_adapter_visibility_mode_e gVisibilityMode = BT_ADAPTER_VISIBILITY... |
// STL
#include <vector>
#include <string>
#include <iostream>
// GLEW
#include <GL/glew.h>
// Freeglut
#include <GL/freeglut.h>
// GLM
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/matrix_transform.hpp>
// SOIL
#include <SOIL.h>
// Internal
#include "GLSLShader.hpp"
#define GL_CHECK_ERRORS ... |
/*-----------------------------------------------------------------------------
* Haaf's Game Engine 1.9
* Copyright (C) 2003-2007, Relish Games
* Maintained 2012-2021 by <EMAIL> (github @kvakvs)
* Github -- https://github.com/kvakvs/hge | Discord -- https://discord.gg/TdjamHt
*
* Old website: http://hge.relishga... |
#include <stdexcept>
#include <iostream>
#include <sstream>
#include <signal.h>
#include "Pythia.h"
#include "TROOT.h"
#include "TApplication.h"
#include "TFile.h"
#include "TObjArray.h"
#include "TStopwatch.h"
#include "TDatabasePDG.h"
#include "TParticlePDG.h"
#include "TLorentzVector.h"
#include "modules/Delphe... |
//
// NVPatcher.cpp
// NVPatcher (CoreDisplayFixup)
//
// Copyright © 2017 Vanilla. All rights reserved.
//
// This module is based on lvs1974's NvidiaGraphicsFixup.
//
#include <Headers/kern_api.hpp>
#include "NVPatcher.hpp"
// NVDAGK100Hal.kext - system built-in, for Kepler
static const char *kextGKHal[] = ... |
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <thread>
#include <chrono>
#include <cpuid.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <fmt/format.h>
#define INTEL_FAM6_NEHALEM 0x1E
#define INTEL_FAM6_NEHALEM_G 0x1F /* Auburndale /... |
#include <ros/ros.h>
#include <ros/package.h>
#include <cv_bridge/cv_bridge.h>
#include <image_transport/image_transport.h>
#include <sensor_msgs/image_encodings.h>
#include <sensor_msgs/CameraInfo.h>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
... |
/*
* ======================================================================
* mapperPass.cpp
* ======================================================================
* Mapper pass implementation.
*
* Author : <NAME>
* Date : Aug 16, 2021
*/
#include <llvm/IR/Function.h>
#include <llvm/Pass.h>
#in... |
#include "prt.h"
#include "stdio.h"
#include <sys/types.h>
#include <sys/stat.h>
#include "direct.h"
using namespace std;
using namespace cv;
using namespace Eigen;
/// <summary>
/// Creates a cubemap with a single pixel has color (1, 1, 1) and other pixels black.
/// </summary>
/// <param name="face_index">The index... |
/***************************************************************************
* Nping.cc -- This file contains function main() and some other general *
* high level functions. *
* *
**********... |
// (C) Copyright 2016-2020 Xilinx, Inc.
// All Rights Reserved.
//
// 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... |
#include "linearcongruentialgenerator.h"
#include <iostream>
#include <QProcess>
#include <QFile>
#include <QTextStream>
#include <QStringList>
#include <QDir>
#include <QStringBuilder>
#include <cmath>
const int LinearCongruentialGenerator::primesFileCount = 1000000;
const int LinearCongruentialGenerator::primesFile... |
/*******************************************************************************
* Filename : heightmap.cpp
* Content : Basic heightmap to play around with some shaders (water/terrain)
* Created : July 4, 2020
* Authors : <NAME>
* Language : C++17
**********************************... |
//
// ofxOceanode.cpp
// example-basic
//
// Created by <NAME> on 13/04/2020.
//
#include "ofxOceanode.h"
#include "ofxOceanodeTheme.h"
#include "ofxOceanodeShared.h"
#include "imgui_internal.h"
ofxOceanode::ofxOceanode(){
nodeRegistry = make_shared<ofxOceanodeNodeRegistry>();
typesRegistry = make_shared<o... |
#include <SFML/System/Vector2.hpp>
#include <iostream>
#include <utility>
#include <ostream>
#include "shape.hpp"
#include "utils.hpp"
//definition of virtual functions
void Shape::move(sf::Vector2f next_position){}
void Shape::set_vertex_array(sf::VertexArray &array, int index,
sf::IntRec... |
/* Portions copyright (c) 2009-2018 Stanford University and Simbios.
* Contributors: <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 l... |
#include "Builders.hpp"
#include <SDL2TK/Vector.hpp>
using namespace SDL2TK;
static const float RootTwo = 1.414213562f;
static const Vector4F Black(0.0f, 0.0f, 0.0f, 1.0f);
static const Vector4F Red(1.0f, 0.0f, 0.0f, 1.0f);
static const Vector4F Green(0.0f, 1.0f, 0.0f, 1.0f);
static const Vector4F Blue(0.0f, 0.0f, 1.... |
/*=============================================================================
# Author: <NAME> - https://github.com/NicolasQueiroga/
# Email: <EMAIL>
# FileName: aux.cpp
# Description: file that contains auxiliary functions to use with opencv
# Version: 0.0.1
==========... |
#include<bits/stdc++.h>
using namespace std;
const int N = 3e5 + 9;
int sign(long long x) { return (x > 0) - (x < 0); }
struct PT {
long long x, y;
PT() { x = 0, y = 0; }
PT(long long x, long long y) : x(x), y(y) {}
PT(const PT &p) : x(p.x), y(p.y) {}
PT operator + (const PT &a) cons... |
//----------------------------------------Inlcude Header & Source Files------------------
#include "AT-Header-Includes.h"
#include "AT-Header-Curl.h"
#include "AT-Header-User_Defined.h"
#include "AT-Source-Prototypes.cpp"
#include "AT-Source-Global_Variables.cpp"
#include "AT-Source-Curl.cpp"
#include "AT-Source-User_D... |
/*
This file is for proposing new searches for
the LFV_4_1 model.
- Last Updated by Zaki on September 5, 2019
*/
#include <iostream>
#include <cmath>
#include <ctime>
#include <fstream>
#include <chrono>
#include <ctime>
#include <omp.h>
#include "../include/Pheno.h"
// Cut classes header files
#include "../... |
#include "control_wm8960.h"
#include <Arduino.h>
#include "Wire.h"
/**
* @brief enable WM8960 voice card.
* @return true or false.
*/
bool AudioControlWM8960::enable(void)
{
Wire.begin();
// Serial.println("WM8960 INIT...");
//Reset Device
if (! Write(RESET, 0x0000))return false;
delay(100);
// Seri... |
/*ckwg +29
* Copyright 2016 by Kitware, SAS; Copyright 2017-2018 by Kitware, Inc.
* 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... |
// CS2134 Fall 2015
// HW9 Programming Solution
#include <iostream>
#include <unordered_map>
#include <list>
#include <fstream>
#include <sstream>
#include <vector>
#include <queue>
#include <stack>
#include <algorithm>
using namespace std;
/////////////////////////////////////////////////////////////////////////////... |
// Copyright (c) 2012 The Chromium Embedded Framework 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 "libcef/browser/url_network_delegate.h"
#include <string>
#include "include/cef_urlrequest.h"
#include "libcef/browser/b... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
// Copyright (c) 2011 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 "build/build_config.h"
#include "chrome/browser/nacl_host/nacl_process_host.h"
#if defined(OS_POSIX)
#include <fcntl.h>
#endif
#include "b... |
#include "shapes/path.hpp"
#include "math/circle_constant.hpp"
#include "renderer.hpp"
#include "shapes/cubic_vertex.hpp"
#include "shapes/cubic_detached_vertex.hpp"
#include "shapes/path_vertex.hpp"
#include "shapes/shape.hpp"
#include "shapes/straight_vertex.hpp"
#include <cassert>
using namespace rive;
Path::~Path... |
/*
* SHA-1 in C
* By <NAME> <<EMAIL>>
* 100% Public Domain
*
* Version: $Id: sha1.c,v 1.6 2004/05/28 17:00:35 aland Exp $
*/
//#include "autoconf.h"
#include <WinSock2.h>
#include <string.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef... |
#ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
//===========================================================================
// p... |
#include <iostream>
#include <vector>
#include <memory>
#include <fstream>
#include "sre/Texture.hpp"
#include "sre/Renderer.hpp"
#include "sre/Material.hpp"
#include "sre/SDLRenderer.hpp"
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtx/euler_angles.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/tran... |
/**
* @file exoflickr
* @brief Lightweight wrapper around the Flickr API for signing and such
*
* $LicenseInfo:firstyear=2012&license=viewerlgpl$
* Copyright (C) 2012 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License ... |
// I2Cdev library collection - MS5611-01BA01 I2C device class header file
// Based on MEAS MS5611-01BA01 datasheet, 07/2011 (DA5611-01BA01_006)
// 6/12/2012 by <NAME> <<EMAIL>>
// Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib
//
// Changelog:
// 2012-06-12 - Initial release... |
#include "DataProcessor.h"
#include <thread>
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <chrono>
#include <ctime>
#include <ratio>
#include <vector>
#include <numeric>
#include <cmath>
using namespace std;
DataProcessor::DataProcessor(boost::lockfree::spsc_queue<SensorData> &sensor_data) :... |
/*
FILENAME... devSmartMotor.cc
USAGE... Motor record driver level support for Animatics Corporation SmartMotors.
Version: $Revision: 1.2 $
Modified By: $Author: sluiter $
Last Modified: $Date: 2008-03-14 20:21:56 $
*/
/*
* Original Author: <NAME>
* Date: 03/21/03
*
* Experimental Ph... |
#include "llvm/Pass.h"
#include "llvm/Module.h"
#include "llvm/Function.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Type.h"
#include "llvm/Instructions.h"
#include "llvm/Instruction.h"
#include "llvm/Support/IRBuilder.h"
#include <string>
#include "llvm/Support/CommandLine.h"
#include <iostream>
#include <s... |
/*
Asynchronous WebServer library for Espressif MCUs
Copyright (c) 2016 <NAME>. All rights reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the Lice... |
/***********************************************************************************************
Capacitor
---------
VCV Rack module based on Capacitor by <NAME> from Airwindows <www.airwindows.com>
Ported and designed by <NAME>
Changes/Additions:
- mono
- no Dry/Wet
- CV inputs for Lowpass and Highpass
-... |
/*This file is part of the FEBio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio.txt for details.
Copyright (c) 2019 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any person obtaining ... |
////////////////////////////////////////////////////////////////////////////////
// //
// This file is part of NCrystal (see https://mctools.github.io/ncrystal/) //
// ... |
#include "Application.h"
#include "Globals.h"
#include "PanelConfig.h"
#include "ModuleHardware.h"
#include "ModuleCamera3D.h"
#include "Light.h"
#include "ModuleRenderer3D.h"
#include "MathGeoLib/MathGeoLib.h"
#include "mmgr/mmgr.h"
#include "CompCamera.h"
#define IM_ARRAYSIZE(_ARR) ((int)(sizeof(_ARR)/sizeof(*_ARR)... |
#include "modules/progressive/progressive.h"
#include <iostream>
#include <memory>
using std::cout;
using std::endl;
using std::make_shared;
static bool loadingLAS = false;
// TODO bad
static ProgressiveLoader* loader = nullptr;
void binaryUploadHook(shared_ptr<BinLoadData> loadData) {
loadData... |
// TextRenderer.cpp: implementation of the CTextRenderer class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "CdCoverCreator2.h"
#include "TextRenderer.h"
#include <math.h>
#include <Gdiplus.h>
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE... |
#include "LienceValidator.h"
#include <string.h>
#include "common.h"
#include "EncryptKit.h"
#include "UtilMachine.h"
static std::vector<std::string> splitString(const std::string& str, char spliter) {
std::vector<std::string> rv;
size_t off = 0;
while (off < str.size()) {
size_t pos =... |
#include <obj_loader.h>
#include <cg_common.h>
#include <object3d.h>
#include <mesh.h>
#include <geometry.h>
#include <material.h>
#include <light.h>
#include <application.h>
#include <json.hpp>
#include <assimp/Importer.hpp>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include <vector>
#include <regex>... |
#include "../common/prettynamer.h"
#include "tfile.h"
#include <QBuffer>
#include <QCryptographicHash>
#include <QDebug>
#include <QDir>
#include <QtEndian>
bool TFile::extractFiles()
{
QDir outputDir(getFilename().left(getFilename().indexOf('.')));
if (!outputDir.exists())
outputDir.mkpath(".");
... |
/*=========================================================================
Copyright 2009 Rensselaer Polytechnic Institute
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/lice... |
#include <iostream>
#include <fstream>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <unordered_set>
#include <set>
#include "parser.hpp"
#include "packet.hpp"
using namespace std;
class multitask{
public:
unsigned int target;
unsigned int seq;
queue<urbPacket> urbmsgs;
};
class delive... |
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofSetLogLevel(OF_LOG_VERBOSE);
cam.setup();
cam.autosavePosition = true;
cam.loadCameraPosition();
gui.setup("panel"); // most of the time you don't need a name but don't forget to call setup
... |
#include <array>
#include <cassert>
#include <chrono>
#include <cstddef>
#include <cstdio>
#include <cstring>
#include <ex/buffer.h>
#include <ex/shared_buffer.h>
#include <iostream>
#include <string>
#include <vector>
void testBufferFrom() {
std::array<int, 4> arr = {1, 2, 3, 4};
auto b = ex::buffer::from(arr, 2)... |
// =========================================================================== //
// //
// Copyright 2009 <NAME> and McGill University. //
// //
// Licens... |
#include "GD2Terminal.h"
// 160 character line buffer
char terminal_linebuffer[] = " ";
uint8_t *const linebuffer_const = (uint8_t*)terminal_linebuffer;
GD2T... |
//
// Reformat either:
// {-x=xml file, -r=Rick file, -d-idb}.
//
// New xml files have 'title' attributes like this:
// "z.id-rgn", or,
// "z.id-rgn_col.row.cam" (if data present).
//
// New Rick files have lines like this:
// "z id 6_aff_val_by_row -999 -999 -999 path", or,
// "z id 6_aff_val_by_row col row cam path"... |
////////////////////////////////////////////////////////////////////////////////
//
// Visual Leak Detector - Test Suite
// Copyright (c) 2005-2014 VLD Team
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by t... |
// 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 "extensions/browser/api/web_request/web_request_permissions.h"
#include "base/strings/string_piece.h"
#include "base/strings/string_util.h"
... |
Matrix4x4 inverse( const Matrix4x4& M, bool* isInvertible ) {
Matrix4x4 inv;
bool invertible;
const float a0 = M(0, 0) * M(1, 1) - M(0, 1) * M(1, 0);
const float a1 = M(0, 0) * M(1, 2) - M(0, 2) * M(1, 0);
const float a2 = M(0, 0) * M(1, 3) - M(0, 3) * M(1, 0);
const float a3 = M(0, 1) * M(1, 2) - M(0, 2) *... |
// 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"); you may... |
//
// MamaOtis.cpp
// Bas
//
// Created by <NAME> on 24-04-16.
//
//
#include "MamaOtis.hpp"
MamaOtis::MamaOtis(ofxJVisuals* v){
setName("MamaOtis");
this->v = v;
v->setAlpha(50);
makeThings1();
}
void MamaOtis::stop(){
for(int i=0; i<vormen.size(); i++){
Vorm* vorm ... |
#include <fstream>
#include "gtest/gtest.h"
#include "PROPOSAL/math/RandomGenerator.h"
#include "PROPOSAL/medium/Medium.h"
#include "PROPOSAL/medium/MediumFactory.h"
#include "PROPOSAL/particle/Particle.h"
#include "PROPOSAL/scattering/ScatteringFactory.h"
#include "PROPOSAL/scattering/ScatteringHighland.h"
#includ... |
#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include "opencv2/imgcodecs.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
#include <iostream>
#include <cmath>
#include <chrono>
// Variables relacionadas a la tom... |
#include <cmath>
#include "GeoDiff.h"
#include <Rcpp.h>
#include <RcppArmadillo.h>
#include <chrono>
#include <iostream>
using namespace std::chrono;
// written by <NAME> (<EMAIL>) and <NAME> (<EMAIL>)
// some of the parameters are not clearly named (Ned doesn't know what biological significance they have)
// see L... |
/*! \file MultiStageMetropolisRenderer.cpp
* \author <NAME>
* \brief Implementation of MultiStageMetropolisRenderer class.
*/
#include "MultiStageMetropolisRenderer.h"
#include "../importance/LuminanceImportance.h"
#include "../importance/EstimateImportance.h"
#include "../mutators/KelemenMutator.h"
MultiStageMe... |
#include "Zstort.h"
#include "IPlug_include_in_plug_src.h"
#include "IControl.h"
#include "resource.h"
#include "sinewavegen.h"
#include "fastsine.h"
#include "zverb.h"
#include "AudioProcessor.h"
const int kNumPrograms = 1;
enum EParams
{
kGain = 0,
kTremDepth,
kTremFreq,
kDist,
kBits,
kRate,
kNumPara... |
/* created by <NAME> at CU Boulder, 07/17/2018 */
#include <iostream>
#include "ModelManagerT.h"
#include "ShapeBaseT.h"
#include "ElementBaseT.h"
using namespace std;
using namespace MPM;
ModelManagerT::ModelManagerT(){
}
ModelManagerT::~ModelManagerT(){
}
void ModelManagerT::readInput(const char* name)
{
f... |
#include "writer/verilog/axi/channel_generator.h"
#include "iroha/i_design.h"
#include "writer/verilog/module.h"
#include "writer/verilog/port.h"
#include "writer/verilog/port_set.h"
#include "writer/verilog/table.h"
namespace {
const int kStrbMagic = -7;
} // namespace
namespace iroha {
namespace writer {
namespac... |
//*****************************************************************
// Copyright 2013 MIT Lincoln Laboratory
// Project: SPAR
// Authors: OMD
// Description: Implementation of LawMatchRatePubSubGen
//
// Modifications:
// Date Name Modification
// ---- ---- ... |
//////////////////////////////////////////////////////////////////////////
// Homemade GPS Receiver
// Copyright (C) 2013 <NAME>
//
// 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 vers... |
// Data and Structures 2 (CMP202) - Assessment Project
// @author <NAME> <<EMAIL>>
#include <freeglut.h>
#include "dependencies.h"
#include "mandelbrot.h"
#include "input.h"
#include "Camera.h"
#include "FreeCamera.h"
const unsigned WINDOW_WIDTH = 1024;
const unsigned WINDOW_HEIGHT = 1024;
const unsigned WINDOW_INIT_X... |
/* Copyright (c) 2005, 2006, 2022 <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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.