text
stringlengths
5.71k
33.7k
#include "stdafx.h" #include "PushSource.h" #include "PushPin.h" #include "PushGuids.h" #include "TransportUrl.h" #include "Settings.h" #include "live.h" #include "trace.h" #include <Dvdmedia.h> #pragma managed /** * This is the output pin construction for our source filter */ CPushPinRTSP::CPushPinRTSP(HRESULT *ph...
// Copyright (C) 2017 Electronic Arts Inc. All rights reserved. #include "recorder.hpp" #include "cameras.hpp" #include "color_correction.hpp" #include <boost/filesystem.hpp> #include <boost/algorithm/string/join.hpp> #include <boost/format.hpp> #include <opencv2/imgproc.hpp> #include <opencv2/opencv.hpp> #include...
#include "model.h" #include "output.h" #include "device_array.h" #include "raytracer.h" #include "camera.h" #include <fstream> #include <iostream> #include <random> #include <nlohmann/json.hpp> #include <filesystem> using nlohmann::json; SHCoeffs randomSHCoeffs(std::mt19937& generator, std::normal_distribution<float...
#include "Status.h" #include "SourceLocation.hh" const GLuint Status::STATUS_GLYPH_INDICES[] = {0, 1, 2, 0, 2, 3}; #ifdef HAVE_SOIL2 #include <SOIL2.h> inline void saveTexture(GLuint image_texture, GLsizei width, GLsizei height, int channels, const char* name, GLint pack =-1, GLint rowlen =-...
/*************************************************************** * * Copyright (C) 1990-2021, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. Y...
// Copyright 2015 The Chromium OS 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 "crash-reporter/arc_collector.h" #include <memory> #include <unordered_map> #include <utility> #include <brillo/syslog_logging.h> #include <...
#include "PepsiDetector.hpp" #include "PepsiDetectorImpl.hpp" #include <cstdio> #include <algorithm> #include <chrono> #include <spdlog/spdlog.h> #include <spdlog/fmt/ostr.h> #include "blobs.hpp" #include "core.hpp" #include "drawing.hpp" #include "format.hpp" #include "imglog.hpp" #include "moments.hpp" #include "...
#include <stdlib.h> #include <TFile.h> #include "MyXAODTools/MonoJetAna.h" #include "MyXAODTools/Helper.h" #include "CPAnalysisExamples/errorcheck.h" #include "xAODBase/IParticleHelpers.h" #include "xAODMuon/MuonContainer.h" #include "xAODEgamma/ElectronContainer.h" #include "xAODEgamma/ElectronAuxContainer.h" #incl...
/* * This project constitutes a work of the United States Government and is not * subject to domestic copyright protection under 17 USC § 105. * * However, because the project utilizes code licensed from contributors and other * third parties, it therefore is licensed under the MIT License. * http://opensource.or...
////////////////////////////////////////////////////////////////////////// // // This file is part of Iron's source files. // Iron is free software, licensed under the MIT/X11 License. // A copy of the license is provided with the library in the LICENSE file. // Copyright (c) 2016, 2017, <NAME> // ////////////////////...
#include <iostream> #include <fstream> #include <math.h> #include <time.h> #include <stdlib.h> #include <string.h> using namespace std; /****************************************************************/ /* This programme implement a simulated annealing for the quadratic assignment problem along the ...
/* * Copyright (c) 2018-2020, <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 ...
#pragma once #include <climits> #include <cstdint> #include <cmath> #include <limits> #include <iostream> #include <tdc/intrisics/lzcnt.hpp> #include <tdc/intrisics/popcnt.hpp> #include <tdc/intrisics/tzcnt.hpp> #include <tdc/vec/item_ref.hpp> #include <tdc/util/likely.hpp> namespace tdc { /// \brief 40-bit uns...
#include <sys/sendfile.h> #include <linux/fs.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <libgen.h> #include <utils.hpp> #include <selinux.hpp> using namespace std; ssize_t fd_path(int fd, char *path, size_t size) { snprintf(path, size, "/proc/sel...
#include <stdlib.h> #include <fstream> #include "gtest/gtest.h" #include "openenclave/attestation/sgx/evidence.h" #include "attestation.h" #include "crypto.h" // SGX Remote Attestation UUID. static oe_uuid_t sgx_remote_uuid = {OE_FORMAT_UUID_SGX_ECDSA}; // Change a random byte in the provided buffer to a different ...
//**.****|****.****|****.****|****.****|****.****|****.****|****.****|****.****| // * energy_losses.cc * galprop package * 4/14/2000 //**"****!****"****!****"****!****"****!****"****!****"****!****"****!****"****| //**.****|****.****|****.****|****.****|****.****|****.****|****.****|****.*...
//============================================================================ // // This file is part of GPSTk, the GPS Toolkit. // // The GPSTk 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; ei...
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * 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, ...
/* FILE: imageatlas.cc -*-Mode: c++-*- * * Atlas class derived from Oxs_Atlas class that uses an import * image file for region demarcation. */ #include <ctype.h> // For isspace #include "nb.h" #include "director.h" #include "imageatlas.h" // Oxs_Ext registration support OXS_EXT_REGISTER(Oxs_Ima...
// Copyright (c) 2010 The WebM project authors. All Rights Reserved. // // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file in the root of the source // tree. An additional intellectual property rights grant can be found // in the file PATENTS. All contributing projec...
/****************************************************************************************/ /* Vis.c */ /* */ /* Author: <NAME> ...
/* SuperEQ DSP plugin for DeaDBeeF Player Copyright (C) 2009-2014 <NAME> <<EMAIL>> Original SuperEQ code (C) <NAME> <<EMAIL>> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; e...
/* * Copyright 2020 Google LLC. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "src/gpu/tessellate/GrStrokeTessellateShader.h" #include "src/gpu/glsl/GrGLSLFragmentShaderBuilder.h" #include "src/gpu/glsl/GrGLSLGeometryProcessor.h" #include "src...
#include "L1Trigger/GlobalCaloTrigger/test/gctTestHt.h" #include "CondFormats/L1TObjects/interface/L1CaloEtScale.h" #include "CondFormats/L1TObjects/interface/L1GctJetFinderParams.h" #include "L1Trigger/GlobalCaloTrigger/interface/L1GlobalCaloTrigger.h" #include "L1Trigger/GlobalCaloTrigger/interface/L1GctGlobalEnerg...
// // Created by peng on 18-4-8. // #include "lineTest.h" using namespace std; using namespace cv; /* 寻找光线色差,分离通道 */ bool LineTest::is_nan(double dVal) { if (dVal == dVal) { return false; } return true; } void LineTest::GetDiffImage(Mat src1, Mat dst) { for (int i = 0; i < lineOption.HEIGHT...
/* * Copyright 2013 University of Houston. All Rights Reserved. */ /* * Copyright 2004 PathScale, Inc. All Rights Reserved. */ /* Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2 of ...
// Library dependencies: libSDL, libSDL_net #include <iostream> #include <string> #include <cstdlib> #include <SDL_net.h> #include <SDL.h> #include "ClientSocket2.h" #include <vector> #include <cassert> #include <iostream> #include <fstream> #include <cstdarg> //float tx = 0.0, ty=0.0; //int itx, ity; float inc...
#include "Fl_Scroll_Tabs.H" #include <FL/fl_draw.H> #include <FL/Fl.H> #define TAB_SCROLL 8 #define MINIMUM_TAB_HEIGHT 16 #define MAXIMUM_BUTTON_WIDTH 16 // The amount to pad tabs that are not selected #define TAB_SELECTION_BORDER 2 #define INITIALREPEAT .5 #define REPEAT .01 Fl_Scroll_Tabs::Fl_Scroll_Tabs(int ax, ...
/* Wake Build Server Protocol implementation * * Copyright 2020 SiFive, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You should have received a copy of LICENSE.Apache2 along with * this software. If not, you may obta...
/* ****************************************************************** ** ** OpenSees - Open System for Earthquake Engineering Simulation ** ** Pacific Earthquake Engineering Research Center ** ** ** ** ...
/* Copyright (c) 2017, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * * All rights reserved. * * The Astrobee platform is licensed under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with...
#include "Merge.h" #include <llvm/ADT/DenseMap.h> #include <llvm/ADT/SCCIterator.h> #include <llvm/ADT/STLExtras.h> #include <llvm/ADT/StringMap.h> #include <llvm/ADT/StringSet.h> #include <llvm/IR/IRBuilder.h> #include <llvm/IR/Instructions.h> #include <llvm/IR/Module.h> #include <llvm/Linker/IRMover.h> #include <llv...
#include "../winter.h" #include "../imgui/GL/gl3w.h" #include "../imgui/imgui.h" #include "../imgui/imgui_impl_opengl3.h" #include "../imgui/imgui_impl_sdl.h" #include "font.h" #include "menu.h" #include "../utils/render.h" #include "../utils/string_helper.h" #include <iterator> #include "../features/esp.h" int ho...
/* Copyright 2017 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense...
#include "game.h" #include "resources.h" #include "background.h" #include "main.h" #include "fx_ship_expl.h" #include "fx_moving_text.h" extern Mouse g_mouse; Game *g_current_game; app_modes_t g_mode = MODE_MENU; extern App *g_app; Game::Game(int difficulty,int wave) : m_score(0), m_difficulty(difficulty), m_wave...
/*========================================================================* * * * Distributed by Whiteley Research Inc., Sunnyvale, California, USA * * http://wrcad.com * * Copyright (...
#include "analysis.h" #include "debug.h" #include "value.h" #include "utils.h" #include "mlir/IR/Matchers.h" #include "mlir/Dialect/Tosa/IR/TosaOps.h" #include <type_traits> #define ANALYZE(op, ty, res) \ if (auto op2 = mlir::dyn_cast<ty>(op)) { \ if (analyzeOp(op2, res)) \ continue; \ } using namespa...
// ProbeVolume_Cylinder.cpp #include "ProbeVolume_Cylinder.h" // Register this probe volume namespace ProbeVolumeRegistry { static const Register<ProbeVolume_Cylinder> register_ProbeVolume_Cylinder("cylinder"); } ProbeVolume_Cylinder::ProbeVolume_Cylinder( ProbeVolume::ProbeVolumeInputPack& input_pack ): ProbeVo...
#include "Sha1.h" #include "Base64.h" #if defined( ARDUINO ) #include <string.h> #else #include <cstring> #endif using qsense::Byte; using qsense::QString; namespace qsense { namespace hash { namespace sha1 { /* * 32-bit integer manipulation macros (big endian) */ #ifndef GET_UL...
#define STB_IMAGE_IMPLEMENTATION #include <iostream> #include <GL/glew.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <GLFW/glfw3.h> #include "Camera.h" #include "Texture.h" #include "Light.h" GLuint width = 800; GLuint height = 600; bool keys[1024]; GLuint ...
#include <gtest/gtest.h> #include <stdlib.h> #include "../com_manager.h" #include "../../../SDK/src/data_sets.h" static dual_imu_t g_dualImu; static ins_1_t g_ins1; static ins_2_t g_ins2; dev_info_t g_devInfo; static sys_sensors_t g_sensor_sys; static sensors_mpu_w_temp_t g_sensor_cal1; static sensors_mpu_w_temp_t g_s...
/* * GStreamer * Copyright (C) 2005 <NAME> <<EMAIL>> * Copyright (C) 2005 <NAME> <<EMAIL>> * Copyright (C) 2008 <NAME> <<EMAIL>> * Copyright (C) 2011 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Soft...
#include "logdensity.h" #include "lambertW.h" #include <cmath> #include <iostream> using namespace std; double logsumexp(double u, double v) { double rv = max(u, v) + log(exp(u - max(u, v)) + exp(v - max(u, v))); return rv; } double logdiffexp(double u, double v) { double rv = max(u, v) + log(exp(u - max(u, v)...
/* * gsequence.cpp * * Created on: Mar 8, 2012 * Author: bovi */ /* Copyright (c) 2013 by <NAME> FocusSearchC++ is part of the RI Project. FocusSearchC++ is a C++ implementation of the original software developed in Modula2 and provided by the authors of: Ullmann JR: Bit-vector algorithms for binary constr...
#include "LED_Uti.h" LEDUti::LEDUti(LEDController* led_controller, CRGB* leds_ptr): m_led_controller(led_controller), m_leds(leds_ptr), m_last_iteration(0), m_no_payload_counter(0), m_smooth_amplitude(0), m_smooth_speed(0) { } LEDUti::~LEDUti() { end_effect(); } /* Finish the current effect ...
/** * SPDX-License-Identifier: GPL-2.0-or-later * * This file is part of osm2pgsql (https://osm2pgsql.org/). * * Copyright (C) 2006-2022 by the osm2pgsql developer community. * For a full list of authors see the git log. */ #include <algorithm> #include <cstdint> #include <cstdio> #include <limits> #include <st...
// Dreadnought FX #include "cg_local.h" #include "fx_public.h" /* ------------------------- FX_DreadnoughtHitWall ------------------------- */ void FX_DreadnoughtHitWall( vec3_t origin, vec3_t normal, qboolean spark ) { FXTrail *particle; float scale; int num, i; FX_AddQuad( origin, normal, NULL, NULL, 48.0 + r...
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <math.h> #include <map> #include "lodepng.h" #include "Eigen/Sparse" typedef Eigen::SparseMatrix<double> SpMat; typedef Eigen::Triplet<double> Triplet; typedef Eigen::VectorXd Vec; // gamma correction constant. constexpr float GAMMA = ...
// jhcActionTree.cpp : holds attentional foci for ALIA system // // Written by <NAME>, <EMAIL> // /////////////////////////////////////////////////////////////////////////// // // Copyright 2017-2020 IBM Corporation // Copyright 2020-2021 Etaoin Systems // // Licensed under the Apache License, Version 2.0 (the "License...
// // Created by antonp on 16.08.17. // #include <iostream> #include <memory> #include <thread> #include <future> #include <mutex> #include <condition_variable> #include <atomic> #include <deque> #include <functional> #include <cassert> #include <unordered_set> #include <algorithm> #include <vector> namespace Comodo ...
/* PPG.cpp - PPG library Copyright (c) 2019 Renesas Electronics Corp. All right 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 License, or (at ...
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * * THE BSD LICENSE * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistribut...
// (c) 2018-2019 Pttn (https://github.com/Pttn/rieMiner) // (c) 2018 <NAME>/Rockhawk (CPUID tools) #include "tools.hpp" std::default_random_engine eng((std::random_device())()); uint8_t rand(uint8_t min, uint8_t max) { if (min > max) std::swap(min, max); std::uniform_int_distribution<uint8_t> urd(min, max); retur...
#include <cstdlib> #include <stdexcept> #include "Common.h" #include "RecalibrationTable.h" RecalibrationTable::RecalibrationTable( int numReadGroups, int numEvents, int numCovariates, int* dims): math_utils_(), DatumTables_(numCovariates, NULL), RecalDatumTables_(numCo...
// // Created by huangkun on 2020/8/26. // #include <Eigen/SparseCholesky> #include <cmath> #include <algorithm> #include <numeric> #include <opengv2/spline/BsplineSO3.hpp> opengv2::BsplineSO3::BsplineSO3(int p, const std::vector<Sophus::SO3d, Eigen::aligned_allocator<Sophus::SO3d>> &...
#include "camera.h" #include "core/engine.h" #include "utils/gui_util.h" static inline float2 CalcDepthLinearizationParams(const float4x4& mtxProjection) { // | 1 0 0 0 | // | 0 1 0 0 | // | 0 0 A 1 | // | 0 0 B 0 | // Z' = (Z * A + B) / Z --- perspective divide // Z' = A + B /...
#include <iostream> #include <fstream> #include "StaticGeometry.h" #include "frmr/BoundingBox.h" #include "frmr/Encoder.h" #include "frmr/frmrMath.h" #include "frmr/Vec2f.h" #include "frmr/Vec3f.h" using std::cout; using std::endl; vector<frmr::Vec3f> StaticGeometry::Portal::CheckVisibility( const Frust...
// Run like this // ./loglikelihood4 competition/S1a/dataset13_training.csv --use_ldl // This code will forecast 4 unknown parameters of the Matern covariance matrix // Developed by <NAME> (RWTH Aachen) and <NAME> (MIS MPG Leipzig) // Based on the HLIBPro library (v. 2.9) www.hlibpro.com // No warranties. #include <io...
// math_hyperbolic.cpp: functional tests for hyperbolic functions (sinh/cosh/tanh/atanh/acosh/asinh) // // Copyright (C) 2017-2020 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. // when you define POSIT_VERBOSE_OUTPUT the co...
/* Copyright (c) 2017 Electronic Theatre Controls, Inc., http://www.etcconnect.com Copyright (c) 2020 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without ...
/** @file Path.cpp * * Implementation of the functions in Path.hpp */ #include "Path.hpp" #include <pistis/exceptions/IOError.hpp> #include <sstream> #include <ctype.h> #include <pwd.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> using namespace pistis::exceptions; namesp...
/* Copyright (c) 2021 Grumpy Cat Software S.L. * * This Source Code is licensed under the MIT 2.0 license. * the terms can be found in LICENSE.md at the root of * this project, or at http://mozilla.org/MPL/2.0/. */ #include <gauss/statistics.h> #include <gauss/linalg.h> #include <variant> #include <optional> #in...
/* * Implementation of the skimming step of the analysis * * The skimming step reduces the inital generic samples to a dataset optimized * for this specific analysis. Most important, the skimming removes all events * from the initial dataset, which are not of interest for our study and builds * from the reconstru...
#include "CSVFile.h" //#include "VAF_CSVTree_struct.h" //#include <string> //#include <cstdio> #include <cstring> //#include <cstdlib> #include <iostream> #include <cmath> //#include <cassert> #include <fstream> #include <sstream> #include <algorithm> #define LineLength 300 using namespace std; bool fragmentComp...
#include <opencv2/opencv.hpp> #include <iostream> #include <fstream> #include <windows.h> #include <filesystem> #include <chrono> #include <thread> #include <winuser.h> #include <cwchar> using namespace cv; using namespace std; namespace fs = std::filesystem; using namespace System; void change_con...
// FAT32Parser.cpp : Defines the entry point for the console application. // #include "stdafx.h" #define IMGNAME ("CF128M.img") #pragma pack(push) #pragma pack(1) typedef struct { UCHAR STATE; UCHAR HEAD_S; USHORT CLU_S; UCHAR FS; UCHAR HEAD_E; USHORT CLU_E; ULONG32 SECTOR_RS; ULONG32 TOTAL_SECTOR; ...
#include <FL/Fl.H> #include <FL/Fl_Double_Window.H> #include <FL/Fl_Group.H> #include <FL/Fl_Box.H> #include <FL/Fl_Button.H> #include <FL/fl_draw.H> #include <iostream> #include <string> #include <vector> #include <algorithm> #include <memory> constexpr char EVENT[] = "Advent of Code 2020"; constexpr char DAY[] = ...
/* // Licensed to DynamoBI Corporation (DynamoBI) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. DynamoBI licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may ...
#include "global.h" #include "InputHandler_Linux_Event.h" #include "RageLog.h" #include "RageUtil.h" #include "LinuxInputManager.h" #include "GamePreferences.h" //needed for Axis Fix #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <linux/input.h> REGIST...
/* * Copyright (c) 2003-2020 <NAME> <<EMAIL>>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2.0.php */ #include "PWSfile.h" #include "...
/*******************************************************************\ Module: Symbolic Execution of ANSI-C Author: <NAME>, <EMAIL> \*******************************************************************/ /// \file /// Symbolic Execution of ANSI-C #include "value_set_dereference.h" #ifdef DEBUG #include <iostream> #i...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
/** * @file mod.cpp * * Contains the core running functions. * Reads a config file to populate all the necessary parameters and settings. * Based on configuration, it starts the necessary thread. * * @author <NAME> <<EMAIL>> */ // system inclusions #include <cstdlib> #include <unistd.h> #include <cmath> #incl...
#include "ComponentMeshRenderer.h" #include "OpenGL.h" #include "ComponentTransform.h" #include "ComponentMaterial.h" #include "GameObject.h" #include "Application.h" #include "ModuleRenderer3D.h" #include "UID.h" #include "JSON.h" class ComponentTransform; void ComponentMeshRenderer::SetBBox(AABB _box) { bounding_...
#include <QGuiApplication> #include <QElapsedTimer> #include <cmath> #include <QRegularExpression> #include <QMatrix4x4> #include "motionsgenerator.h" #include "vertebratamovemotionbuilder.h" #include "blockmesh.h" #include "vertebratamovemotionparameterswidget.h" #include "util.h" MotionsGenerator::MotionsGenerator(R...
/** * Monitor for blackbox fuzzing "shadow" queue. So that the blackbox AFL is not * disturbed by more-complex logic, this script watches a "shadow queue" that * stores all testcases, replays these testcases through an instrumented version * of the target program, and deletes testcases that do not lead to new * co...
/************************************************************** * * 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...
// Copyright 2014 Google Inc. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd #include <gflags/gflags.h> #include <iostream> #include "packager/app/fixed_key_encryption_flags....
/******************************************************************************** * ReactPhysics3D physics library, http://www.reactphysics3d.com * * Copyright (c) 2010-2020 <NAME> * ********************************************************************************...
#include "omnicore/rpcrawtx.h" #include "omnicore/createtx.h" #include "omnicore/omnicore.h" #include "omnicore/rpc.h" #include "omnicore/rpctxobject.h" #include "omnicore/rpcvalues.h" #include "coins.h" #include "core_io.h" #include "primitives/transaction.h" #include "pubkey.h" #include "rpc/server.h" #include "syn...
// Copyright 2018 The Chromium OS 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 <stdlib.h> #include <memory> #include <utility> #include <base/environment.h> #include <base/files/file_path.h> #include <base/files/file_ut...
/* * Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. */ #include "oper/namespace_manager.h" #include <boost/filesystem.hpp> #include <boost/uuid/random_generator.hpp> #include <boost/bind.hpp> #include <boost/functional/hash.hpp> #include <sys/wait.h> #include "db/db.h" #include "io/event_manager.h" ...
//======================================================================== // Heightmap example program using OpenGL 3 core profile // Copyright (c) 2010 <NAME> // // 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 fro...
/* * Copyright (C) 2011-2017 Intel 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...
/* club.cpp - Implementation of the Club class. Revision 0 Notes: - 2018/02/28, <NAME> */ #include "club.h" #include <iostream> using namespace std; #include <Poco/NumberFormatter.h> using namespace Poco; #include "listener.h" // PCA95x5 register map (PCA9555, PCA9535, PCAL9535A,...) #define R...
/** @file edo_manual_ctrl.cpp * @brief ROS node allows for e.DO to be controlled via Linux terminal. This * file and the classes that it uses were created to eliminate the e.DO's * dependency on its Android tablet application and allow it to be controlled * via Linux terminal. This node has all of the basic fun...
/*========================================================================= Program: Visualization Toolkit Module: vtkLagrangeTetra.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WIT...
#include "wineditor.hpp" #include "direct2dpaintgrid.hpp" #include <d2d1.h> void D2DPaintGrid::set_size(u16 w, u16 h) { GridBase::set_size(w, h); update_bitmap_size(); for(auto& snapshot : snapshots) { SafeRelease(&snapshot.image); } snapshots.clear(); } void D2DPaintGrid::update_bitmap_size() { aut...
#include "MemWrapper.h" // The memory configuration is initially ported from ramulator. // which are mostly parsed from input argument. We don't want to change it for now. MemWrapper::MemWrapper(sc_module_name _name, double _memClkCycle, double _peClkCycle, int argc, char* argv[]) ...
#ifdef _WIN32 #define _CRT_SECURE_NO_WARNINGS 1 #define NOMINMAX //#define UNICODE #include <windows.h> #include <io.h> #else #include <unistd.h> #include <sys/stat.h> #endif #include <algorithm> #include <functional> #include <vector> #include <chrono> #include <stdio.h> #include <fcntl.h> #include <string.h> #includ...
/******************************************************************************* * Copyright 2017-2018 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.apa...
#include <bits/stdc++.h> #include "GL/freeglut.h" #include "GL/gl.h" #include <unistd.h> #include <GL/glu.h> #include "../include/model.h" #include "../include/SOIL.h" SceneGraphNode *temp; using namespace std; float start[3], peak[3], stop[3], interval, ys, vs; int timeA = 0; bool box = true; bool p = true; void M...
#include <cv_bridge/cv_bridge.h> #include <pcl_conversions/pcl_conversions.h> #include <pcl_ros/point_cloud.h> #include <ros/publisher.h> #include <ros/ros.h> #include <sensor_msgs/CameraInfo.h> #include <sensor_msgs/Image.h> #include <sensor_msgs/PointCloud2.h> #include <std_msgs/Float32.h> #include <stdio.h> #include...
/* PTEX SOFTWARE Copyright 2014 Disney Enterprises, 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 copyright notice, this list of cond...
/*******************************<GINKGO LICENSE>****************************** Copyright (c) 2017-2021, the Ginkgo authors 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 co...
#include "colorpicker.h" QColor ColorPicker::y_to_color(int y) { int d = height() - 2*coff - 1; int index = 255 - (y - coff)*255/d; if (index > 0 && index < 255) return viridis_values[index]; else if (index < 0) return viridis_values[0]; else return viridis_values[255]; ...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "skip/System.h" #include "skip/System-extc.h" #include "skip/AllocProfiler.h" #include "skip/Exception.h" #include "skip...
#include "PeriploContext.h" #include <string> #include <cudd.h> using namespace periplo; using namespace std; enum VarStateValues { SETTRUE, SETFALSE, UNSET}; struct VarState { VarState(int _id, VarStateValues _state = UNSET) {id = _id;state = _state;} int id; VarStateValues state; inl...
#include "GenFlextangle.h" #include <opencv2/imgcodecs.hpp> GenFlextangle::GenFlextangle() { } GenFlextangle::~GenFlextangle() { } void GenFlextangle::Initialize(int output_width, const cv::Point& offset) { int w = output_width - 2 * offset.x; _len_triangle = (int)(2.0 * w / (6.2 * std::sqrt(3.0)) + 0.5); _out...
#include "RecoParticleFlow/PFProducer/interface/PFBlockAlgo.h" #include "FWCore/Framework/interface/ProductRegistryHelper.h" #include "FWCore/Framework/src/WorkerMaker.h" #include "FWCore/MessageLogger/interface/ErrorObj.h" #include "FWCore/ParameterSet/interface/ParameterSetDescriptionFiller.h" #include "FWCore/Plugin...