text
stringlengths
7
961k
/**/ #ifndef SERIALDEVICESERVICEINTERFACE_HPP #define SERIALDEVICESERVICEINTERFACE_HPP #include <rw/math/Q.hpp> #include <rw/math/Transform3D.hpp> #include <rw/math/VelocityScrew6D.hpp> #include <rw/common/Ptr.hpp> #include <caros_control_msgs/RobotState.h> #include <caros_control_msgs/SerialDeviceMoveLin.h> #include...
/****************************************************************************** * UnaryๆŒ‡ไปคInterpreter ******************************************************************************/ TZVMIndex CZVMVirtualThread::_bytePrefixInc() { static const char * __PRETTY_FUNC__ = ZLS_PRETTY_FUNCTION("CZVMVirtualThread::_bytePref...
/////////////////////////////////////////////////////////////////////////////// /// /// Author: Andrea Ellinger /// Copyright 2018, DigiPen Institute of Technology /// /////////////////////////////////////////////////////////////////////////////// #include "Precompiled.hpp" namespace Zero { //-----------------------...
// Copyright (c) 2017-2018 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "multisigdialog.h" #include "forms/ui_multisigdialog.h" #include "askpassphrasedialog.h" #include "primitives/transacti...
/*========================================================================= Program: Visualization Toolkit Module: vtkVolumeMapper.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software ...
//===--- Targets.cpp - Implement -arch option and targets -----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
class Solution { public: int sumNums(int n) { return ((n + 1) * n)/2; } };
/* * Copyright (c) 2017-2018, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, p...
// lordApp.cpp // client file for apart program #include "landlord.h" int main() { userInterface theUserInterface; theUserInterface.interact(); return 0; } ////////////////////////end file lordApp.cpp////////////////////
#include <Athena-Graphics/Debug/PointLight.h> #include <Athena-Graphics/Scripting.h> #include <Athena-Scripting/Utils.h> #include <Athena-Scripting/ScriptingManager.h> #include <v8.h> using namespace Athena::Graphics::Debug; using namespace Athena::Entities; using namespace Athena::Scripting; using namespace v8; /**...
#include "pch.h" #include <interface/powertoy_module_interface.h> #include <common/SettingsAPI/settings_objects.h> #include "trace.h" #include "FindMyMouse.h" #include <thread> #include <common/utils/logger_helper.h> #include <common/utils/color.h> namespace { const wchar_t JSON_KEY_PROPERTIES[] = L"properties"; ...
/* $Id: flat_file_generator.cpp 632198 2021-05-27 13:43:43Z ivanov $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Government...
/* * DISTRHO Plugin Framework (DPF) * Copyright (C) 2012-2016 Filipe Coelho <falktx@falktx.com> * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this * permission notice appear in all copies. ...
/* * Simd Library (http://ermig1979.github.io/Simd). * * Copyright (c) 2011-2020 Yermalayeu Ihar. * * 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 limi...
/* * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. * Copyright (c) 2020-2021 Huawei Device Co., Ltd. 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. Redist...
#include<stdio.h> int main() { int n,i,j; printf("Enter size of square matrix\n"); scanf("%d",&n); int a[n][n],b[n][n],c[n][n]; printf("Enter a matrix\n"); for(i=0;i<n;i++) for(j=0;j<n;j++) scanf("%d",&a[i][j]); printf("Enter b matrix\n"); for(i=0;i<n;i++) for(j=0...
/***************************************************/ /** * @file OBPGetMaxPixelBinningExchange.cpp * @date October 2015 * @author Ocean Optics, Inc. * * LICENSE: * * SeaBreeze Copyright (C) 2015, Ocean Optics Inc * * Permission is hereby granted, free of charge, to any person obtaining * a copy of thi...
// Copyright (c) 2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <random.h> #include <test/test_vuicoin.h> #include <boost/test/unit_test.hpp> BOOST_FIXTURE_TEST_SUITE(random_tests, B...
// Fill out your copyright notice in the Description page of Project Settings. #include "SoundUtility.h" void USoundUtility::SetSoundClassVolume(USoundClass* soundClass, float value) { soundClass->Properties.Volume = value; }
/* Copyright 2021 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 2017 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
#include <unsupported/Eigen/MatrixFunctions> #include <iostream> using namespace Eigen; int main() { MatrixXf A = MatrixXf::Random(3,3); std::cout << "A = \n" << A << "\n\n"; MatrixXf sinhA = A.sinh(); std::cout << "sinh(A) = \n" << sinhA << "\n\n"; MatrixXf coshA = A.cosh(); std::cout << "cosh(A) = \n"...
// Copyright 2010-2021, 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: // // * Redistributions of source code must retain the above copyright // notice, this list of condit...
/* _ _ * | | (_) * | | __ _ _ _ _ * | | / _` || | | || | * | || (_| || |_| || | * |_| \__, | \__,_||_| * __/ | * |___/ * * Copyright (c) 2015-22 frank256 * * License (BSD): * * Redistribution and use in source and binary forms, with or without modification, * ar...
#include "cumulativeR.h" using namespace std; using namespace Rcpp ; #include <algorithm> // std::sort CumulativeR::CumulativeR(void) { distribution dist; } Eigen::VectorXd CumulativeR::inverse_logistic(const Eigen::VectorXd& eta) const { Eigen::VectorXd ordered_pi( eta.size() ); ordered_pi[0] = cdf_logit( ...
// Copyright (c) 2021 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...
/** * @author Alberto DEMICHELIS * @author Edouard DUPIN * @copyright 2018, Edouard DUPIN, all right reserved * @copyright 2003-2017, Alberto DEMICHELIS, all right reserved * @license MPL-2 (see license file) */ #pragma once #include <etk/types.hpp> #include <rabbit/ObjectType.hpp> #include <rabbit/ObjectValue.h...
//*************************************************************************** //* Copyright (c) 2015 Saint Petersburg State University //* Copyright (c) 2011-2014 Saint Petersburg Academic University //* All Rights Reserved //* See file LICENSE for details. //************************************************************...
// Copyright (c) 2012 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 "net/quic/core/crypto/quic_decrypter.h" #include "crypto/hkdf.h" #include "net/quic/core/crypto/aes_128_gcm_12_decrypter.h" #include "net/qu...
๏ปฟ/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- Copyright (c) 2006-2016, assimp team All rights reserved. Redistribution and use of this software in source and binary forms, ...
/* * 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...
๏ปฟ//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2018 Ryo Suzuki // Copyright (c) 2016-2018 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # pragma once # include <Siv3D/Platform.hpp> #...
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode* swapPairs(ListNode* head) { if(!head||!head->next) return head; ListNode *p1=head,*p2=head->next; ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. //in header only mode, control library is not available #ifndef AIRLIB_HEADER_ONLY //RPC code requires C++14. If build system like Unreal doesn't support it then use compiled binaries #ifndef AIRLIB_NO_RPC //if using Unreal...
#ifndef CENTURION_WINDOW_EVENT_ID_HEADER #define CENTURION_WINDOW_EVENT_ID_HEADER #include <SDL.h> #include <ostream> // ostream #include <string_view> // string_view #include "../core/exception.hpp" namespace cen { /// \addtogroup event /// \{ /** * \enum window_event_id * * \brief Represents different ...
/*************************************************** * Problem name : 924 - Spreading The News.cpp * OJ : Uva * Result : Accepted * Date : 17-03-17 * Problem Type : Graph * Author Name : Saikat Sharma * University : CSE, MBSTU ***************************************************/ #incl...
#pragma ident "$Id$" /** * @file EpochDataStore.hpp * Class to handle interpolatable time serial data */ #ifndef GPSTK_EPOCHDATASTORE_HPP #define GPSTK_EPOCHDATASTORE_HPP //============================================================================ // // This file is part of GPSTk, the GPS Toolkit. // // The GP...
/****************************************************************************** * Qwt Widget Library * Copyright (C) 1997 Josef Wilgen * Copyright (C) 2002 Uwe Rathmann * * This library is free software; you can redistribute it and/or * modify it under the terms of the Qwt License, Version 1.0 **************...
// 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 <string> #include "base/callback_helpers.h" #include "base/strings/string_piece.h" #include "base/strings/string_util.h" #include "base/test/bin...
// Copyright (c) 2010 Satoshi Nakamoto // 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 "init.h" #include "util.h" #include "sync.h" #include "ui_interface.h" #includ...
#include "AppHdr.h" #include "status.h" #include "areas.h" #include "branch.h" #include "cloud.h" #include "duration-type.h" #include "env.h" #include "evoke.h" #include "god-abil.h" #include "god-passive.h" #include "item-prop.h" #include "level-state-type.h" #include "mon-transit.h" // untag_followers() in duration...
/* * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) a...
#include <stdio.h> #include <conio.h> int main() { float galon, ortalama, toplam_ortalama, toplam_galon, yol1; int yol; printf("Kac galon benzin harcandi (Cikis icin -1) : "); scanf("%f", &galon); toplam_galon = 0; yol1 = 0; while( galon !=-1) { printf("\nKac kilometre yol alindi: "); scanf("%d", ...
#include "game.hpp" #include <cmath> std::unique_ptr<Game> buildGame(unsigned int randomSeed) { return std::unique_ptr<Game>(new ConcreteGame(randomSeed)); } namespace game_config { static const Pos3d DIMENSIONS { 5, 4, 14 }; static const int DROP_SCORE_MULTIPLIER = 1; static const int REMOVAL_SCORE_M...
// NOLINT(legal/copyright) // SYMBOL "interpn" template<typename T1> void casadi_interpn(T1* res, casadi_int ndim, const T1* grid, const casadi_int* offset, const T1* values, const T1* x, const casadi_int* lookup_mode, casadi_int m, casadi_int* iw, T1* w) { // NOLINT(whitespace/line_length) // Work vectors T1* alph...
/* mbed Microcontroller Library * Copyright (c) 2015-2016 Nuvoton * * 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 requir...
#include <DataStreams/ExpressionBlockInputStream.h> #include <DataStreams/CheckConstraintsBlockOutputStream.h> #include <Parsers/formatAST.h> #include <Columns/ColumnsCommon.h> #include <Columns/ColumnsNumber.h> #include <Common/assert_cast.h> #include <Common/quoteString.h> #include <Common/FieldVisitors.h> namespac...
/* * S2E Selective Symbolic Execution Platform * * Copyright (c) 2014, Dependable Systems Laboratory, EPFL * 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...
#include <iostream> #include <anet/anet.h> #include <signal.h> #include <sys/wait.h> using namespace std; using namespace anet; DefaultPacketFactory factory; DefaultPacketStreamer streamer(&factory); const char *spec = "tcp:127.0.0.1:8912"; class EchoServer : public IServerAdapter { public: void start() { ...
๏ปฟ/******************************************************************* Author: David Ge (dge893@gmail.com, aka Wei Ge) Last modified: 11/21/2020 Allrights reserved by David Ge base class for time advancement estimation module ********************************************************************/ #include "TimeTssBase.h"...
#ifndef DMSG_H #define DMSG_H #include "dagger/utility/DUtility.hpp" namespace Dagger { class DConnect; class DMsgHandlerBase; class DMsg { public: virtual void Encode(DStream *out) = 0; virtual void Decode(DStream *in) = 0; virtual void Visit(DConnect *com, DMsgHandlerBase *handler); }; } #endif /...
#include "addresstest.h" #include "alias/number.h" using alias::Binary; using alias::Decimal; using alias::Hexadecimal; using brainfuck::memory::address::Address; using brainfuck::memory::address::AddressTest; using brainfuck::memory::address::Position; using brainfuck::memory::address::Value; AddressTest::AddressTe...
#include <iostream> #include "volumeinfo.h" #include "rawvolumedataio.h" #include "volumesegmenter.h" #include "display3droutines.h" #include "histogramfilter.h" #include "marchingcubes.h" #include "dualmarchingcubes.h" #include "stdio.h" #include <dmc/dmc.hpp> #include <fstream> #include "meshviewer.h" #include "volum...
// Copyright (c) 2009-2014 The Bitcoin 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/weycash-config.h" #endif #include <cstddef> #if defined(HAVE_SYS_SELECT_H) #inc...
#include "CompilerART.h" #include "Tile.h" #include "utility.h" #include <math.h> #include "types.h" #include <assert.h> #include "cpptoml.h" void CompilerART::configureSignals(Tile* current_tile, DNNLayer* dnn_layer, unsigned int num_ms, unsigned int n_folding) { assert(ispowerof2(num_ms)); assert(current_til...
#include "StorageMaterializedPostgreSQL.h" #if USE_LIBPQXX #include <base/logger_useful.h> #include <Common/Macros.h> #include <Common/parseAddress.h> #include <Common/assert_cast.h> #include <Core/Settings.h> #include <DataTypes/DataTypeString.h> #include <DataTypes/DataTypeNullable.h> #include <DataTypes/DataTypeArr...
#include "WeightRoomSelectorLibrary.h" class URoomGenerator; void UWeightRoomSelectorLibrary::SetupWeightedRoomSelector(FWeightedRoomSelector& Target, TArray<URoomGenerator*>& Rooms) { } URoomGenerator* UWeightRoomSelectorLibrary::SelectRandomRoom(FWeightedRoomSelector& Target, FRandomStream& RandomStream) { ret...
/* * Copyright 2019 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
// Copyright 2019 Microsoft. 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 ...
#include "glad/glad.h" #include "GLFW/glfw3.h" #include "test/Camera.h" #include <iostream> #include "Shader.hpp" #include "Model.hpp" void framebuffer_size_callback(GLFWwindow* window, int width, int height); void processInput(GLFWwindow *window); void mouse_callback(GLFWwindow *window, double xpos, double ypos); cons...
// -*- C++ -*- // Copyright (C) 2005-2016 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the terms // of the GNU General Public License as published by the Free Software // Foundation; either version 3...
//////////////////////////////////////////////////////////////// // Common includes for OVR code, mostly copied from samples // // Written by Bastiaan "Mux213" Olij and Paritosh Sharma, // with loads of help from Thomas "Karroffel" Herzog #include "common.h" #include <vector> namespace ovrmobile { void godot_transfo...
/**************************************************************************** ** Meta object code from reading C++ file 'macdockiconhandler.h' ** ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "qt/macdockiconhandler.h" ...
#include <okiidoku/morph/canon.hpp> #include <okiidoku/morph/scramble.hpp> #include <okiidoku/db/serdes.hpp> #include <okiidoku/fmt/print_2d.hpp> #include <okiidoku/gen.hpp> #include <okiidoku/grid.hpp> #include <okiidoku/shared_rng.hpp> #include <okiidoku_cli_utils/console_setup.hpp> #include <iostream> // cout, #i...
// Copyright (c) 2012-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "util.h" #include "test/test_brofist.h" #include <string> #include <vector> #include <boost/algorithm/string.hpp> ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2013 The NovaCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "txdb.h" #include "miner.h"...
#include <string> using namespace std; class Solution { // Runtime: 0 ms (100.00 %), Memory: 5.9 MB (76.18 %). public: int reverse(int x) { if (!x) return 0; int ans = 0; int pCheck = x > 0 ? 1 : -1; x = abs(x); while (!!x) { if (abs(a...
#include "logdialog.h" #include <QtWidgets> #include "utils.h" #include "logger.h" #include <sstream> LogDialog::LogDialog(std::shared_ptr<Logger> logger) : logger(std::move(logger)) { setWindowTitle("SpaceDisplay Log"); setMinimumSize(500, 350); setFocusPolicy(Qt::ClickFocus); textEdit = std::make...
#include "sqlite.h" Sqlite::Sqlite() { } /*่ฟžๆŽฅๆ•ฐๆฎๅบ“*/ bool Sqlite::Connect() { db = QSqlDatabase::addDatabase("QSQLITE"); db.setDatabaseName(DATABASE); if(!db.open()) return false; QSqlQuery query; query.exec("create table user_15693 (cardID vchar, name vchar, gender vchar, age int, primary key (cardI...
/**************************************************************************************** * @author: kzvd4729 created: Mar/13/2018 11:59 * solution_verdict: Wrong answer on test 1 language: GNU C++14 * run...
/****************************************************************************** MIT License Copyright (c) 2019 Cyrille Gaillardet 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 restricti...
#include <limits.h> #include <exception> #include <stdexcept> #include <iostream> #include "ClosedHashTable.hh" #define AVAIL INT_MAX #define R 5 bool is_prime(int); const std::string ErrNotFound = "Not found."; const std::string ErrAlreadyExists = "Already exists."; const std::string ErrInsertFailed = "Insert fail...
// // Copyright ยฉ 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #include "JsonPrinter.hpp" #include <iomanip> #include <iostream> #include <sstream> namespace armnn { void JsonPrinter::PrintJsonChildObject(const JsonChildObject& object, size_t& id) { if (object.GetType() == JsonObjectTyp...
//===-- HexagonISelLowering.cpp - Hexagon DAG Lowering Implementation -----===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
#include "Panel.h" Panel::Panel() { } Panel::Panel(const char * _name) { PanelName = _name; } Panel::Panel(int h, int w, int x, int y) { height = h; width = w; pos_x = x; pos_y = y; } Panel::~Panel() { } void Panel::Draw() { }
#include <bits/stdc++.h> //#include <ext/pb_ds/tree_policy.hpp> //#include <ext/pb_ds/assoc_container.hpp> #define ll long long int #define ull unsigned long long int #define ld long double #define fi first #define se second #define pb ...
// 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 requir...
//===----------------------------------------------------------------------===// // // Peloton // // code_context.cpp // // Identification: src/codegen/code_context.cpp // // Copyright (c) 2015-2017, Carnegie Mellon University Database Group // //===----------------------------------------------...
#include <iostream> #include "vector.hpp" #include "rational.hpp" using namespace std; #ifndef MATRIX #define MATRIX class Matrix { int N, M; Vector* data; void clearData(); void copyData(const Matrix& m); public: Matrix(Rational* data = NULL, int N = 0, int M = 0); Matrix(const Matrix& m); ...
// This file is distributed under the BSD 3-Clause License. See LICENSE for details. #include "lgraph_base_core.hpp" #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "graph_library.hpp" #include "lgedgeiter.hpp" #include "tech_library.hpp" static_assert(sizeof(Hierarchy_data) == 8); static...
#include "p2Defs.h" #include "p2Log.h" #include "j1App.h" #include "j1Audio.h" #include "SDL/include/SDL.h" #include "SDL_mixer\include\SDL_mixer.h" #pragma comment( lib, "SDL_mixer/libx86/SDL2_mixer.lib" ) j1Audio::j1Audio() : j1Module() { music = NULL; name = "audio"; } // Destructor j1Audio::~j1Audio() {} // C...
// Copyright (c) 2012 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. // MediaFileSystemRegistry unit tests. #include <algorithm> #include <set> #include "base/bind_helpers.h" #include "base/command_line.h" #include "b...
#include <glm/glm.hpp> #include <cstdio> #include <cstdlib> // To define "exit", req'd by XLC. #include <ctime> #define LE 1 // 1 for little-endian, 0 for big-endian. int pop(unsigned x) { x = x - ((x >> 1) & 0x55555555); x = (x & 0x33333333) + ((x >> 2) & 0x33333333); x = (x + (x >> 4)) & 0x0...
//----------------------------------*-C++-*----------------------------------// /*! * \file c4/C4_MPI_gather_scatter_pt.cc * \author Thomas M. Evans * \date Mon Mar 25 14:44:54 2002 * \brief C4 MPI non-blocking send/recv instantiations. * \note Copyright (C) 2016-2019 Triad National Security, LLC. * ...
/* Run Class * * */ #include "Arduino.h" #include "Running.h" #include "Configuration.h" Running::Running(){ // initial values lastCommandR = 0; lastCommandL = 0; hornStart = 0; // booleans for relays hornState = false; lightState = false; strobeState = false; hitchState...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2020 The Bitcoin 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/bitcoin-config.h> #endif #include <i...
#include <algorithm> #include <cstdio> #include <cstring> const int N = 2e5 + 52; int n, a[N]; int main() { for (scanf("%*d"); ~scanf("%d", &n);) { for (int i = 1; i <= n; i++) scanf("%d", a + i); int h = 1, last = 1, cur = 0, cnt = 0; a[1] = 1e9; for (int i = 2; i <= n; i++) { if (a[i - 1] > a[i]) { ...
/* Copyright (c) 2010-2011, Intel Corporation All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of co...
#include "reporter/ih/rp_accessor_impl.hpp" #include "reporter/impl/rp_factpory_impl.hpp" #include "exception/ih/exc_internal_error.hpp" //------------------------------------------------------------------------------ namespace reporter { //---------------------------------------------------------------------------...
// Copyright (c) 2011-2015 The Bitcoin Core developers // Copyright (c) 2015-2017 The Bitcoin Unlimited developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "chainparams.h" #include "coins.h" #include "consensus/c...
// Generated by the gRPC C++ plugin. // If you make any local change, they will be lost. // source: oracles/v1/oracle_spec.proto #include "oracles/v1/oracle_spec.pb.h" #include "oracles/v1/oracle_spec.grpc.pb.h" #include <functional> #include <grpcpp/impl/codegen/async_stream.h> #include <grpcpp/impl/codegen/async_un...
/* This is the core graphics library for all our displays, providing a common set of graphics primitives (points, lines, circles, etc.). It needs to be paired with a hardware-specific library for each display device we carry (to handle the lower-level functions). Adafruit invests time and resources providing this ope...
/* * Copyright (C) 2007 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 ...
/* * Copyright (c) The Shogun Machine Learning Toolbox * Written (w) 2014 pl8787 * 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 copyrig...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Including type: System.Enum #include ...
/* Copyright 2016 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...
#include "pch.h" #include "EntityManager.h" std::vector<std::shared_ptr<Entity>> EntityManager::m_Entities; EntityManager::EntityManager() { } EntityManager::~EntityManager() { } std::shared_ptr<Entity> EntityManager::GetPlayer() { for (std::shared_ptr<Entity> entity : EntityManager::m_Entities) { if (entity->...
#include "PID.h" #include <algorithm> #include <iostream> #include <math.h> PID::PID() {} PID::~PID() {} void PID::init(double Kp, double Ki, double Kd) { // Initializing pretty much everything total_error = 0.0; // Error terms p_error = i_error = d_error = 0.0; // The coefficients this->Kp = Kp; ...
#include "BRDFMapCapture.h" BRDFMapCapture::BRDFMapCapture() :Material ( "Shaders/captureBRDFSpecularMap_vert.glsl", "Shaders/captureBRDFSpecularMap_frag.glsl", {}, false ) { }