text
stringlengths
7
961k
#include "XbeeCommand.h" #include "XbeeException.h" using namespace std; XbeeCommand::XbeeCommand():XbeeCommand(string()) //cmd(),port(XbeePort::xbee_port::NONE),portFunction(XbeePort::xbee_port_function::None) { } XbeeCommand::XbeeCommand(const string cmd):cmd(cmd),port(XbeePort::pinID::NONE),portFunction(XbeePort...
// Copyright 2014 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 "content/browser/renderer_host/render_frame_proxy_host.h" #include <memory> #include <unordered_map> #include <utility> #include <vector> #incl...
/* * Copyright (c) 2009-2011, NVIDIA 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,...
#include "stdafx.h" #include "resourcemanager.h" #include "xr_effgamma.h" #include "render.h" void CRenderDevice::_SetupStates () { // General Render States mView.identity (); mProject.identity (); mFullTransform.identity (); vCameraPosition.set (0,0,0); vCameraDirection.set (0,0,1); vCameraTop.set (0,1,...
// // Copyright (C) 2002-2003 NVIDIA // // File: nv_dds.cpp //- // ========================================================================== // Copyright 2015 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk // license agreement provided at the time of installat...
//dimersChaperonComplex.cpp #include "protchap.h" #include "doubleDomain.h" #include "utilities.h" #include <math.h> #include <iostream> #include <stdlib.h> char VERSIONDD[100] = "Version 04-09-11, V21 doubleDomain.cpp"; int doubleDomain::foldToMinimumEnergy (double times, int numOfSimulat...
// Copyright 2012 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 ...
/* This file is a part of libcds - Concurrent Data Structures library (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2017 Source code repo: http://github.com/khizmax/libcds/ Download: http://sourceforge.net/projects/libcds/files/ Redistribution and use in source and binary forms, with...
/**************************************************************************/ /*! @file RTClib.cpp @mainpage Adafruit RTClib @section intro Introduction This is a fork of JeeLab's fantastic real time clock library for Arduino. For details on using this library with an RTC module like the DS1307, PCF852...
/* Copyright 2017-2019 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed t...
#include "simppl/wstring.h" #include <cstring> #include <cassert> namespace simppl { namespace dbus { /*static*/ void WStringCodec::encode(DBusMessageIter& iter, const std::wstring& str) { static_assert(sizeof(uint32_t) == sizeof(wchar_t), "data types mapping does not match"); DBusMessageIter _iter; db...
/* Copyright (c) 2017 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Gabriel Ebner */ #include <fstream> #include "kernel/init_module.h" #include "util/init_module.h" #include "util/test.h" #include "util/sstream.h" #include "util/sexpr/init_modu...
#include "c/schemas/ModioIcon.h" extern "C" { void modioInitIcon(ModioIcon* icon, nlohmann::json icon_json) { icon->filename = NULL; if(modio::hasKey(icon_json, "filename")) { std::string filename_str = icon_json["filename"]; icon->filename = new char[filename_str.size() + 1]; strcpy(...
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h" #include <string> #include <vector> #include "ash/shell.h" #include "base/bind.h" ...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" #include "beatsaber-hook/shared/utils/typedefs-string....
/* * Copyright 2016 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 "SkData.h" #include "SkJpegCodec.h" #include "SkMakeUnique.h" #include "SkMutex.h" #include "Sk...
#include "ShootScript.h" #include "LoadingJson.h" #include "FieldNames.h" #include "GameTimer.h" REGISTER_FINISH(ShootScript, ScriptBase) {} void ShootScript::OnStart() { _sound = GET_FIRST_SCRIPT_OF_TYPE(CanonSound); _rb = GET_FIRST_SCRIPT_OF_TYPE(RigidBody2D); _animator = GET_FIRST_SCRIPT_OF_TYPE(Animator); _is...
#include "kalman_filter.h" #include <iostream> // for std::cout / std::endl #include <cmath> // cos/sin/pi=M_PI using Eigen::MatrixXd; using Eigen::VectorXd; using std::cout; using std::endl; /* * History * v01 : implement Predict(), Update(), UpdateEKF(), fix build errors * v02 : first "working" version ...
#pragma once //------------------------------------------------------------------------------ // // Copyright 2018-2019 Fetch.AI Limited // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the Licen...
/* * Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates * * 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 req...
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "NetcodeUnitTestPCH.h" #include "NUTUtil.h" #include "NUTUtilNet.h" #include "UnitTestCommandlet.h" #include "UnitTestManager.h" #include "SLogDialog.h" // @todo JohnB: Fix StandaloneRenderer support for static builds #if !IS_MONOLITHIC #include...
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules #include "AggressiveMonster.h" #include "../World.h" #include "../Entities/Player.h" #include "../LineBlockTracer.h" cAggressiveMonster::cAggressiveMonster(const AString & a_ConfigName, eMonsterType a_MobType, const AS...
#include <nan/nan.h> #include <node.h> #include <sodium.h> #include "natrium.h" namespace natrium { class SecretBoxDecrypt : public Nan::AsyncWorker { public: SecretBoxDecrypt(Nan::Callback * callback, char * key, char * cipher, size_t cipher_size): Nan::AsyncWorker(callback), _key(key), _cipher(cipher), _cipher_siz...
#include "common/memory/stats.h" #include <cstdint> #ifdef TCMALLOC #include "gperftools/malloc_extension.h" namespace Envoy { namespace Memory { uint64_t Stats::totalCurrentlyAllocated() { size_t value = 0; MallocExtension::instance()->GetNumericProperty("generic.current_allocated_bytes", &value); return va...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The DWE developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "transactionrecord.h" #...
// // __ __ __ // / / / /__ __ ____/ /_____ ____ // / /_/ // / / // __ // ___// __ \ // / __ // /_/ // /_/ // / / /_/ / // /_/ /_/ \__, / \__,_//_/ \____/ // /____/ // // ...
#include "pickup.h" #include "player.h" // globals /////////////////////////////////////////////////////////////////// Pickup pickups[PICKUP_MAX]; // method implementations //////////////////////////////////////////////////// // addPickup // tries to add a pickup to the world. returns true if succsessful bool addPi...
//##################################################################### // Copyright 2008-2009, Avi Robinson-Mosher. // This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt. //#################################################################...
/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor * ...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
 // MainFrm.cpp : CMainFrame 类的实现 // #include "stdafx.h" #include "紫禁神器 之 战团SuperMS.h" #include "MainFrm.h" #include "MainCore.h" #include "WSE.h" #include "ZJ_Algorithm.h" #ifdef _DEBUG #define new DEBUG_NEW #endif void CALLBACK GUICallBackMainView(UINT Event, int ID, CZJGUIControl* pCtrl) { ((CMainFrame*)...
// queryutiltests.cpp : query utility unit tests // /** * Copyright (C) 2009 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This prog...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" // Including type: IAnalyticsModel #include "GlobalNamespace/IAnalyticsMod...
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #include "CrashReportClientApp.h" FCrashReportClientConfig::FCrashReportClientConfig() : DiagnosticsFilename( TEXT( "Diagnostics.txt" ) ) , SectionName( TEXT( "CrashReportClient" ) ) { const bool bUnattended = #if CRASH_REPORT_UNATTENDED_ONLY true; #el...
// // container with recontructed jets // #include "UserCode/diall/interface/lwJetContainer.h" ClassImp(lwJetContainer) //__________________________________________________________ lwJetContainer::lwJetContainer() : TNamed("lwJetContainer","lwJetContainer"), fJets(), fConst(), fJetsName("jets"), fRadius() { ...
// https://moodle.usm.md/mod/assign/view.php?id=71065 /* Tested with g++ main.cpp. # Notes on code style. I've been programming in c# recently, which is where the convention of calling methods with capital letters is established. The reason why the `Container` class has lower-case methods is beca...
///////////////////////////////////////////// // // // Copyright (C) 2021-2021 Julian Uy // // https://sites.google.com/site/awertyb // // // // See details of license at "LICENSE" // // /...
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "../../../include/fxge/fx_ge.h" #include "../../../include/fxge/fx_fr...
// // ReductionExecution.hpp // MNN // // Created by MNN on 2019/10/25. // Copyright © 2018, Alibaba Group Holding Limited // #ifndef ReductionExecution_hpp #define ReductionExecution_hpp #include "core/Execution.hpp" #include <MNN_generated.h> #include <vector> #include <string.h> #include <unordered_set> #inclu...
#include <bits/stdc++.h> #define each(i, c) for (auto& i : c) #define unless(cond) if (!(cond)) using namespace std; typedef long long int lli; typedef unsigned long long ull; typedef complex<double> point; template<typename P, typename Q> ostream& operator << (ostream& os, pair<P, Q> p) { os << "(" << p.first <<...
/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "Benchmark.h" #include "SkCanvas.h" #include "SkPaint.h" #include "SkRandom.h" #include "SkString.h" #include "SkXfermode.h" // Benchmark that draws non-AA rects wit...
/**************************************************************************** * * Copyright (C) 2012 PX4 Development Team. 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. Redistri...
// // Datum - mesh component // // // Copyright (c) 2016 Peter Niekamp // #include "actorcomponent.h" #include "debug.h" using namespace std; using namespace lml; //|---------------------- MeshStorage --------------------------------------- //|------------------------------------------------------------------------...
#include "aruco_unity_plugin/std/vector_vector_vector_point2f.hpp" #include "aruco_unity_plugin/cv/exception.hpp" extern "C" { // Constructors & Destructors std::vector<std::vector<std::vector<cv::Point2f>>>* au_std_vectorVectorVectorPoint2f_new() { return new std::vector<std::vector<std::vector<cv::Point2f>>...
/*************************************************************************** * Copyright (c) 2018, Martin Renou, Johan Mabille, Sylvain Corlay, and * * Wolf Vollprecht * * Copyright (c) 2018, QuantStack * * ...
#include "cpps_smtp.h" #include <curl/curl.h> namespace cpps { cpps_smtp::cpps_smtp() { smtp_port = 25; smtp_timeout = 30; smtp_ssl = false; smtp_verbose = false; } cpps_smtp::~cpps_smtp() { } void cpps_smtp::setsmtp(std::string host, cpps_integer port) { smtp_host = host; smtp_port = port; ...
/// \copyright Simmypeet - Copyright (C) /// This file is subject to the terms and conditions defined in /// file 'LICENSE', which is part of this source code package. #ifndef AXIS_SYSTEM_RANDOMIMPL_INL #define AXIS_SYSTEM_RANDOMIMPL_INL #pragma once #include "../../Include/Axis/Exception.hpp" #...
//===--- ImportEnumInfo.cpp - Information about importable Clang enums ----===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and...
#include <iostream> #include <memory> #include "node_uptr.h" template class Node<double>; template<typename T> void build_tree(Node<T>& parent, int depth); int main(int argc, char *argv[]) { Node<double> root(0, 1.1); build_tree<double>(root, 3); root.to_str(std::cout); root.to_str(std::cout); re...
/* * * Copyright 2018 Asylo 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 agree...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright 2016-2017 Davide Faconti * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions ...
// Copyright (c) 2012-2019 The CounosH Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <coins.h> #include <consensus/consensus.h> #include <logging.h> #include <random.h> #include <version.h> bool CCoi...
// RUN: %clang_cc1 -fsyntax-only -verify %s // Various tests for -fno-exceptions typedef __SIZE_TYPE__ size_t; namespace test0 { // rdar://problem/7878149 class Foo { public: void* operator new(size_t x); private: void operator delete(void *x); }; void test() { // Under -fexceptions, this do...
//===-------- RedundantLoadElimination.cpp - SIL Load Forwarding ---------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LIC...
#define OLC_PGE_APPLICATION #include "olcPixelGameEngine.h" #include "olcPGEX_Fonts.h" class Engine : public olc::PixelGameEngine { public: olc::Font testFont = olc::Font("output.of"); Engine() {} bool OnUserCreate() { return true; } bool OnUserUpdate(float fElapsedTime) { Clear(olc::BLACK); testFont.D...
// Copyright 2019 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 "android_webview/browser/scoped_add_feature_flags.h" #include <string> #include "base/base_switches.h" #include "base/command_line.h" #include ...
#include <cstdint> #include <memory> #include <string> #include "envoy/network/transport_socket.h" #include "common/buffer/buffer_impl.h" #include "common/common/empty_string.h" #include "common/event/dispatcher_impl.h" #include "common/json/json_loader.h" #include "common/network/address_impl.h" #include "common/net...
// Copyright 2011 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 2018 the V8 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. #include "src/builtins/builtins-utils-inl.h" #include "src/counters.h" #include "src/objects/js-weak-refs-inl.h" namespace v8 { namespace internal { B...
// Copyright (c) 2009-2018 The Pyeongtaekcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/pyeongtaekcoin-config.h> #endif #include <cstring> #if HAVE_DECL_STRNLEN...
/*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, instal...
// Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <QApplication> #include "paymentserver.h" #include "guiconstants.h" #include "ui_interface.h" #include "util.h" #i...
/*! * @file Adafruit_LSM6DSOX.cpp * Adafruit LSM6DSOX 6-DoF Accelerometer and Gyroscope library * * Bryan Siepert for Adafruit Industries * BSD (see license.txt) */ #include "Arduino.h" #include <Wire.h> #include "Adafruit_LSM6DSOX.h" /*! * @brief Instantiates a new LSM6DSOX class */ Adafruit_LSM6DSO...
#pragma once #include <lightning/IClient.hpp> #include <lightning/stream/IStream.hpp> #include <gmock/gmock.h> namespace mocks { class MockClient : public lightning::IClient { public: MOCK_METHOD(lightning::stream::IStream &, getStream, (), (override)); }; }
/* * Copyright (C) 2011 Apple 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
/* * Software License Agreement (BSD License) * * Copyright (c) 2011, Southwest Research Institute * 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 co...
//================================================================================================= /*! // \file src/mathtest/dmatsmatadd/MDbMCa.cpp // \brief Source file for the MDbMCa dense matrix/sparse matrix addition math test // // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // This file ...
/* * Copyright (c) 2016 MariaDB Corporation Ab * * Use of this software is governed by the Business Source License included * in the LICENSE.TXT file and at www.mariadb.com/bsl11. * * Change Date: 2025-03-24 * * On the date above, in accordance with the Business Source License, use * of this software will be g...
/* * * Copyright 2016 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 law or agree...
#ifndef SINGLETON_BASE_H__ #define SINGLETON_BASE_H__ #include "SingletonBase.h" #include <stdlib.h> template<typename Singleton> Singleton* SingletonBase<Singleton>::s_singleton = nullptr; template<typename Singleton> void SingletonBase<Singleton>::releaseInstance() { if (s_singleton != nullptr) { d...
/* * Copyright (C) 2017-2019 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "runtime/command_stream/command_stream_receiver.h" #include "runtime/device/device.h" #include "runtime/gmm_helper/gmm.h" #include "runtime/helpers/memory_properties_flags_helpers.h" #include "runtime/helpers/properties_...
// // Copyright (c) 2008-2018 the Urho3D project. // // 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, m...
/* !@ MIT License Copyright (c) 2021 Skylicht Technology CO., 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, modify...
/* * Copyright 2009-2017 Alibaba Cloud 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...
#include <spdlog/spdlog.h> #include <spdlog/sinks/stdout_color_sinks.h> #include <string> #include <fstream> #include "logger/Logger.h" #include "parsers/BinaryParser.h" using namespace std::string_literals; static Logger logger {"main"s}; static std::optional<std::string> parseInput(std::ifstream&); int main(int ...
// This file is part of RAVL, Recognition And Vision Library // Copyright (C) 2001, University of Surrey // This code may be redistributed under the terms of the GNU Lesser // General Public License (LGPL). See the lgpl.licence file for details or // see http://www.gnu.org/copyleft/lesser.html // file-header-ends-here...
/** * Copyright (c) Glow Contributors. See CONTRIBUTORS file. * * 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 b...
//---------------------------------------------------------------------------- // // TSDuck - The MPEG Transport Stream Toolkit // Copyright (c) 2005-2020, Thierry Lelegard // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the f...
#ifndef PROTON_BINARY_HPP #define PROTON_BINARY_HPP /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under ...
/** * OpenSSL.cpp * * Implementation file for the openssl.h header file * * @copyright 2018 Copernica BV */ /** * Dependencies */ #include "openssl.h" #include "function.h" #include "amqpcpp/openssl.h" /** * The handle to access openssl (the result of dlopen("openssl.so")) * By default we set this to ...
#include <iostream> using namespace std; int main() { char inputChar; cout << "Enter a character: "; cin >> inputChar; if (inputChar >= 48 && inputChar <= 57) { cout << inputChar << " is a digit." << endl; } else if (inputChar >= 65 && inputChar <= 90) { cout << inputC...
#include <stdlib.h> #include <assert.h> #include <stdio.h> #include <iostream> #include <cstring> #include <algorithm> #include "file_map.h" #include "hash_set.h" #include "engine.h" #include "base_node.h" #include "glob_utility.h" using namespace std; #define DEP_HASH_SET_SIZE 29 #define WEAK_HASH_SET_SIZE 3 // a ...
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkBenchmark.h" #include "SkMatrix.h" #include "SkRandom.h" #include "SkString.h" class MatrixBench : public SkBenchmark { SkString fName; enum { N = 10000...
/* * Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
#include "Window.h" namespace EasyGame { DATAREAD(std::string, Title, Window) DATAREAD(GLFWwindow*, WindowProc, Window) DATAREAD(int, Width, Window) DATAREAD(int, Length, Window) DATAREAD(int, MajorVersion, Window) DATAREAD(int, MinorVersion, Window) void Window::tick(){ for (IRenderer* renderer : renderers)...
#pragma once #ifndef DISH2_INTROSPECTION_HAS_COALESCED_HPP_INCLUDE #define DISH2_INTROSPECTION_HAS_COALESCED_HPP_INCLUDE #include <algorithm> #include <iterator> #include "../cell/Cell.hpp" #include "../world/iterators/LiveCellIterator.hpp" #include "../world/ThreadWorld.hpp" #include "no_live_cells.hpp" namespace ...
/* Copyright (c) 2018 PaddlePaddle 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 agr...
// Copyright 2021 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 "ui/color/color_mixers.h" #include "ui/color/core_default_color_mixer.h" #include "ui/color/native_color_mixers.h" #include "ui/color/ui_color_m...
/* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 Tord Romstad (Glaurung author) Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad Copyright (C) 2015-2016 Marco Costalba, Joona Kiiski, Gary Linscott, Tord Romstad Stockfish is free software: you can re...
/************************************************************************************ * * D++, A Lightweight C++ library for Discord * * Copyright 2021 Craig Edwards and D++ contributors * (https://github.com/brainboxdotcc/DPP/graphs/contributors) * * Licensed under the Apache License, Version 2.0 (the "License"...
/* * Copyright (C) 2009 Google 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions ...
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
/* cppcryptfs : user-mode cryptographic virtual overlay filesystem. Copyright (C) 2016-2020 Bailey Brown (github.com/bailey27/cppcryptfs) cppcryptfs is based on the design of gocryptfs (github.com/rfjakob/gocryptfs) The MIT License (MIT) Permission is hereby granted, free of charge, to any person obtaining a copy o...
/* Pokemon Berry Select Widget * * From: https://github.com/PokemonAutomation/Arduino-Source * */ #include <QCompleter> #include "CommonFramework/Logging/LoggerQt.h" #include "Pokemon/Resources/Pokemon_BerryNames.h" #include "Pokemon/Resources/Pokemon_BerrySprites.h" #include "Pokemon_BerrySelectWidget.h" names...
// Copyright 2018 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 "third_party/blink/renderer/core/html/lazy_load_frame_observer.h" #include <algorithm> #include <memory> #include <tuple> #include "base/option...
// Copyright 2020 Google LLC // // 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.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// This program uses an array to store the hours worked by // a set of employees who all make the same hourly wage. #include<iostream> #include<iomanip> using namespace std; int main() { const int NUM_WORKERS = 5; // Set the number of employees int hours[NUM_WORKERS]; // Array to hold employee's hours ...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. // Unit tests for simple_index. #include <vespa/searchlib/predicate/simple_index.hpp> #include <vespa/vespalib/testkit/testapp.h> #include <vespa/searchlib/attribute/predicate_attribute.h> #include <v...