text
stringlengths
3.08k
12.5k
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/** * Copyright (c) 2018, <NAME> * * 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 following discla...
#include <limits> #include "RaZtracer/Utils/Shape.hpp" namespace { bool solveQuadratic(float a, float b, float c, float& firstHitDist, float& secondHitDist) { const float discriminant = b * b - 4 * a * c; if (discriminant < 0) { return false; } else if (discriminant == 0) { firstHitDist = secondHitDis...
/******************************************************************************************************* * Copyright 2018 Alliance for Sustainable Energy, LLC * * NOTICE: This software was developed at least in part by Alliance for Sustainable Energy, LLC * ("Alliance") under Contract No. DE-AC36-08GO28308 with the...
#include "SimulationCore_pcp.h" #include "Model_T2D_fluid.h" #include "Step_T2D_fluid.h" #include "Model_T2D_fluid_hdf5_io_utilities.h" #include "TimeHistoryOutput_T2D_fluid.h" int TimeHistoryOutput_T2D_fluid::init(void) { if (is_init) return 0; is_init = true; switch (res_file->get_type()) { case ResultFile...
/** Rule of thumb for precision issues- (by Errichto) Well written FFT has an error that depends mainly on the magnitude of numbers in the answer, so it works if the resulting polynomial doesn't have numbers bigger than 10^15 for doubles and 10^18 for long doubles. You can measure the error by finding max of abs(x−llro...
/* File: ast_expr.cc * ----------------- * Implementation of expression node classes. */ #include <cstring> #include "ast_expr.h" #include "ast_type.h" #include "ast_decl.h" #include "symtable.h" IntConstant::IntConstant(yyltype loc, int val) : Expr(loc) { value = val; } void IntConstant::PrintChildren(int in...
#include <libopencm3/cm3/nvic.h> #include <libopencm3/cm3/systick.h> #include <libopencm3/stm32/rcc.h> #include <libopencm3/stm32/gpio.h> #include <libopencm3/stm32/exti.h> #include <libopencm3/stm32/timer.h> #include "t_sys_timer.h" #include "serial.h" #include "t_hr_timer.h" #include "t_msxmap.h" #include "t_port_de...
/* file: daal_lenet.cpp */ /******************************************************************************* * Copyright 2017 Intel Corporation * All Rights Reserved. * * If this software was obtained under the Intel Simplified Software License, * the following terms apply: * * The source code, information and mat...
/* * Clients connect, send a short message and close. * Server counts them all. * Build with: * g++ -std=c++11 -pthread -DNDEBUG -O2 test.cpp */ #include <stddef.h> #include <sys/socket.h> #include <arpa/inet.h> // pton #include <netinet/in.h> // htons, sockaddr_in, constants #include <unistd.h> #include <poll.h...
/** * @file ws28xx.cpp * */ /* Copyright (C) 2017-2022 by <NAME> mailto:<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 ...
#include <omp.h> #include <unistd.h> #include <cstring> #include <fmpi/Alltoall.hpp> #include <fmpi/Debug.hpp> #include <fmpi/concurrency/Dispatcher.hpp> #include <fmpi/concurrency/Future.hpp> #include <iostream> #include <numeric> #include <rtlx/ScopedLambda.hpp> #include <sstream> #include <tlx/math/div_ceil.hpp> #...
/** @file @author <NAME> */ #include "httpconnectionhandler.h" #include "httpresponse.h" HttpConnectionHandler::HttpConnectionHandler(QSettings *settings, HttpRequestHandler *requestHandler, QSslConfiguration *sslConfiguration) : QThread() { Q_ASSERT(settings != 0); Q_ASSERT(requestHandler != 0); this->settin...
// STL #include <iostream> #include <map> #include <string> #include <vector> // Framework #include <Application.h> #include <MeshOpenGL.h> #include <ShaderProgram.h> namespace fw = Framework; // GLM #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> // OpenGL #include...
// @copyright 2017 - 2018 <NAME> // Distributed under the MIT License. // (See accompanying file LICENSE.md or copy at https://opensource.org/licenses/MIT) #pragma once #include <distant/agents/process.hpp> #include <distant/memory/virtual_ptr.hpp> #include <distant/memory/virtual_reference.hpp> namespace distant::m...
#include <iostream> #include <unordered_map> #include <vector> #include <map> #include <string> #include <algorithm> #include <unordered_set> using namespace std; struct Trie { map<char,unsigned> next; }; struct Node { vector<unsigned> next; unsigned idx; }; void dfs( unsigned curr, vector<Node> & ns, ...
/****************************************************************************** OSRA: Optical Structure Recognition Application Created by <NAME>, 2007-2013 (<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 ...
/* * Copyright (C) 2017 Walk-Man * Author: <NAME>, <NAME>, <NAME> * email: <EMAIL>, <EMAIL> * * This program 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 3 of the License, or *...
#pragma once #include <opencv2/opencv.hpp> #include <iostream> #define ITERATION 20 #define ESTIMATEPARA 3 //pos x, pos y, yaw #define ALPHA 0.2 #define TIMEINTERVAL 0.4 using namespace cv; using namespace std; /* *TODO: 1. time interval for velocity estimate. A parameter */ class posEstimateDec { private: /*...
#include "TessellatedQuad.h" #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/transform.hpp> #include <iostream> using namespace std; //add to glfwGetKey that gets the pressed key only once (not several times) char keyOnce[GLFW_KEY_LAST + 1]; #define glfwGetKeyOnce(WINDOW, KEY) \ (glfwGetKey(...
#include "pch.h" #include "EsriAsciiGrid.h" #include "DSSGrid.h" /* read/write arc info ascii raster http://desktop.arcgis.com/en/arcmap/10.3/manage-data/raster-and-images/esri-ascii-raster-format.htm */ EsriAsciiGrid::EsriAsciiGrid() { } EsriAsciiGrid::~EsriAsciiGrid() { } //=====================================...
// //////////////////////////////////////////////////////// // # Title // Triangle containment // // # URL // https://projecteuler.net/problem=102 // http://euler.stephan-brumme.com/102/ // // # Problem // Three distinct points are plotted at random on a Cartesian plane, for which `-1000 <= x`, `y <= 1000`, such that a...
////////////////////////////////////////////////////////////////////// // // Crytek Source code // Copyright (c) Crytek 2001-2004 // // File: // // Description: // // History: // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "StringUtils.h" #...
#include "HumanViewActor.h" #include <vtkCamera.h> #include <vtkMath.h> #include <vtkMatrix4x4.h> #include <vtkObjectFactory.h> #include <vtkRenderer.h> #include "HumanModel.h" vtkStandardNewMacro(HumanViewActor); const GLchar* VERTEX_SHADER = "#version 150\n" "#define COLOR (vec3(.7))\n" "#define LIGHT_POS (vec3(...
#include <iostream> #include <vector> #include "Communications.hpp" //#include "OWL_DFT_Interface.hpp" // Global MPI communicator (this is an extern variable) MPICommunicator GlobalComm; void MPICommunicator::initialize(MPI_Comm incomingComm) { communicator = incomingComm; MPI_Comm_rank(communicator, &thisMPIr...
/** * @page Examples * - MainV10.22_bitExt_3Markov_bitWeightPunc.cpp * @file * @brief Simulation Entrance * @version 10.22 * @author <NAME>, yh3g09 (<EMAIL>, <EMAIL>) * @date Jun 15, 2010-Nov 10, 2011 * @copyright None */ #include "Headers.h" #include MainClass_H #include FileOper_H #include Channels_H #incl...
#include <world/world.hpp> #include <algorithm> #include <deque> #include <limits> #include <glm/gtx/hash.hpp> namespace { inline glm::ivec2 tile_to_neigh_offset(glm::ivec2 pos) { int tx = 0, ty = 0; if (pos.x < 0) tx = -1; else if (pos.x >= world::chunk_data::width) tx = 1; if (pos.y < 0) ty = -1; else if ...
#pragma once #include <Eigen/Dense> #include <string> #include <vector> #include <opencv2/core.hpp> #include <boost/algorithm/string.hpp> #include "pointmatcher/PointMatcher.h" typedef PointMatcher<double> PM; typedef PM::DataPoints DP; using namespace PointMatcherSupport; // NOLINT /*! \brief Retrieves a vector ...
#include <gflags/gflags.h> #include <algorithm> #include <cstdint> #include <iostream> #include <limits> #include <map> #include <string> #include <type_traits> #include <utility> #include <vector> #include "ncode/common.h" #include "ncode/logging.h" #include "ncode/stats.h" #include "ncode/strutil.h" #include "ncode/...
/* $NetBSD: arm_arch.cpp,v 1.3 2001/05/08 18:51:24 uch Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by UCHIYAMA Yasushi. * * Redistribution and use in source and binary forms, with or without *...
// InputManager.cpp // 29. April 2017 // Created by: // <NAME> (<EMAIL>) // <NAME> (<EMAIL>) // <NAME> (<EMAIL>) // <NAME> (<EMAIL>) // <NAME> (@alaska.edu) // // Source file for InputManager class #include <SFML/Window/Mouse.hpp> #include <SFML/Window/Event.hpp> #include <iostream> #include "../incl...
// this example demonstrates how to implement a simple value driven type effector #include "c4d.h" #include "c4d_symbols.h" #include "c4d_baseeffectorplugin.h" #include "main.h" #include "oenoise.h" class NoiseEffector : public EffectorData { public: Float size; virtual Bool InitEffector(GeListNode* node); virtu...
#include "GAMER.h" //------------------------------------------------------------------------------------------------------- // Function : Init_PassiveVariable // Description : Initialize settings for the passive variables // // Note : 1. Set field names for passively advected scalars and passive parti...
// ************************************************************************* // Copyright (C) 2014 by <NAME> // You may not use this file except in compliance with the License. // You obtain a copy of the License in the LICENSE file. // Unless required by applicable law or agreed to in writing, software // distributed...
/* * Copyright 2019 Rockchip Electronics Co. LTD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
/******************************************************************************* * File: Provision_tpm.cpp * Description: Program to provisiona TPM after reset * * Author: <NAME> * * Created: Saturday 25 May 2019 * * (C) Copyright 2019, University of Surrey, all rights reserved. * **********************...
#include "ros/ros.h" #include "std_msgs/String.h" #include <sstream> #include "sensor_msgs/LaserScan.h" #include <nav_msgs/OccupancyGrid.h> #include <tf/message_filter.h> #include <tf/transform_listener.h> #include <tf/transform_broadcaster.h> #include <message_filters/subscriber.h> //structure 2point struct Point2 { p...
#include <windows.h> #include <tchar.h> #include <stdio.h> #include <urlmon.h> const WCHAR * GetPropertyName(Uri_PROPERTY property); void DisplayHelp(WCHAR *pwzApplicationName); void DisplayIUri(IUri *pIUri); int wmain(int argc, WCHAR* argv[]) { IUri * pBaseIUri = NULL; IUri * pRelativeIUri = NULL; IU...
#include "cong_gp.h" #include "lg/lg_main.h" #include "gp/gp.h" #include "cong_est_bb.h" Legalizer* legalizer; void gp_cong(vector<Group>& groups, int iteration) { printlog(LOG_INFO, ""); printlog(LOG_INFO, " = = = = begin congestion-driven GP = = = = "); printlog(LOG_INFO, ""); double prevHpwl, curHp...
#include "Adafruit_ssd1306syp.h" Adafruit_ssd1306syp::Adafruit_ssd1306syp(int sda, int scl): Adafruit_GFX(SSD1306_WIDTH,SSD1306_HEIGHT) { m_sda = sda; m_scl = scl; m_pFramebuffer = 0; } Adafruit_ssd1306syp::~Adafruit_ssd1306syp() { //release the memory. if(m_pFramebuffer){ free(m_pFramebuffer); } } //initializ...
// Copyright 2009-2020 NTESS. Under the terms // of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. // // Copyright (c) 2009-2020, NTESS // All rights reserved. // // Portions are copyright of other developers: // See the file CONTRIBUTORS.TXT in the top level directory...
//#include<iostream> //#include<time.h> // //using namespace std; // //template <class T> //class HashTable { // //private: // T *pArr; // int nSize; // T EMPTY; //为空 // T TOMB; //墓碑 // int nCount; // int hFun(T key) { return key % nSize; } //散列函数 // int hDoubel(T key) { //双散列函数 // int h1 = key ...
/* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certain ...
#include "script.h" #include <iostream> #include <iomanip> #include "../engine/engine.h" #include "../util/binaryreader.h" #include "../audio/audio.h" #include "scriptimpl.h" #include "umiscript.h" #include "chiruscript.h" #include "higuscript.h" #include "scriptdecompiler.h" Script::Script(GraphicsContext &ctx, Au...
#include "RelayUnit.h" static void updateStatusOnStart(const std::shared_ptr<RelayStatus>& st) { st->lastStart = millis(); } static void updateStatusOnSop(const std::shared_ptr<RelayStatus>& st) { st->lastStop = millis(); if (st->lastStart > 0) { st->lastElapsed = st->lastStop - st->lastStart; st->total...
// // ckks_mat_det.cpp // BGV-Adder // // Created by <NAME> on 28/10/2020. // Copyright © 2020 RUG. All rights reserved. // #include "ckks_mat_det.hpp" #include <complex> #include <helib/norms.h> using helib::Context; using helib::Ctxt; using helib::SecKey; using helib::PubKey; using std::vector; using std::compl...
/*****************************************************************/ /* NAME: <NAME> */ /* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */ /* FILE: VPlug_DropPoints.cpp */ /* DATE: June 13th, 2009 ...
#include "generator/patches.hpp" #include "utils/slices.hpp" #include <fstream> #include <iostream> #include <stdexcept> Patches::Patches(int argc, char** argv) { _tesselation_level = std::stoi(argv[1]); std::ifstream file(argv[0]); file >> _n_patches; for (auto k = 0; k < _n_patches; k++) { ...
#include "Common.hpp" #include "resource/XML.hpp" #include "VarLoader.hpp" // #include "resource/generator/GeomGen.hpp" using namespace reprize; using namespace res; using namespace inf; using namespace res; using namespace std; VarLoader::VarLoader(VFS* vfs_, Node* init_def_) : Loader("VariableLoader"), vfs(vf...
// // Copyright (c) 2012, <NAME>, Inc. // Copyright (c), assimp OpenGL sample // Copyright (c) 2013, Aldebaran Robotics // 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...
/* This file is part of Bohrium and copyright (c) 2012 the Bohrium team <http://www.bh107.org>. Bohrium 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 3 of the License, or (at your option) ...
#include "IMKitUtilities.h" #include <string.h> #include <stdlib.h> #include <stdio.h> #include <NodeInfo.h> const int32 kSmallIcon = 16; const int32 kLargeIcon = 32; #ifdef B_ZETA_VERSION #include <sys_apps/Tracker/Icons.h> #endif // Loads the icon. Callers responsibility to free BBitmap BBitmap *ReadNodeIcon(co...
// // Created by xtofh on 06/08/2020. // #include <libgba-sprite-engine/sprites/sprite_builder.h> #include <libgba-sprite-engine/gba/tonc_memdef.h> #include <libgba-sprite-engine/gba_engine.h> #include <libgba-sprite-engine/effects/fade_out_scene.h> #include <libgba-sprite-engine/background/text_stream.h> #include "C...
#include "reconRootData/AcdAssoc.h" #include "reconRootData/AcdTkrHitPocaV2.h" #include "reconRootData/AcdTkrGapPocaV2.h" #include "Riostream.h" ClassImp(AcdAssoc) ; /// Default constructor. Set everything to default values AcdAssoc::AcdAssoc() :TObject(), m_trackIndex(-1), m_upward(kFALSE), m_energy(...
/* ----------------------------------------------------------------------------- Maintainer: <EMAIL> / www.jeffskinnerbox.me Version: 0.9.4 DESCRIPTION SOURCES DOCUMENTATION For design patterns used, check out ~/src/arduino/sketchbooks/libraries/PubSubClient/src/* CREATED BY <EMAIL> --------------...
#include "config.h" #include <unistd.h> #include <getopt.h> #include "DedupInstance.h" void _verify(bool cond, const char *file, int line, const char *func, const char *expr) { if (!cond) { int errsv = errno; LOG("ASSERTION FAILED: %s]\n", expr); LOG("file: %s\n", file); LOG("line...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team. * Copyright (c) 2012,2014,2015,2017,2018,2019, by the GROMACS development team, led by * <NAME>, <NAME>, <NAME>, and <...
#include "gtest/gtest.h" #include <darabonba/core.hpp> #include <alibabacloud/event_bridge_util.hpp> #include "mock.h" int main(int argc, char **argv) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } TEST(tests_Client, test_getStringToSign) { Darabonba::Request req; req.method = "GET"; re...
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkCodec.h" #include "SkCodecPriv.h" #include "SkColorPriv.h" #include "SkColorTable.h" #include "SkData.h" #include "SkStream.h" #include "SkWbmpCodec.h" // Each bi...
/* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2018, CITEC Bielefeld * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following con...
//-------------------------------------------------------------------------- // File and Version Information: // $Id: TrkPrimaryVertex.cc,v 1.8 2007/05/18 03:39:52 kelsey Exp $ // // Description: // // Utility to find a 'primary' vertex in a set of tracks. A 'seed' // point can be provided. Tracks are ordered in p...
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #include "RoboRioSimGui.h" #include <glass/hardware/RoboRio.h> #include <memory> #include <hal/simulation/RoboRioData...
#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ ofSetFrameRate(60); ofSetVerticalSync(true); ofBackground(10, 10, 10); // Set up Bullet Physics camera.setPosition(ofVec3f(0, -3.f, -40.f)); camera.lookAt(ofVec3f(0, 0, 0), ofVec3...
#ifndef DISABLE_V3D_MSG #define DISABLE_V3D_MSG #endif #include "plugin_pointcloud_match.h" #include "q_pointcloud_match.h" #include "basic_surf_objs.h" #include <string.h> #include <QtGlobal> void printHelp(); NeuronTree export_invp_2swc(vector<Coord3D_PCM> & vec_2_invp, NeuronTree & nt_sub); #include <unistd.h> ...
/* Copyright 2019-2020 <NAME> * * This file is part of WarpX. * * License: BSD-3-Clause-LBNL */ #include "SpectralAlgorithms/GalileanPsatdAlgorithmRZ.H" #include "SpectralAlgorithms/PsatdAlgorithmRZ.H" #include "SpectralKSpaceRZ.H" #include "SpectralSolverRZ.H" #include "Utils/WarpXProfilerWrapper.H" #include "War...
// Optimise #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; // #define MULTI_TEST #ifdef LOCAL #define db(...) ZZ(#__VA_ARGS__, __VA_ARGS__); #define pc(...) PC(#__VA_ARGS__, __VA_ARGS__); template <typename T, type...
/* FanRemoteGPIO - Arduino libary to control a fan remote connected via GPIO pins. Copyright (c) 2017 <NAME> Contributors: - <NAME> Project home: https://github.com/rickybrent/fan-remote-gpio/ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser Gene...
/* * Copyright (c) 2017 Sprint * * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to...
//---------------------------------Spheral++----------------------------------// // SpheralTimers -- Declare the Timers for use in profiling Spheral // // Created by <NAME>, Sat Dec 1 15:03:19 PST 2001 //----------------------------------------------------------------------------// #include "Timer.hh" // Must initia...
#include "SUkladRownanL.hh" /*! * \file * \brief Definicje metod i funkcji klasy UkladRownanL * * Plik zawiera definicje metod i funkcji działających * na klasie UkladRownanL. */ /********** KONSTRUKTORY **********/ template<class TYP, unsigned int ROZMIAR> UkladRownanL<TYP,ROZMIAR>::UkladRownanL() { MacierzKw...
#include "pbrt.h" #include "api.h" #include "parser.h" #include "parallel.h" #include <glog/logging.h> using namespace pbrt; static void usage(const char *msg = nullptr) { if (msg) fprintf(stderr, "pbrt: %s\n\n", msg); fprintf(stderr, R"(usage: pbrt [<options>] <filename.pbrt...> Rendering options: ...
#include <Wire.h> #include "Arduino.h" #include "MPU6050.h" #include "global.h" // Define the class constructor MPU6050::MPU6050(double AcX_offset_in, double AcY_offset_in, double AcZ_offset_in, double GyX_offset_in, double GyY_offset_in, double GyZ_offset_in) { double n = sqrt(AcX_offset_in * AcX_o...
// Copyright 2018 The clvk authors. // // 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 ...
/////////////////////////////////////////////////////////////////////////////// // File: DDPixFwdDiskAlgo.cc // Description: Position n copies at given z-values /////////////////////////////////////////////////////////////////////////////// #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "DetectorDe...
/*========================================================================= * * Copyright NumFOCUS * * 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 * * https://www.apache.o...
// Copyright (c) 2006-2008 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 "sandbox/src/win_utils.h" #include <map> #include "base/logging.h" #include "base/scoped_ptr.h" #include "sandbox/src/internal_types.h...
// Copyright 2018 The Fuchsia Authors // // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT #include <bits.h> #include <arch/arm64/hypervisor/el2_state.h> #include <arch/arm64/hypervisor/gic/el2.h> #include <arch/arm64/hy...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /************************************************************************************************** *** This file was autogenerated from GrEllipseEffect.fp; do not modify. *...
#include <SD.h> #include "ProjectPersistence.h" #include "ArduinoJson-v6.11.0.h" #include "Sequencer.h" #include "ParameterSet.h" #include "Arduino.h" #define PROJECTSLOTS 16 void ProjectPersistence::init(){ int attempts = 4; while (!sdCardInitialized && attempts-- > 0) { sdCardInitialized = SD.begin(...
// Copyright 2013-2020 NTESS. Under the terms // of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. // // Copyright (c) 2013-2020, NTESS // All rights reserved. // // Portions are copyright of other developers: // See the file CONTRIBUTORS.TXT in the top level directory...
#include "color.hpp" #include "drawable_helpers.hpp" #include "mocks/mock_drawable.hpp" #include "mocks/mock_tween.hpp" #include "sdl_setup.hpp" #include "shape.hpp" #include "texture_manager_impl.hpp" #include "tweens/tween_alpha.hpp" #include "tweens/tween_color.hpp" #include "tweens/tween_position.hpp" #include "tw...
// (C) Copyright <NAME> 2006. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <boost/math/special_functions/gamma.hpp> #include <boost/math/constants/constants.hpp> #...
// CS3242 Operating Systems // Spring 2015 // Project 4: Process Synchronization, Part 2 // <NAME>, <NAME>, and <NAME> // Date: 3/17/2015 // File: Project4b.cpp #include <iostream> #include <stdlib.h> #include <unistd.h> #include <fstream> #include <sys/shm.h> #include <sys/mman.h> #include <pthread.h> #include <semap...
/* * * Copyright 2015 gRPC authors. * * 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 la...
/* * ImPduBase.cpp * * Created on: 2013-8-27 * Author: <EMAIL> */ #include "util.h" #include "ImPduBase.h" #include "IM.BaseDefine.pb.h" using namespace IM::BaseDefine; CImPdu::CImPdu() { m_pdu_header.version = IM_PDU_VERSION; m_pdu_header.flag = 0; m_pdu_header.service_id = SID_OTHER; m_pdu_header.com...
#include "FWCore/PluginManager/interface/PluginManager.h" #include "FWCore/PluginManager/interface/standard.h" #include "FWCore/PluginManager/interface/SharedLibrary.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/ServiceRegistry/interface/ServiceRegistry.h" // #include "CondCore/CondDB/inte...
/******************************Module*Header*******************************\ * Module Name: CMixedObjects.cpp * * This file contains the code to support the functionality test harness * for GDI+. This includes menu options and calling the appropriate * functions for execution. * * Created: 05-May-2000 - <NAME>...
/* * Copyright (c) 2016-2019 <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 from the use of this software. * Permission is granted to anyone to use this software for any purpose, * including commercial appli...
#include <cassert> #include <cstdio> #include "adb.h" #include "common.h" #include "crypto.h" #include "leveldb/comparator.h" #include "cryptopp/sha.h" static const std::string OBFUSCATION_KEY = "<KEY>"; static Code42AES256RandomIV aes256; static Code42Blowfish448 blowfish; class Code42Comparator : public leveldb...
#define PI 3.14159265359 #define DEGtoRAD(x) (x * PI / 180.0) typedef double real; struct point{ real x, y; point(){ }; point(real _x, real _y){ x = _x; y = _y; } bool operator < (point other) const{ if(fabs(x - other.x) >= EPS) return x < other.x; return y < other.y; } bool operator == (point other){ re...
// Copyright 2015 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 applicable...
#include <memory> #include "rclcpp/rclcpp.hpp" #include "geometry_msgs/msg/twist.hpp" #include "roboclaw.hpp" #include "qbot_nodes_cpp/msg/encoder_counts.hpp" #include <memory> #include <sched.h> #include <sys/mman.h> #include "robot_configuration.hpp" using std::placeholders::_1; class BaseController : public rclcp...
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited JUCE is an open source library subject to commercial or open-source licensing. By using JUCE, you agree to the terms of...
/* <NAME> IIIT Bangalore */ #include <iostream> #include <cstdio> #include <cstdlib> #include <algorithm> #include <cmath> #include <vector> #include <set> #include <map> #include <unordered_set> #include <unordered_map> #include <queue> #include <ctime> #include <cassert> #include <complex> #include <string> #include...
/* This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT. * See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details. * Author(s): <NAME> * * Copyright (C) 2020 Inria * * Modification(s): * - YYYY/MM Author: Descriptio...
/** * Basic Micromouse Solver for 16 x 16 square grids, where the mouse starts from the * lower left corner while facing northwards. * * Competition : Shaastra 2021 @ IIT-M * Team Name : a-MAZE! * Date : 23-02-2021 */ #include "API.h" #include <cmath> #include <iostream> #include <string> #de...
#define _USE_MATH_DEFINES #include <math.h> #include <allegro5\allegro.h> #include <allegro5\allegro_primitives.h> const int SCREEN_WIDTH = 800; const int SCREEN_HEIGHT = 600; const int FOV = 64; int map[10][10] = { { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }, { 1, 0, 0, 0, 0, 0, 0, 0, 0, 1 }, { 1, 0, 0, 1, 0, 1, 1, 1, 0, 1 ...
#include <cassert> #include "factor.hpp" #include "node.hpp" #include "seir.hpp" // Compenentwise in-place multiplicaton of two messages void operator*=(Message& a, const Message& b) { assert(a.size() == b.size()); for(unsigned long i=0; i<a.size(); ++i) { a[i] *= b[i]; } } // Componentwise in-p...
// Copyright 2020 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 "components/shared_highlighting/core/common/text_fragment.h" #include <sstream> #include "base/strings/string_split.h" #include "base/strings/s...