text
stringlengths
5.71k
33.7k
#include "MNMMessages.hh" #include "MNMParams.hh" #include "helpers.h" #include "Elektron.hh" #ifdef HOST_MIDIDUINO #include <stdio.h> #endif bool MNMGlobal::fromSysex(uint8_t *data, uint16_t len) { if (len < 264) { #ifdef HOST_MIDIDUINO fprintf(stderr, "wrong len, %d should be %d bytes\n", len, 272); #endif ...
/****************************************************************************//* * 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, includ...
// UDP service client // Author: <NAME> <<EMAIL>> #include "udp_client.h" #include <sys/types.h> #include <sys/socket.h> #include <arpa/inet.h> #include <sys/ioctl.h> #include <sys/select.h> #include <netdb.h> #include <sstream> #include <ros/names.h> #include <ros/package.h> #include <nimbro_service_transport/Ser...
#include "LibertyServer.h" #include <string> #include <iostream> #include "tchar.h" #include "SocketServer.h" #include "PDI.h" #include "messagecodes.h" using namespace std ; CPDIdev g_pdiDev; CPDImdat g_pdiMDat; CPDIser g_pdiSer; DWORD g_dwFrameSize; BOOL g_bCnxReady; DWORD g_dwStationMap; #define BUFFER...
/* ------------------------------------------------------------------------------- Name: FPL-Demo | NBodySimulation Description: Multi-Threaded N-Body 2D Smoothed Particle Hydrodynamics Fluid Simulation based on paper "Particle-based Viscoelastic Fluid Simulation" by <NAME>, <NAME>, and <NAME>. A experiment about c...
/* * Copyright (c) 2021 HopeBayTech. * * This file is part of Tera. * See https://github.com/HopeBayMobile for further info. * * 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 * * ...
#include <stdlib.h> #include <math.h> #include <vector> #include <algorithm> #include "csa.hh" #include "kofn.hh" #include "Point.hh" #include "Matrix.hh" #include "Array.hh" #include "match.hh" #include "Timer.hh" #include "mex.h" #define assert( isOK ) ( (isOK) ? (void)0 : (void) mexErrMsgTxt("assert failed\n") ) #de...
#include <math.h> #include <iostream> #include <fstream> #include <string> #include <sstream> #include <map> #include <list> #include <iterator> #include <vector> #include <typeinfo> #include <algorithm> #include "indri/Combiner.hpp" #include "indri/Repository.hpp" #include "indri/CompressedCollection.hpp" #include "i...
// // IntelligentKeyboard.cpp // Clock Signal // // Created by <NAME> on 02/11/2019. // Copyright © 2019 <NAME>. All rights reserved. // #include "IntelligentKeyboard.hpp" #include <algorithm> #define LOG_PREFIX "[IKYB] " #include "../../../Outputs/Log.hpp" using namespace Atari::ST; IntelligentKeyboard::Intel...
//===-- TraceHTR.cpp ------------------------------------------------------===// // // 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 // //===---------------------------...
// $Header: /nfs/slac/g/glast/ground/cvs/GlastRelease-scons/rdbModel/src/test/test_build.cxx,v 1.24 2005/11/04 21:45:31 jrb Exp $ // Test program for rdbModel primitive buiding blocks #include <iostream> #include <string> #include <cstdlib> #include "rdbModel/Rdb.h" #include "rdbModel/RdbException.h" #include "rdbMode...
/** @file paex_ocean_shore.c @ingroup examples_src @brief Generate Pink Noise using Gardner method, and make "waves". Provides an example of how to post stuff to/from the audio callback using lock-free FIFOs implemented by the PA ringbuffer. Optimization suggested by <NAME> uses a tree ...
#include <vector> #include <set> #include <algorithm> #include <math.h> #include <time.h> #include "SkTypes.h" #include "SkTypeface.h" #include "SkCanvas.h" #include "SkPaint.h" #include "SkPath.h" #include "common.h" #include "renderRules.h" //#include "utf8.cpp" #include "utf8/unchecked.h" template <typename T> cl...
#include "sprite_importer.h" #include "halley/tools/assets/import_assets_database.h" #include "halley/bytes/byte_serializer.h" #include "halley/resources/metadata.h" #include "halley/file_formats/image.h" #include "halley/tools/file/filesystem.h" #include "halley/core/graphics/sprite/sprite_sheet.h" #include "halley/co...
// Copyright (c) 2011 The Chromium Embedded Framework Authors. // Portions copyright (c) 2010 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 "browser_persistent_cookie_store.h" #include <list> #include "cef_t...
#include "Game.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #include <SDL2/SDL_timer.h> #include "WindowsWrapper.h" #include "ArmsItem.h" #include "Back.h" #include "Boss.h" #include "BossLife.h" #include "BulHit.h" #include "Bullet.h" #include "Caret.h" #include "Draw.h" #include "Ending.h" #inclu...
#include "inc/app.h" #include <iostream> #define DISP_NORMALIZATION using namespace std; App::App(const Params& params) : p(params), running(false){ isVideoFile=false; isImageFile=false; frameCounter=0; cuda::printShortCudaDeviceInfo(cuda::getDevice()); cout << "stereo_match_gpu sample\n"; ...
/* XMRig * Copyright (c) 2017-2019 XMR-Stak <https://github.com/fireice-uk>, <https://github.com/psychocrypt> * Copyright (c) 2018-2021 SChernykh <https://github.com/SChernykh> * Copyright (c) 2016-2021 XMRig <<EMAIL>> * * This program is free software: you can redistribute it and/or modify * it un...
#include <stdio.h> #include <stdlib.h> // for system #include <iostream> #include <fstream> #include <string> #include <vector> #include "../vowpalwabbit/vw.h" #include "../vowpalwabbit/ezexample.h" #include "libsearch.h" size_t sed(const string &s1, const string &s2, size_t subst_cost=1, size_t ins_cost=1, size_t del...
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories <NAME>, <EMAIL> This software is distributed under the GNU General Public License. See the README file in t...
//This file is just included in context.cpp bool isPowerOfTwo(const uint n) { if (n == 0) { return 0; } return (n & (n - 1)) == 0; } Namespace* CoreIRLoadHeader_memory(Context* c) { Namespace* memory = c->newNamespace("memory"); Params MemGenParams = {{"width",c->Int()},{"depth",c->Int()}}; //L...
/* process_pairs_dual.cpp * * <NAME> */ #include <iostream> #include <fstream> #include <string> #include <sstream> #include <vector> #include <cmath> #include <algorithm> #include <map> #include <utility> #include <unordered_set> template <class T> inline void hash_combine(std::size_t & seed, const T & v) { st...
#include "tpch.h" #include "SceneSerializer.h" #include "Entity.h" #include "Components.h" #include "Toast/Script/ScriptEngine.h" #include <yaml-cpp/yaml.h> namespace YAML { template<> struct convert<DirectX::XMFLOAT3> { static Node encode(const DirectX::XMFLOAT3& rhs) { Node node; node.push_back(rhs...
#include "slice.hpp" #include "slice_container.hpp" #include <iostream> #include <assert.h> #include <functional> static uint32_t vexregs[VEX_REGS]; // SliceFunctionalModel *slice; SliceContainerModel *parent; using namespace std; void input(uint32_t op) { uint32_t rs1 = ((op >> OPCODE_RS1_SHIFT)&OPCODE_RS1_MASK...
#include <chrono> #include <iostream> #include <sstream> #include <string> #include <thread> #include <mutex> #include <condition_variable> #include "attacks.h" #include "data.h" #include "movegen.h" #include "moves.h" #include "search.h" #include "hash.h" /// for time management std::thread search_th...
/** * @file LLCoprocedurePool.cpp * @author <NAME> * @brief Singleton class for managing asset uploads to the sim. * * $LicenseInfo:firstyear=2015&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2015, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify i...
//========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ==== // // Purpose: // //============================================================================= #include "stdafx.h" #include <direct.h> #include <io.h> #include <WorldSize.h> #include "Gameconfig.h" #include "GlobalFunctions...
/************************************************************************************************************************************ Copyright 2017 Autodesk, Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You ...
// // cannon.cpp // CS360 // // Created by <NAME> on 28/08/2019. // Copyright © 2019 <NAME>. All rights reserved. // #include "gl_includes.h" #include "cannon.hpp" #include "missile.hpp" #include <iostream> #include <algorithm> #include <list> #include <cmath> extern bool GAME_OVER; extern std::list<Missile*> mis...
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Exporty // Copyright (c) 2015 <NAME> // // Use, modification, and distribution is subject to the Boost Software License, // Version 1.0 (See accompanying file LICENSE). // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=...
#include "../plugins_common.h" #include <clang/Frontend/FrontendPluginRegistry.h> #include <clang/Frontend/CompilerInstance.h> #include <clang/Lex/Preprocessor.h> #include <clang/Lex/MacroInfo.h> #include <clang/AST/Decl.h> #include <clang/ASTMatchers/ASTMatchFinder.h> #include <clang/AST/ASTContext.h> #include <clang...
/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors ...
/************************************************************************** *** *** Copyright (c) 2000-2006 Regents of the University of Michigan, *** <NAME>, <NAME>, <NAME> *** and <NAME> *** *** Contact author(s): <EMAIL>, <EMAIL> *** Original Affiliation: University of Michigan, E...
/*cppimport <% cfg['compiler_args'] = ['-std=c++17', '-fopenmp', '-O0'] cfg['linker_args'] = [ '-L/home/lukas/documents/work/eckit/install/lib/', '-L/home/lukas/documents/work/atlas/install/lib/', '-Wl,-rpath,/home/lukas/documents/work/atlas/install/lib:/home/lukas/documents/work/eckit/install/lib', '-f...
///////////////////////////////////////////////////////////////////////////////// // // @file aws_auth.cpp // @bried Implementation of data structures that are visible only to this folder // ///////////////////////////////////////////////////////////////////////////////// #include "aws_auth.h" #include <fstream> #inc...
#include <mpl_planner/planner/map_planner.h> #include <planning_ros_msgs/VoxelMap.h> #include <planning_ros_utils/data_ros_utils.h> #include <planning_ros_utils/primitive_ros_utils.h> #include <planning_ros_utils/voxel_grid.h> #include <ros/ros.h> #include <std_msgs/Bool.h> #include <std_msgs/Int8.h> #include "bag_rea...
#ifdef VSS_WINDOWS #include <windows.h> #include <windowsx.h> #endif #ifdef VSS_IRIX #include <sys/resource.h> // for prctl() #include <sys/prctl.h> #endif #ifdef VSS_LINUX #include <sys/mman.h> #endif #include <climits> #include <csignal> #include <cstring> #include <fcntl.h> #include "platform.h" #include <sys/sta...
#include <iostream> #include <mutex> #include <set> #include <map> #include <algorithm> #include <cstring> #include <chrono> #include <sstream> #include <vector> #include <thread> extern "C" { #include <sys/socket.h> #include <arpa/inet.h> #include <stdio.h> #include <netinet/in.h> #include <stdlib.h> #include <unistd....
#include "invoicer.h" #include "lineitem.h" #include "ui_invoicer.h" #include <QHBoxLayout> #include <QVBoxLayout> #include <QPushButton> #include <QMessageBox> #include <QStringLiteral> #include <QStringBuilder> #include <QFileDialog> #include <QDir> #include <QTextStream> #include <QJsonDocument> #include <QJsonArray...
// DOS gui? Awesome. // // Deprecated; use dos_class.cpp. This file will not be updated when new // features are added to dos_gui.h. #include "../terminal/terminal_codepage.h" #include "../terminal/terminal_extras.h" #include "../boiler/boiler.h" #include <string> #include <vector> #include <utility> #include <iostr...
/**************************************************************************** * * (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * ***************************************...
/* Copyright (c) 2015 Convey Computer Corporation * * This file is part of the OpenHT toolset located at: * * https://github.com/TonyBrewer/OpenHT * * Use and distribution licensed under the BSD 3-clause license. * See the LICENSE file for the complete license text. */ #include "stdafx.h" #include "Design.h" ...
// // Created by JBinggi on 01.07.18. // #include <curl/curl.h> #include <fstream> #include <zconf.h> #include "minerapi.h" #include "../nlohmann/json.hpp" #include "helper.h" #include "data.h" #include "defines.h" using namespace std; // for convenience using json = nlohmann::json; int iGpuCount_m; /** * DualMiner ...
//===- cxa_pnacl_sjlj_exception.cpp - PNaCl SJLJ-based exception handling--===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
/* * Copyright 2021 WebAssembly Community Group participants * * 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...
// Copyright 2019 Google LLC & <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 t...
#include <cmath> #include <cfloat> // DBL_EPSILON #include "cpp_mdp.hpp" #include "../cpp_lib.hpp" // combinations #ifdef TESTS #include "../serialize_util.hpp" #else #include <iostream> #endif // Cython needs an integer return, thus all void functions return 0. MDP::MDP() {} MDP::~MDP() {} int MDP::init( ...
/* * fw.cpp * 3piRB-shield fw * Created: 30.03.2017 0:58:50 * Author : JarekParal */ #include "settings.hpp" #include <avr/io.h> #include <avr/interrupt.h> #include <math.h> #include <util/delay.h> #include <stddef.h> #include "avrlib/assert.hpp" #include "avrlib/async_usart.hpp" #include "avr...
// MABE is a product of The Hintze Lab @ MSU // for general research information: // hintzelab.msu.edu // for MABE documentation: // github.com/Hintzelab/MABE/wiki // // Copyright (c) 2015 Michigan State University. All rights reserved. // to view the full license, visit: // github...
/************************************************************** * * 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...
// Mat4.cpp #include "Mat4.h" const float Deg2Rad = 0.0174532925f; const float Rad2Deg = 57.2957795f; //////////////////////// /// Constructors /// //////////////////////// // Constructor, default sets to identity matrix Mat4::Mat4( const float aa, const float ba, const float ca, const float da, const float ...
#include "gui_common.h" using namespace GUI; SDLKey GUI::WaitForKey(int delay) { while (true) { SDL_Event event; while (SDL_PollEvent(&event)) { if (event.type == SDL_KEYDOWN) return event.key.keysym.sym; } SDL_Delay(delay); } } void GUI::WaitForKeyClic...
#include <iostream> #include "shadowing/version.h" #include "obj/objFile.h" #include <unordered_map> #include <vector> #include <set> #include <algorithm> #include <utility> #include "sat/coordinateSystems.h" #include "common/math.h" #include "common/rotationMatrices.h" using namespace gnssShadowing::shadowing; usi...
#include "common.hpp" #include <string> #include <cassert> #include <map> #include <vector> #include <tuple> #include <algorithm> #include <random> #include <math.h> // eigen #include <Eigen/Core> using namespace Eigen; using namespace std; constexpr int BUF_SIZE = 1000; using p_t = pair<int, int>; using r_t = vect...
/* Copyright (c) 2012 Advanced Micro Devices, 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 commercial...
/* * Copyright (c) 2020-2021, NVIDIA CORPORATION. * * 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...
/* * Copyright 2016 WebAssembly Community Group participants * * 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...
#include <iostream> #include <cstdlib> #include <stdexcept> #include <tclap/CmdLine.h> #include <rpiCommonTools.hxx> #include "rpiDiffeomorphicDemons.hxx" /** * Diffeomorphic demons executable. * @author <NAME> and <NAME> * @date 2010/10/29 */ /** * Structure containing the parameters. */ struct Param{ ...
/* Copyright 2016-2019 Intel Corporation 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 w...
// GLEW нужно подключать до GLFW. // GLEW //#define GLEW_STATIC #include <GL/glew.h> // GLFW #include <GLFW/glfw3.h> #define STB_IMAGE_IMPLEMENTATION #include <STB/stb_image.h> #include <GLM/glm.hpp> #include <GLM/gtc/matrix_transform.hpp> #include <GLM/gtc/type_ptr.hpp> #define GLM_ENABLE_EXPERIMENTAL #include <GLM/...
//-------------------------------------------------------------------------------------- // // // Copyright 2014 ADVANCED MICRO DEVICES, INC. All Rights Reserved. // // AMD is granting you permission to use this software and documentation (if // any) (collectively, the "Materials") pursuant to the terms and conditions...
#include <cstddef> #include <cstdint> #include <cstring> #include <iostream> #include <memory> #include <stdexcept> #include <system_error> #include <utility> #include <zimg++.hpp> #include "aligned_malloc.h" #include "argparse.h" #include "mmap.h" #include "win32_bitmap.h" namespace { struct Arguments { const cha...
//+------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1994 - 1997. // // File: httpfnc.c // // Contents: Common HTTP helper functions // // Classes: // // Functions: // // History: 1-20-97 tonyci // ...
/* Defines the functions of the Frame Author : <NAME> Date : 30 Sep 2020 Changelog: subbu - 9/30 - Initial commit subbu - 10/27 - update members+methods */ #include <iostream> #include <Eigen/Core> #include <opencv2/core/eigen.hpp> // Custom headers #include "frame.h" #include "utils.h" #include "opti...
/* ** gl_decal.cpp ** OpenGL decal rendering code ** **--------------------------------------------------------------------------- ** Copyright 2003-2005 <NAME> ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the foll...
#include <sstream> #include "core/MemoryUtils.h" #include "core/Params.h" #include "core/RedisCommand.h" #include "core/TritonSortAssert.h" #include "core/Utils.h" #include "mapreduce/common/JobInfo.h" #include "mapreduce/common/ReadRequest.h" #include "mapreduce/common/RecoveryInfo.h" #include "mapreduce/common/Redis...
#include "glsl_lookup.h" static std::unordered_map<std::string, KeywordDefinition> keywords = { { "const", { Keyword::Const, KeywordType::Qualifier, GL_NONE } }, { "uniform", { Keyword::Uniform, KeywordType::Storage, GL_NONE } }, { "buffer", { Keyword::Buffer, KeywordType::Storage, GL_NONE } }, { "shar...
// Copyright (c) 2019 Intel Corporation // // 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, publ...
// // <NAME> @ University of York, 2020 // // This file creates an analysis object containing important constants which are used throughout analysis // #include "../include/FNT.h" namespace fnt{ // create unique working area const std::string FNT::filePrefix = "/mnt/c/Users/ggon0/source/repos/FNT2/inputs/"; // file p...
// // Created by <NAME> on 10/28/20. // #include "curveFitUtils.h" #include "math/nonmax_suppression.h" #include "utils/printvec.h" #include "geometry/shapes2/find_adjacent_ranges.h" #define IMGSCALE 1200 #define MARGIN 100 Eigen::Vector2d getDims(const CombinedCurve &curve) { Eigen::MatrixX2d d = curve.uniformS...
# include "APCGenetic.h" APCGenetic::APCGenetic(const APCProblem *p) :APCAlgorithm(p,"GENETIC") { this->population_size = 0; this->mutation_prob = 0.001; this->cross_prob = 0.7; best_solution = NULL; num_evaluations = 0; generation = 0; mutations = NULL; } void APCGenetic::clearSolutions...
#include "zcommandline.h" #include <QFileInfoList> #include <QDir> #include <ostream> #include <fstream> #include <set> #include "zargumentprocessor.h" #include "ztest.h" #include "zobject3dscan.h" #include "zjsonparser.h" #include "zjsonobject.h" #include "tz_error.h" #include "flyem/zflyemqualityanalyzer.h" #includ...
#include "ResFont.h" #include "Global.h" #include "Util/Utility.h" #include "XFileUtils.h" #include "AppFrame.h" #include "LogSystem.h" #include "Renderer.h" #include "ResourceMgr.h" #include "LabelPool.h" #include "2d/CCFontFreeType.h" using namespace std; using namespace cocos2d; using namespace lstg; void ResFont...
#include "gtest/include/gtest/gtest.h" #include "../src/element.h" #include "../src/assembly.h" #include <time.h> #include <iostream> #include <cstdlib> //#include "test.h" #define GTEST_COLOR 1 #define GTEST_OUTPUT 1 using namespace arma; namespace { // Define test fixtures class Q4Test : public ::testing::Test {...
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (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 distributed under the License is d...
#include "nn/nn.hpp" #include "pix/pix.hpp" #include <iostream> #include <chrono> #include <queue> #include <thread> #include <mutex> #include <condition_variable> #include <cmath> // ::exp(...), ::tanh(...) constexpr int BOX_SIZE = 128; constexpr int TRAINING_SIZE = (BOX_SIZE < 128)? BOX_SIZE : 128; constexpr d...
// Copyright (c) 2010, <NAME> <<EMAIL>>, // All rights reserved. // // Redistribution and use of this code or any derivative works are // permitted provided that the following conditions are met: // // * Redistributions may not be sold, nor may they be used in a // commercial product or activity. // // * Redistribu...
// -*-c++-*- // // Copyright 2001 Novint Technologies, Inc. All rights reserved. // Available only under license from Novint Technologies, Inc. // // matrix.cpp -- contains the etMatrix implementation. // // $Revision: #1 $ // $Change: 6627 $ // #include "cbase.h" #include "haptics_common.h" #include "haptics_matrix....
#include <unordered_map> #include <crocore/filesystem.hpp> #include "vierkant/Font.hpp" #define STB_RECT_PACK_IMPLEMENTATION #include "stb_rect_pack.h" #define STB_TRUETYPE_IMPLEMENTATION #include "stb_truetype.h" #include <codecvt> #include <vierkant/MeshNode.hpp> std::wstring utf8_to_wstring(const std::string &...
#include "hook-dll.h" // Find injected 'FAST-DLL.dll' handle from monitored process. HMODULE findRemoteHModule(DWORD dwProcessId, const char* szdllout, BOOL isWoW64) { MODULEENTRY32 me = { sizeof(me) }; BOOL bMore = FALSE; HANDLE hSnapshot; if (isWoW64) hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | ...
//#include "stdafx.h" #include "BitmapHandler.h" // C99 doesn't define M_PI (GNU-C99 does) #define M_PI 3.14159265358979323846264338327 #define MAX_BRIGHTNESS 255 CBitmapHandler::CBitmapHandler() : currentState(Types::EIMAGESTATE_FIRST), minThreshold(45), maxThreshold(50), sigmaValue(1.0f) { // em...
/* * MIT License * * Copyright (c) 2020 Mapless AI, Inc. * * 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,...
#include <string.h> #include <stdio.h> #include <cellstatus.h> #include <sys/prx.h> #include <sys/exportcplusplus.h> #include <sys/ppu_thread.h> #include "tier0/platform.h" #include "logging.h" #include "dbg.h" #include "memalloc.h" #include "platform.h" #include "threadtools.h" #include "ps3/ps3_win32stubs.h" #includ...
// Sarvottamananda (shreesh) // 2020-09-28 // app_skybox.cpp v0.0 (OpenGL Code Snippets) // // Apps derived from App_base #include "app_skybox.h" // clang-format off #include <GL/glew.h> #include <GLFW/glfw3.h> // clang-format on #include "cs3_config.h" #include "img_stuff.h" #include "model_cube.h" #include "shader...
/* Copyright (c) 2015, <NAME>, <EMAIL> 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 of conditions and the follo...
#ifdef WIN32 #include <SDL.h> #undef main #else #include <SDL2/SDL.h> #endif #include <GL/glew.h> #include <string_view> #include <stdexcept> #include <iostream> #include <chrono> #include <vector> #include <map> #include <cmath> #include <fstream> #include <sstream> #include "shader_sources.h" #include "shader.h" #...
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=4 sw=4 et tw=80: * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file exce...
#include "flite/cg/cg.hpp" #include "flite/stats/cart.hpp" #include "flite/utils/file.hpp" #include "./cg_map.hpp" /* Write magic string */ static void cst_cg_write_header(cst_file fd) { const char* header = cg_voice_header_string; cst_fwrite(fd, header, 1, cst_strlen(header) + 1); cst_fwrite(fd, &cst_e...
#include "arm_compute/graph/Graph.h" #include "arm_compute/graph/Nodes.h" #include "arm_compute/runtime/CL/CLScheduler.h" #include "arm_compute/runtime/CPP/CPPScheduler.h" #include "arm_compute/runtime/Scheduler.h" #include "support/ToolchainSupport.h" #include "utils/GraphUtils.h" #include "utils/Utils.h" #include <c...
#include <iostream> #include <chrono> #include <iomanip> #include <stdlib.h> #include <fstream> #include "Classes/SimpleMultiwayDecoder.h" #include "Classes/MultiwayDecoder.h" #include "BRKGA/MTRand.h" #include "BRKGA/BRKGA.h" #include "Classes/MultiwayAlternativeSolver.h" #include "Classes/MultiwaySortSolver.h" usi...
/* * prjsv 2016 * 2013, 2014, 2016 * <NAME> */ #include <Application.hpp> #include <Config.hpp> #include <Env/Env.hpp> #include <JSON/JSONSerialiser.hpp> #include <Stats/Stats.hpp> #include <Utility/Constants.hpp> #include <algorithm> #include <cassert> namespace // anonymous { Application* currentApp = nullptr...
/* Fast Blocked Clause Decomposition */ #include <math.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #include <sys/time.h> #include <sys/times.h> #include <string.h> #include <limits.h> #include <float.h> #include <getopt.h> #include <signal.h> #define ABS(x) ((x)>0?(x):(-x)) int nV...
// // Voxglitch "repeater" module for VCV Rack // // This code is heavily based on <NAME>'s PLAY module // which can be found here: https://github.com/cfoulc/cf/blob/v1/src/PLAY.cpp #include "plugin.hpp" #include "osdialog.h" #include "sample.hpp" #define NUMBER_OF_SAMPLES 5 #define NUMBER_OF_SAMPLES_FLOA...
#ifdef CH_LANG_CC /* * _______ __ * / ___/ / ___ __ _ / / ___ * / /__/ _ \/ _ \/ V \/ _ \/ _ \ * \___/_//_/\___/_/_/_/_.__/\___/ * Please refer to Copyright.txt, in Chombo's root directory. */ #endif // <NAME> Nov 20 2001 #include "BaseIVFactory.H" #include "EBIndexSpace.H" #...
// DGen v1.10+ // Megadrive C++ module saving and loading #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdint.h> #include "md.h" #include "system.h" void md::m68k_state_dump() { /* 32 and 16-bit values must be stored LSB first even though M68K is big-endian for compatibility with other ...
// -*- mode: c++; tab-width: 4; indent-tabs-mode: t; eval: (progn (c-set-style "stroustrup") (c-set-offset 'innamespace 0)); -*- // vi:set ts=4 sts=4 sw=4 noet : // // Copyright 2010, 2011 wkhtmltopdf authors // // This file is part of wkhtmltopdf. // // wkhtmltopdf is free software: you can redistribute it and/or modi...
// This file contains member functions for interface class #include "interface.h" #include "functions.h" void INTERFACE::set_up(double salt_conc_in, double salt_conc_out, int salt_valency_in, int salt_valency_out, double bx, double by, double bz) { // useful combinations of different dielectric constants (inside an...
#include <ros/ros.h> #include <geometry_msgs/Twist.h> #include <tf/tf.h> #include <string> #include <iostream> #include <geometry_msgs/PoseStamped.h> #include <geometry_msgs/PoseWithCovarianceStamped.h> #include <tf/transform_datatypes.h> #include <stdio.h> //JAC #include <math.h> #include <vector> #include <fstream> #...
#include "pose_regression.h" void PoseRegression::RefinePose(const HybridPredictionContainer& predictions, const PoseRegressionPara& para, AffineXform3d* rigid_pose) { vector<double> weight_keypts, weight_edges, weight_symcorres; Reweighting(predictions, para, *rigid_pose, &weight_keypts, &weight_...
// Copyright (c) 2009 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/extensions/extension_updater.h" #include "base/logging.h" #include "base/file_util.h" #include "base/file_version_info.h" #i...