text
stringlengths
3.08k
22k
/* * LEGAL NOTICE * This computer software was prepared by Battelle Memorial Institute, * hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830 * with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE * CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY * LIABILITY FOR THE ...
/* LSM303DLM Example Code base on LSM303DLH example code by <NAME> SparkFun Electronics date: 9/6/11 license: Creative commons share-alike v3.0 Modified by:Frankie.Chu Modified by:Jacky.Zhang 2014-12-11: Ported to 6-Axis Accelerometer&Compass of Seeed Studio Modified by:Jacky.Zhang 2015-1-6: adde...
/* * Copyright 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
#include <ACNode-private.h> #if MQTT_MAX_PACKET_SIZE < 550 #error "You will need to increase te MQTT_MAX_PACKET_SIZE size a bit in PubSubClient.h" #endif // We're having a bit of an issue with publishing within/near the reconnect and mqtt callback. So we // queue the message up - to have them send in the runloop; mu...
/* Interfaces for reflected types internal file Copyright 2018-2021 <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 ...
#include "item_location.hpp" #include "item_pool.hpp" #include "location_access.hpp" #include "random.hpp" #include "item.hpp" #include "shops.hpp" #include "debug.hpp" #include <math.h> #include <map> using namespace Settings; std::vector<ItemKey> ShopItems = {}; std::array<int, 64> ShopItemsPrices; std::vector<Ite...
//===--- ArgumentCompletion.cpp ---------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2022 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt ...
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright IBM Corp. 2021 */ #include "devices/nvme.hpp" #include "inventory.hpp" #include "platforms/rainier.hpp" #include "sysfs/gpio.hpp" #include "sysfs/i2c.hpp" #include <gpiod.hpp> #include <phosphor-logging/lg2.hpp> #include <cassert> #include <cerrno> #include <file...
#include "R_Mesh.h" #include "MeshImporter.h" #include "Application.h" #include "M_Resources.h" #include "MathGeoLib/src/MathGeoLib.h" #include "Glew/include/glew.h" #pragma comment(lib,"Glew/libx86/glew32.lib") #include <gl/GL.h> R_Mesh::R_Mesh(int uid, const char* path, RESOURCE_TYPE type) : Resource(uid, path, ...
#include "main.h" #include "portdef.hpp" #include "chassis.hpp" #include "lift.hpp" #include "module.hpp" #include "screen.hpp" #include "file.hpp" #include "opcontrol.hpp" // Datastructures for recordable autonomous int instInputs[28]; // Datastructures used for console and screen diagnostics double buffer[12]; char...
// <stf_trace_info> -*- C++ -*- /** * \brief This tool is to add or modify the trace info record in traces. * It should take a trace as input and write a new trace as output with * specified trace info. */ #include <cstdint> #include <map> #include <iomanip> #include <iostream> #include <string> #include "co...
/** * @mainpage Prctica Pro2. S'introdueixen les classes <em>Cjt_Frases</em>, <em>Text</em>, <em>Cjt_Textos</em> i <em>Cites</em> . El programa principal es troba en el mòdul <em>program.cc</em>. Per resoldre les operacions necessàries del gestor, em pensat que el adient era crear les classes <em>Cjt_Frases</em>, <e...
#include <xpcc/debug.hpp> #include "damballa.hpp" #undef XPCC_LOG_LEVEL #define XPCC_LOG_LEVEL xpcc::log::DEBUG // ---------------------------------------------------------------------------- xpcc::stm32::Can1 loa::can; xpcc::stm32::Spi1 loa::fpga::spi; loa::SpiFlash loa::spiFlash; //loa::SpiFlash loa::spiFlash(10...
/** \class HLTGenericFilter * * * \author <NAME> (CERN) * */ #include "HLTGenericFilter.h" #include "DataFormats/Common/interface/Handle.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h" #include "FWCore/ParameterSet/interface/ParameterS...
//--------------------------------------------------------------------------- // requestEngineLus.cpp // PA octobre 2011 // Request Engine model //--------------------------------------------------------------------------- #include <iostream> #include <stdio.h> #include <fstream> #include <string> #include <...
#include <dsn/dist/meta_state_service.h> #include <boost/lexical_cast.hpp> #include <gtest/gtest.h> #include <chrono> #include <thread> #include "meta/meta_state_service_simple.h" #include "meta/meta_state_service_zookeeper.h" using namespace dsn; using namespace dsn::dist; DEFINE_TASK_CODE(META_STATE_SERVICE_SIMPL...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, i...
/********************************************************************* <NAME> 2013 - 2016 SFML Tiled Map Loader - https://github.com/bjorn/tiled/wiki/TMX-Map-Format http://trederia.blogspot.com/2013/05/tiled-map-loader-for-sfml.html Zlib License: This software is provided 'as-is', without any express or implied...
//---------------------------------------------------------- -*- Mode: C++ -*- // $Id$ // // Created 2006/06/23 // // Copyright 2008-2010 Quantcast Corp. // Copyright 2006-2008 Kosmix Corp. // // This file is part of Kosmos File System (KFS). // // Licensed under the Apache License, Version 2.0 // (the "License"); you ...
#include "Game.h" Game::Game() : ApplicationContext("GAME3121 - Assignment 1 - by <NAME>") { } bool Game::frameRenderingQueued(const FrameEvent& evt) { // Checks if our framerate is over 30 to play, if not, ball keeps resetting if (latestFramerate < 30.f && !gameOver) { m_ball->reset(...
#include "stdafx.h" #include <windows.h> #include <math.h> // Math Library Header File #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #include "../glut/glut.h" #include "../glut/glaux.h" const float piover180 = 0.0174532925f; float heading; float xpos; float zpos; GLfloat yrot; // Y Rot...
/* MIT License Copyright (c) 2022 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
//------------------------------------------------------------------------------ // From http://github.com/heitorperalles/checkCpfRestApiGoCxxWrap // // Distributed under The MIT License (MIT) <http://opensource.org/licenses/MIT> // // Copyright (c) 2020 <NAME> <<EMAIL>> // // Permission is hereby granted, free of cha...
// Copyright (c) 2020, Map IV, 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 conditions and...
#include "EventFilter/EcalRawToDigi/interface/DCCFEBlock.h" #include "EventFilter/EcalRawToDigi/interface/DCCEventBlock.h" #include "EventFilter/EcalRawToDigi/interface/DCCDataUnpacker.h" #include <cstdio> #include "EventFilter/EcalRawToDigi/interface/EcalElectronicsMapper.h" DCCFEBlock::DCCFEBlock( DCCDataUnpacker ...
#include <iostream> #include <vector> #include <cassert> #include <cstring> #include <limits> #include <mpi.h> //#include <Eigen/Eigenvalues> enum KernelType {CubicSpline = 0, WendlandC2 = 1, WendlandC4 = 2}; #include "particle_simulator.hpp" #include "hdr_time.hpp" #include "hdr_run.hpp" #ifdef USE_INTRINSICS #inclu...
/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYING, A...
#include "StdAfx.h" #include "Test.h" #include "WrapData.h" #define ThisMethod($x) &Test::$x #define AutoAddMethod($x, ...) AddMethod<__VA_ARGS__>( #$x, ThisMethod( $x ) ) #define MakeThisFunc($x) MakeFunc( this, ThisMethod( $x ) ) namespace Nav { namespace { ObjectRegister<Test> c_obj; } class AvePixelMatc...
/* Copyright (C) 2012 Ion Torrent Systems, Inc. All Rights Reserved */ #include <assert.h> #include <iostream> #include <sstream> #include <string> #include <vector> #include "BkgControlOpts.h" #include "IonErr.h" #include "Utils.h" #include "BkgMagicDefines.h" using namespace std; SignalProcessingBlockControl::Sign...
/* Copyright (c) 2005-2015, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in source and binary forms...
/* * ComputerControlServer.cpp - implementation of ComputerControlServer * * Copyright (c) 2006-2019 <NAME> <<EMAIL>> * * This file is part of Veyon - https://veyon.io * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published ...
#include "plot.h" #include <catboost/libs/metrics/metric.h> #include <catboost/libs/helpers/query_info_helper.h> #include <catboost/libs/options/loss_description.h> #include <library/threading/local_executor/local_executor.h> void TMetricsPlotCalcer::ProceedMetrics(const TVector<TVector<double>>& cursor, ...
#include <bits/stdc++.h> using namespace std; // creating the structure of node // it contains the info to be stored and the pointer to next node struct node { int info; node *next ; }; // Implementing Single Linked List using classes class Link_List { private: node *HEAD;// Points to the first node of the list...
// Copyright 2019 by <NAME>, see LICENSE.txt /** * @file XPT2046.cpp * * @brief XPT2046 accessing functionalities * * @author <NAME> * Contact: <EMAIL> * */ #include <Hardware/XPT2046/XPT2046.h> #include <Hardware/XPT2046/XPT2046_cmd.h> /// Channel Mask for extracting DMA channel #define DMA_...
#include "Bounding.h" #include "Util.h" #include "Common.h" //////////////////////////////////////////////////////////////// void BoundingBox::Merge(const D3DXVECTOR3* vec) { minPt.x = min(minPt.x, vec->x); minPt.y = min(minPt.y, vec->y); minPt.z = min(minPt.z, vec->z); maxPt.x = max(maxPt....
/// /// \file LiquidCrystal_PCF8574.cpp /// \brief LiquidCrystal (LCD) library with PCF8574 I2C adapter. /// /// \copyright see: LiquidCrystal_PCF8574.h /// /// \details /// This is a library for driving LiquidCrystal displays (LCD) by using the I2C bus and an PCF8574 I2C adapter. /// This library is derived from the ...
//================================================================= // // VideoSettings.CPP -- CodecFile property set provider // // Copyright (c) 1998-2001 Microsoft Corporation, All Rights Reserved // // Revisions: 10/27/98 sotteson Created // 03/02/99 a-peterc added graceful e...
// Copyright © 1996-2018, Valve Corporation, All rights reserved. #include "vstdlib/iprocessutils.h" #include "base/include/windows/windows_errno_info.h" #include "base/include/windows/windows_light.h" #include "tier1/tier1.h" #include "tier1/utlbuffer.h" #include "tier1/utllinkedlist.h" #include "tier1/utlstring.h"...
#include <cassert> #include "graph.h" #include "util.h" #include "undeg3.h" #include "bipart.h" #include "read_vc.h" #include "snapshot.h" #include "optimize.h" bool vc_undeg3_single(Graph &G, Vertex *b); size_t vc_undeg3_count(Graph &G, Vertex *a, Vertex *b, Vertex *c); void vc_undeg3_apply(Graph &G, Ver...
// // begin license header // // This file is part of Pixy CMUcam5 or "Pixy" for short // // All Pixy source code is provided under the terms of the // GNU General Public License v2 (http://www.gnu.org/licenses/gpl-2.0.html). // Those wishing to use Pixy source code, software and/or // technologies under different lice...
#include <gtest/gtest.h> #include "exatn.hpp" #include <iostream> #include <utility> #include "errors.hpp" using namespace exatn; using namespace exatn::numerics; TEST(NumericsTester, checkSimple) { { TensorSignature signa{{1,5},{SOME_SPACE,13}}; std::cout << signa.getRank() << " " << signa.getDimSpaceId(0) <<...
/***************************** Copyright 2011 <NAME>. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of cond...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "test_graph.hpp" #include "single_layer_common.hpp" #include "tests_common.hpp" #include <ie_core.hpp> #include <algorithm> #include <vector> using namespace ::testing; using namespace std; using namespace mkldnn; stru...
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and...
#include "header.h" void SetupICBlastWave(PS::ParticleSystem<RealPtcl>& sph_system, PS::F64* end_time, boundary *box) { ///////// //place ptcls ///////// std::vector<RealPtcl> ptcl; ///////// const PS::F64 Mass = 2.0; const PS::F64 Grav = 1.0; *end_time = 0.77; const PS::F64 dx = 4e-3; box->x = 1.0; box-...
#include <pybind11/pybind11.h> #include <pybind11/numpy.h> #include <pybind11/stl.h> #include <iostream> template <typename T> struct PreCalc { int pos1; int pos2; int pos3; int pos4; T w1; T w2; T w3; T w4; }; template <typename T> void pre_calc_for_bilinear_interpolate( const int height, co...
// // Created by <NAME> on 2/23/22. // #include <ros/ros.h> #include <lab2_task/GenerateTurtle.h> #include <lab2_task/CommandTurtle.h> #include <turtlesim/Pose.h> #include <turtlesim/Spawn.h> #include <geometry_msgs/Twist.h> #include <lab2_task/ros_utils.hpp> #include <random> #include <regex> #include <utility> #i...
/* * Copyright (c) 2010, Laminar Research. * * 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, ...
#include "SpringEmbedder.h" #include "MembershipInitializer.h" #include <HierarchicalLayoutGenerator/HierarchicalLayouter.h> #include <Common/LayoutEnum.h> #include<Common/GraphType.h> SpringEmbedder::SpringEmbedder() { } void SpringEmbedder :: getRestrictedBounds(SubGraph& gMainGraph, QVector<int>& ...
#include <iostream> #include <string.h> #include <string> #include <sstream> #include <getopt.h> #include <utility> #include <vector> #include <stdlib.h> #include "SmithWatermanGotoh.h" #include "BandedSmithWaterman.h" using namespace std; /* Returns the Reverse Complement of a DNA Sequence, from the alphabet {A,T,C,...
/* Copyright 2015 Nervana Systems Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
#include "overlaywidget.h" #include "ui_overlaywidget.h" #include <QTimer> #include <QDateTime> #include <QElapsedTimer> #include <QPixmap> #include <cstdio> #include <tlhelp32.h> #include <QProcess> #include <stdio.h> #include <tchar.h> #include <psapi.h> #include <fstream> std::string CurGame = "None"; HANDLE ghandle...
/* Copyright (c) 2014 Mutantspider authors, see AUTHORS file. 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, modif...
/* * MRustC - Rust Compiler * - By <NAME> (Mutabah/thePowersGang) * * parse/paths.cpp * - Parsing for module paths */ #include "parseerror.hpp" #include "common.hpp" #include "../ast/ast.hpp" AST::Path Parse_Path(TokenStream& lex, eParsePathGenericMode generic_mode); AST::Path Parse_Path(TokenStream& lex, bo...
#include <bits/stdc++.h> using namespace std; typedef long long int64; typedef __int128 int128; namespace QuadraticResidue { // Compute x * y mod m int64 multiply(int64 x, int64 y, int64 m) { return (int128)x * y % m; } // Compute n^k mod m. int64 fast_pow(int64 n, int64 k, int64 m) ...
#include "PhysicsSceneApp.h" #include "Texture.h" #include "Font.h" #include "Input.h" #include "Sphere.h" #include "PhysicsScene.h" #include "Plane.h" #include <Gizmos.h> #include <vector> PhysicsSceneApp::PhysicsSceneApp() { } PhysicsSceneApp::~PhysicsSceneApp() { } bool PhysicsSceneApp::star...
#include "SolarApp.h" #include "Texture.h" #include "Font.h" #include "Input.h" #include "ErrorManager.h" #include "ResourceManager.h" SolarApp::SolarApp() { } SolarApp::~SolarApp() { } bool SolarApp::startup() { m_cameraX = m_cameraY = 0; m_scale = 1; m_2dRenderer = std::unique_ptr<aie::Renderer2D>(new aie::...
#include <Arduino.h> #include "M5AvatarOptionConfig.h" // ----- for DEBUG ----- //#define DEBUG // --------------------- #include <ESP32-Chimera-Core.h> #include <Wire.h> #define LGFX_AUTODETECT #include <LovyanGFX.hpp> #include "colorpalette.h" #include "M5StackImageAvatar.hpp" #ifdef CONFIG_USE_TTS #include "Aq...
/////////////////////////////////////////////////////////////////////// // Microsoft Windows // // Copyright(c) Microsoft Corp., 1998 // /////////////////////////////////////////////////////////////////////// // // processs ID related rout...
/* * Copyright (c) 2010-2012 OTClient <https://github.com/edubart/otclient> * * 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...
/* lab2.cpp <NAME> CS 315: Lab Sec 2 (T 2:00-5:00) The objective of this lab assignment is to gain practice using the EasyBMP library to alter and create .bmp's */ #include <iostream> #include "EasyBMP.h" using namespace std; //part1 functions: void makeChecker(BMP & Output); //part2 functions: void makeSierpinski(...
/* Copyright (c) 2020 M.A.X. Port Team * * 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, ...
// GLAD #include "glsupport.h" #include "parse_ray_log.hpp" #include "third_party/glad/glad.h" #include "third_party/imgui/imgui.h" #include "third_party/imgui/imgui_impl_glfw.h" #include "third_party/imgui/imgui_impl_opengl3.h" #include <math/vector.hpp> #include <utils/di_global.h> #include <utils/parse_scene.hh> #...
// // Created by jfajkowski on 01.12.18. // #include "util.h" #include <vector> double truncate(double value) { if (value < 0) return 0; if (value > 255) return 255; return value; } void bimshow(const String &winname, Mat &I) { CV_Assert(I.type() == CV_8UC1); Mat S(I.size(), CV_8UC1); for (in...
/** $glic$ * Copyright (C) 2012-2015 by Massachusetts Institute of Technology * Copyright (C) 2010-2013 by The Board of Trustees of Stanford University * Copyright (C) 2011 Google Inc. * * This file is part of zsim. * * zsim is free software; you can redistribute it and/or modify it under the * terms of the GNU...
// Include headers #include "PIDController.h" // ::::::::::::: Constructors :::::::::::::::::: PIDController::PIDController() { // Assign an accumulation factor of 0.5 (for KI) this->setAccFactor(0.5, 0.5); } PIDController::PIDController(double Kp, double Ki, double Kd) : PIDController() { // Assign const...
// SMDSkeleton.cpp: implementation of the SMDSkeleton class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "SMDNode.h" #include "SMDSkeleton.h" #include "SIBCMatrix.h" #include <xsi_kinematicstate.h> #include <xsi_application.h> #include <xsi_project.h> #include...
//============================================================================ // Name : FiniteDifferencePricing.cpp // Author : pmontalb // Version : // Copyright : // Description : //============================================================================ #include <iostream> #include <string> ...
#include "YASegmenter.h" #include "MT/MT_Core/gl/glSupport.h" // for blob drawing #include <algorithm> // for sort and unique BlobberParameters::BlobberParameters(int* val_thresh_low, int* val_thresh_high, int* area_thresh_low, ...
#include "meanfield.h" #include "solvers.h" #include <memory> #include "mex.h" #include <time.h> #include <stdio.h> double timer; // Catch errors static void erfunc(char *err) { mexErrMsgTxt(err); } void mexFunction(int nlhs, /* number of expected outputs */ mxArray *plhs[], /* mxArray outp...
/** * PANDA 3D SOFTWARE * Copyright (c) Carnegie Mellon University. All rights reserved. * * All use of this software is subject to the terms of the revised BSD * license. You should have received a copy of this license along * with this source code in a file named "LICENSE." * * @file uniqueIdAllocator.cxx ...
/** @file testhelpmodule.cpp @brief This file is part of Kalinka mediaserver. @author <NAME> <<EMAIL>> Copyright (c) 2007-2012 Kalinka Team 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...
/** * Copyright (c) 2018 Parrot Drones SAS * Copyright (c) 2016 <NAME> * * 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 ...
// Copyright (c) 2016, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this list of condition...
#include "pch.h" #include "common.h" #include "NDSScanner.h" #include "NDSSeq.h" #include "NDSInstrSet.h" using namespace std; #define SRCH_BUF_SIZE 0x20000 void NDSScanner::Scan(RawFile *file, void *info) { SearchForSDAT(file); return; } void NDSScanner::SearchForSDAT(RawFile *file) { uint32_t nFileLength =...
// Copyright 2013 the V8 project 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: // // * Redistributions of source code must retain the above copyright // notice, this list of ...
/* Copyright (c) 2017-2019, Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable Energy, LLC. See the top-level NOTICE for additional details. All rights reserved. SPDX-License-Identifier: BSD-3-Clause */ #include <chrono> #include <gtest/gtest.h> /** these test cases test ...
#include "appleseedMeshWalker.h" #include <maya/MItMeshPolygon.h> #include <maya/MGlobal.h> #include "utilities/tools.h" #include "utilities/attrTools.h" #include "shadingTools/shadingUtils.h" #include <maya/MBoundingBox.h> #include <maya/MDagPath.h> #include <maya/MMatrix.h> #include <maya/MFnMeshData.h> /* The mes...
/***************************************************************************** * ==> IP_Star --------------------------------------------------------------* * *************************************************************************** * Description : Star and starfield objects * * D...
// -*- C++ -*- // // Package: L1ExtraTestAnalyzer // Class: L1ExtraTestAnalyzer // /**\class L1ExtraTestAnalyzer \file L1ExtraTestAnalyzer.cc L1TriggerOffline/L1ExtraTestAnalyzer/src/L1ExtraTestAnalyzer.cc \author <NAME> Description: simple analyzer to print out L1Extra object information. */ // // Origina...
/*========================== begin_copyright_notice ============================ Copyright (C) 2021 Intel Corporation SPDX-License-Identifier: MIT ============================= end_copyright_notice ===========================*/ #include "VLD.hpp" #include "VLD_SPIRVSplitter.hpp" #include "Probe/Assertion.h" #includ...
#include <_type/type.animation.h> #include <_controller/controller.animation.h> #include <_controller/controller.timer.h> #include <cmath> #define M_PI 3.14159265358979323846 _animation::_animation( int from , int to , _tempTime dur ) : startTime( 0 ) , duration( dur ) , setterFunc( nullptr ) , finis...
#include "emscripten/bind.h" #include "emscripten/val.h" #include <stdlib.h> #include <inttypes.h> #include <limits.h> #include <math.h> #include "libimagequant.h" using namespace emscripten; int version() { return (((LIQ_VERSION/10000) % 100) << 16) | (((LIQ_VERSION/100 ) % 100) << 8) | (((LIQ_...
/* * Copyright 2020 Associated Universities, Inc. Washington DC, USA. * * 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...
//========================================================================= // // Copyright 2018 Kitware, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache....
// ============================================================================= // Copyright 2017 National Technology & Engineering Solutions of Sandia, LLC // (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. // // Permission is hereby grante...
/* ModBusIPSerialLink.cpp - Source for ModBusIPSerialLink Library Copyright (C) 2016 UNPARALLEL INOVATION */ #include "ModBusIPSerialLink.h" #include "HardwareSerial.h" ModbusIPSerial::ModbusIPSerial():_server(MODBUSIP_PORT) { } void ModbusIPSerial::configIP(uint8_t *mac) { Ethernet.begin(mac); ...
/* Original Work Copyright (c) 2020 <NAME> - <EMAIL> 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, publi...
// native compiler options // g++ -g -O0 -std=c++17 -ggdb -lpthread -o i2c_oled_test main.cpp #include <climits> #include <errno.h> #include <fcntl.h> #include <iostream> #include <string.h> #include <sys/ioctl.h> #include <sys/epoll.h> #include <sys/poll.h> #include <sys/select.h> #include <termios.h> #include <threa...
// Some parts have not been tested, be careful! #include <bits/stdc++.h> using namespace std; const int INF = 0x3f3f3f3f; typedef long double ld; const double EPS = 1e-9, PI = acos(-1.); // Change long double to long long if using integers typedef long double type; //return -1: a < b, 0: a == b, 1: a > b int comp(...
#include "auc.h" #include <catboost/libs/helpers/parallel_sort/parallel_sort.h> #include <catboost/private/libs/index_range/index_range.h> #include <util/generic/algorithm.h> #include <util/generic/array_ref.h> #include <util/generic/vector.h> using NMetrics::TSample; using NMetrics::TBinClassSample; using NCB::TMer...
#include "rasterizer.h" #include "triangle.h" #include <iostream> using namespace ayakaras; std::tuple<float, float, float> computeBarycentric2D(float x, float y, const Triangle &t) { Eigen::Vector3f P(x, y, 0); Eigen::Vector3f AB = t.get_positions_projected()[1] - t.get_positions_projected()[0]; Eigen:...
// Optimise #include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "/home/shahraaz/bin/debug.h" #else #define db(...) #endif using ll = long long; #define f first #define s second #define pb push_back #define all(v) v.begin(), v.end() const int NAX = 2e5 + 5, MOD = 1000000007; class SoccerStadium { pub...
#include "Array.h" #include "mpifftw++.h" #include "utils.h" using namespace std; using namespace utils; using namespace fftwpp; using namespace Array; inline void init(array3<double> f, split3 d) { for(unsigned int i=0; i < d.x; ++i) { unsigned int ii=d.x0+i; for(unsigned int j=0; j < d.y; j++) { uns...
#include "aidl_language.h" #include <iostream> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #include <android-base/parseint.h> #include <android-base/strings.h> #include "aidl_language_y.hpp" #include "logging.h" #ifdef _WIN32 int isatty(int fd) { return (fd == 0); } #endif usi...
#include "cluster.h" #include "bamutil.h" #include "reference.h" #include "group.h" Cluster::Cluster(Options* opt){ mOptions = opt; } Cluster::~Cluster(){ map<string, Pair*>::iterator iter; for(iter = mPairs.begin(); iter!=mPairs.end(); iter++) { delete iter->second; } } void Cluster::addPai...
#include "TMath.h" #include "TRint.h" #include "TROOT.h" #include "TStyle.h" #include "TLorentzVector.h" #include "TCanvas.h" #include "TH1.h" #include "TF1.h" #include "TLatex.h" #include "TLegend.h" #include "TGaxis.h" #include <fstream> #include <iostream> #include "TMath.h" #include <string> #include <map> void S...
/* ----------------------------------------- Libraries ----------------------------------------- */ // -lcomdlg32 /* ----------------------------------------- Unicode ----------------------------------------- */ #ifndef UNICODE #undef _UNICODE #else #ifndef _UNICODE #define _UNICODE #endif #endif /* -...
// 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. // // This file defines specific implementation of BrowserDistribution class for // Google Chrome. #include <atlbase.h> #include <shlwapi.h> #include...
#include "core.h" #include "../utils/toolkit.h" namespace GlobalGraph { // global parameters Variable* INPUTS = NULL; Variable* OUTPUTS = NULL; vector<Variable*> GRAPH; bool IS_TRAINING = true; }; template <class T> vector<T*> GlobalGraph::topological_sort(T* inputs, T* outputs) { vector<T*> sorted_graph; vec...