text
stringlengths
7
961k
// Copyright (c) 2011-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 "robbieconunits.h" #include "primitives/transaction.h" #include <QStringList> RobbieconUnits::RobbieconUnits(QObj...
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2019 Ben Vanik. All rights reserved. ...
// Copyright (C) 2007 Peter Carbonetto. All Rights Reserved. // This code is published under the Eclipse Public License. // // Author: Peter Carbonetto // Dept. of Computer Science // University of British Columbia // May 19, 2007 #include "matlabmatrix.h" #include "matlabexception.h" // Funct...
// Copyright (c) 2011-2016 The Sikacoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "receivecoinsdialog.h" #include "ui_receivecoinsdialog.h" #include "addressbookpage.h" #include "addresstablemodel...
/* * 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 Software Foundation. Oracle designates this * particular file as subject to th...
/* * Copyright (c) 2008-2018, Hazelcast, 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 ...
// //clearInputStream(readStringAfterInteger).cpp // //program to show how to clear clear input stream in c++ // //ref : https://gist.github.com/jpkrause/4a1aa400d45197ca3253 #include<iostream> #include<limits> using namespace std; int main() { int num; string str; cout << "Enter integer value : "; ci...
/*************************************************************************/ /* */ /* Centre for Speech Technology Research */ /* University of Edinburgh, UK */ /* ...
// Copyright (c) 2017-2019 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 <key_io.h> #include <util/bip32.h> #include <util/strencodings.h> #include <wallet/wallet.h> #include <boost/test/u...
#include "highlightresult.h" #include "log.h" BOOL FillAlphaRect(HDC hdc, const RECT* lpcrect, HBRUSH brush, BYTE alpha) { SIZE_T bmWidth = lpcrect->right - lpcrect->left; SIZE_T bmHeight = lpcrect->bottom - lpcrect->top; SIZE_T byteCount = bmWidth * bmHeight * 4; BITMAPINFO bmi; void* pvBits; ...
#ifndef _BLASR_SCORE_MATRICES_HPP_ #define _BLASR_SCORE_MATRICES_HPP_ extern int QVDistanceMatrix[5][5]; extern int EditDistanceMatrix[5][5]; extern int SMRTDistanceMatrix[5][5]; extern int SMRTLogProbMatrix[5][5]; extern int LowMutationMatrix[5][5]; extern int LocalAlignLowMutationMatrix[5][5]; extern int Cross...
#pragma once #define PI 3.14159265
/* noniso.cpp - replacements for non-ISO functions used by Arduino core Copyright © 2016 Ivan Grokhotkov 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...
bool knightsAndKnaves(std::vector<int> answers) { int n = answers.size(); std::vector<bool> isKnight(n); isKnight[0] = true; for (int i = 1; i < n; i++) { isKnight[i] = answers[0] >> i & 1; } for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { if ( (isKnight[i] == isKnight[j...
/************************************************************************* * Copyright (c) 2017-2019 by the mfmg authors * * All rights reserved. * * * * This file is part...
/**************************************************** Author: ciaoSora File: shapes.cpp Desc: Basic shapes in SVG ****************************************************/ #include "shapes.h" Shape::Shape(const std::string stroke_, float strokeWidth_) { stroke = stroke_; strokeWidth = strokeWidth_; } Rectangle::Rectan...
#include "pch.h" #include "SetZoom.h" //--------------------------------------------------------------------- LPCSTR track_name[] = { "Zoom1", "Zoom2", "Zoom3", "Zoom4", "Zoom5", "Zoom6", }; int track_def[] = { 15, 15, 15, 15, 15, 15 }; int track_min[] = { 0, 0, 0, 0, 0, 0 }; int track_max[] = { 26, 26, ...
/* *********************************************************************************************************************** * * Copyright (c) 2018-2019 Advanced Micro Devices, Inc. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associ...
#include <catch.hpp> #include <mw/mmr/MMR.h> #include <mw/mmr/backends/VectorBackend.h> using namespace mmr; TEST_CASE("mmr::MMR") { auto pBackend = std::make_shared<VectorBackend>(); MMR mmr(pBackend); std::vector<uint8_t> leaf0({ 0, 1, 2 }); std::vector<uint8_t> leaf1({ 1, 2, 3 }); std::vector...
#include <bits/stdc++.h> using namespace std; #define pb push_back #define all(x) (x).begin(), (x).end() #define um unordered_map #define pq priority_queue #define sz(x) ((int)(x).size()) #define x first #define y second typedef vector<int> vi; typedef long long ll; typedef unsigned long long ull; typedef pair<int, int...
/* * Copyright (c) 2020, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS...
#pragma once #include "stdafx.h" #include "MyoConnection.h" MyoConnection::MyoConnection() : onArm(false), currentPose() { isActive = false; } // onUnpair() is called whenever the Myo is disconnected from Myo Connect by the user. void MyoConnection::onUnpair(myo::Myo* myo, uint64_t timestamp) { onArm = fa...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "pch.h" #include "AnimationDriver.h" namespace react { namespace uwp { AnimationDriver::AnimationDriver( int64_t id, int64_t animatedValueTag, const Callback &endCallback, const folly::dynamic &c...
// // execution/context.hpp // ~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under 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) // #ifndef ASIO_EXECUTION_CO...
// Copyright (C) 2011-2012, Zeex // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
#include <eepp/ui/css/stylesheetselectorparser.hpp> namespace EE { namespace UI { namespace CSS { StyleSheetSelectorParser::StyleSheetSelectorParser() {} StyleSheetSelectorParser::StyleSheetSelectorParser( std::string name ) { std::vector<std::string> sels = String::split( name, ',' ); for ( auto it = sels.begin(...
#include <string> #include <cassert> using namespace std; int main(){ string S = string("Testing"); string T = string(); T = "Testing again"; assert(T != S); }
#ifndef BOOST_MPL_AUX_CONFIG_BIND_HPP_INCLUDED #define BOOST_MPL_AUX_CONFIG_BIND_HPP_INCLUDED // Copyright David Abrahams 2002 // Copyright Aleksey Gurtovoy 2002-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_...
//Repeat Exercise P3.27, modifying the program so that it prompts for the frequency //instead. #include<iostream> using namespace std; int main() { const double RADIO_WAVES = 3E-9; const double MICRO_WAVES = 3E-11; const double INFRARED = 4E-14; const double VISIBLE_LIGHT = 7.5E-14; const double ...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
#include "pch-cpp.hpp" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <limits> #include <stdint.h> // System.Char[] struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34; // System.Type[] struct TypeU5BU5D_t85B10489E46F06CEC7C4B1CCBD0E01FAB6649755; // UnityEngine.Scripting...
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "/debug.h" #else #define db(...) #endif #define all(v) v.begin(), v.end() #define pb push_back using ll = long long; const int NAX = 1e6 + 5, MOD = 1000000007; ll euclid(ll a, ll b, ll &x, ll &y) { if (b) { ll d = euclid(b, a % b, y,...
// Copyright (c) 2012-2014 The Bitcoin developers // Copyright (c) 2015-2020 The PIVX developers // Copyright (c) 2021- The ORO 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/c...
/** * WiFiManager.cpp * * WiFiManager, a library for the ESP8266/Arduino platform * for configuration of WiFi credentials using a Captive Portal * * @author Creator tzapu * @author tablatronix * @version 0.0.0 * @license MIT */ #include "WiFiManager.h" #if defined(ESP8266) || defined(ESP32) #ifdef ESP32 ...
// dear imgui: Renderer for modern OpenGL with shaders / programmatic pipeline // - Desktop GL: 3.x 4.x // - Embedded GL: ES 2.0 (WebGL 1.0), ES 3.0 (WebGL 2.0) // This needs to be used along with a Platform Binding (e.g. GLFW, SDL, Win32, custom..) // Implemented features: // [X] Renderer: User texture binding. Use ...
/*++ Copyright (c) 1998 Microsoft Corporation Module Name: atqbmon.cxx Abstract: ATQ Backlog Monitor Author: 01-Dec-1998 MCourage Revision History: --*/ #include "isatq.hxx" #include "atqbmon.hxx" ATQ_BACKLOG_MONITOR * g_pAtqBacklogMonitor = NULL; ATQ_BACKLOG_MONITOR::ATQ_BACKLOG_MONITOR( ...
#include "bbbpch.h" #include "RenderCommand.h" namespace BlackBirdBox { Scope<RendererAPI> RenderCommand::s_RendererAPI = RendererAPI::Create(); }
/* * (c) Copyright 2019-2021 Xilinx, 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 ...
// 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: BeatmapObjectExecutio...
#pragma once #include "Plugin.hpp" #include "Services/Events/Events.hpp" #include "API/Types.hpp" #include "API/CNWSObject.hpp" using ArgumentStack = NWNXLib::Services::Events::ArgumentStack; namespace Object { class Object : public NWNXLib::Plugin { public: Object(const Plugin::CreateParams& params); virtu...
/* The smooth Class Library * Copyright (C) 1998-2019 Robert Kausch <robert.kausch@gmx.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of "The Artistic License, Version 2.0". * * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR * IMPLIED WARRAN...
// Copyright 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 "sync/sessions/sync_session.h" #include "base/compiler_specific.h" #include "base/location.h" #include "base/memory/ref_counted.h" #include "bas...
#include <iostream> #include <fstream> #include <vector> #pragma region "memcheck_crt.h" #ifndef MEMCHECK_CRT_ #define MEMCHECK_CRT_ #if defined(_MSC_VER) && !defined(__INTEL_COMPILER) && defined(_DEBUG) #define _CRTDBG_MAP_ALLOC #include <stdlib.h> #include <crtdbg.h> #define ENABLE_CRT\ _CrtSetDbgFlag(_CRTDBG_...
// Copyright (c) 2014-2017 The Gama Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "governance.h" #include "governance-object.h" #include "governance-vote.h" #include "governance-classes.h" #include...
/* Copyright (c) 2005-2021, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in source and binary forms...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2015, John Haddon. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributio...
/* ************************************************************************ * Copyright 2018 Advanced Micro Devices, Inc. * ************************************************************************ */ #include "rocblas_test.hpp" #include "rocblas_math.hpp" #include "rocblas_random.hpp" #include "rocblas_vector.hpp" #...
/** Software License Agreement (BSD) \file camera.cpp \authors Michael Hosmar <mhosmar@clearpathrobotics.com> \copyright Copyright (c) 2018, Clearpath Robotics, Inc., All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following ...
// Fill out your copyright notice in the Description page of Project Settings. #include "Countdown.h" #include "Components/TextRenderComponent.h" // Sets default values ACountdown::ACountdown() { // Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it. Prim...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <sodium.h> #include <thread> #include <unordered_set> #include <openr/common/Util.h> #include <fbzmq/zmq/Zmq.h> #include...
#pragma once #ifndef OPENGM_PARTITION_HXX #define OPENGM_PARTITION_HXX #include <vector> #include <map> namespace opengm { /// Disjoint set data structure with path compression. /// \ingroup datastructures template<class T = size_t> class Partition { public: typedef T value_type; Partition(); Partition(con...
#ifndef LIBS_UFILE_WT_UFILE_HPP #define LIBS_UFILE_WT_UFILE_HPP #include <unicode/ustdio.h> namespace wt { class UFile { public: UFile(const char* path, const char* mode); ~UFile(); UFile(const UFile&) = delete; UFile(UFile&&) = delete; UFile& operator=(const UFile&) ...
/* <one line to give the program's name and a brief idea of what it does.> Copyright (C) 2011 Rafał Lalik <rafal.lalik@ph.tum.de> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3...
#include <iostream> #include "Quiz.h" using namespace std; int main() { cout << "2Hello, World!" << std::endl; Quiz quiz = Quiz(); return 0; }
/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2015 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as p...
#include <algorithm> #include <memory> #include <vector> using namespace std; template <typename RandomIt> void MergeSort(RandomIt range_begin, RandomIt range_end) { // 1. Если диапазон содержит меньше 2 элементов, выходим из функции const int range_length = range_end - range_begin; if (range_length < 2) { ...
#include "ObjectRenderer.h" #include "Graphics/VertexArray.h" #include "Utils/ResourceManager.h" ObjectRenderer::ObjectRenderer() : m_quadBufferSize(0), m_cubeBufferSize(0) { this->InitQuadObject(); this->InitCubeObject(); } ObjectRenderer::~ObjectRenderer() {} void ObjectRenderer::InitQuadObject() { float verte...
#include <cuda_runtime_api.h> // cudaMalloc, cudaMemcpy, etc. #include <cusparseLt.h> // cusparseLt header #include <cstdio> // printf #include <cstdlib> // std::rand #include <iostream> #define CHECK_CUDA(func) \ { ...
#include <assert.h> #include <algorithm> #include <iomanip> #include <iostream> #include <map> #include <string> #include "ftpServer.hpp" #include "infoLog.hpp" #ifdef NXDK #include <hal/xbox.h> #include <lwip/arch.h> #include <lwip/debug.h> #include <lwip/dhcp.h> #include <lwip/errno.h> #include <lwip/init.h> #includ...
#include "ReedOrgan_samples.h" static const PROGMEM uint32_t sample_0_ReedOrgan_R_ORG53[256] = { 0x17db0000,0x4d9632ce,0x76f065a9,0x72937bd1,0x448b5e44,0x12bb2990,0x0ab906cc,0x31911bf5, 0x48664283,0x28d43fdf,0xe4e30757,0xc4bdcd6a,0xc97ac52a,0xdbf7cffe,0x0ba3f15f,0x2a3b1fa8, 0x24f42c0c,0xfd9915dd,0xc3b2ded5,0xbc2bb6ee,...
/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors ...
#include <hyperhdrbase/ImageToLedsMap.h> #include <hyperhdrbase/ImageProcessor.h> #define push_back_index(list, index) list.push_back((index) * 3) using namespace hyperhdr; ImageToLedsMap::ImageToLedsMap( Logger* _log, int mappingType, bool sparseProcessing, unsigned width, unsigned height, unsigned hori...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "interpreter.h" #include "primitives/transaction.h" #include "crypto/ripemd1...
#include <iostream> #include <cstdio> #include <cstring> #include <algorithm> #include <queue> using namespace std; int n,m,ans; char vis[8][8][8][8][8][8][8][8]; int dx[]= {-1,1,0,0}; int dy[]= {0,0,-1,1}; bool mp[8][8]; // 用来判断每一时刻棋盘上某一位置有无棋子 struct Node { int x,y; } p1[4],p2[4]; struct node { int step; Node pp[4]; ...
//********************************** // OpenGL Samples Pack // ogl-samples.g-truc.net //********************************** // OpenGL Image Store // 21/11/2011 - 21/11/2011 //********************************** // Christophe Riccio // ogl-samples@g-truc.net //********************************** // G-Truc Creation // www....
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: UnityEngine.MonoBehaviour #include ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2016-2017 The PIVX developers // Copyright (c) 2018-2019 The Dilithium Core developers // Copyright (c) 2019 The Kahsh Core developers // Distributed under the MIT software license, see the accompanying // fi...
// Copyright 2018 Google LLC // Copyright 2018-present Open Networking Foundation // SPDX-License-Identifier: Apache-2.0 #include <google/protobuf/text_format.h> #include <tuple> #include "gtest/gtest.h" #include "stratum/glue/status/status_test_util.h" #include "stratum/hal/lib/common/openconfig_converter.h" #inclu...
// -------------------------------------------------------------------------------- // MIT License // // Copyright (c) 2018 Jens Kallup // // 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 w...
// 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 "chrome/browser/touch_to_fill/touch_to_fill_controller.h" #include <utility> #include "base/callback_helpers.h" #include "base/check.h" #includ...
/* * 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 applica...
/* * Copyright (c) The Shogun Machine Learning Toolbox * Written (W) 2012 - 2013 Heiko Strathmann * Written (w) 2014 - 2017 Soumyajit De * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * ...
// Copyright (c) 2011-2018 The Bitcoin Core developers // Copyright (c) 2017-2020 The Qtum Core developers // Copyright (c) 2020 The BITCOIN2Core 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...
/* Copyright (c) 2016 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. Indicesou may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable ...
// Copyright (c) 2015-2020 Hartmut Kaiser // // SPDX-License-Identifier: BSL-1.0 // Distributed under 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 <pika/init.hpp> #include <pika/parallel/algorithms/set_union.hpp> #inclu...
// Copyright (c) Microsoft Corporation // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "pch.h" #include "UnitTestIncludes.h" #include "xsapi-c/social_manager_c.h" #include "xsapi-cpp/social_manager.h" #include "social_manager_internal.h" using namespace x...
#include "software/multithreading/observer.hpp" #include <gtest/gtest.h> #include <thread> class TestObserver : public Observer<int> { public: std::optional<int> getMostRecentValueFromBufferWrapper() { return popMostRecentlyReceivedValue(Duration::fromSeconds(5)); } }; namespace TestUtil { ...
/*========================================================================= Program: Visualization Toolkit 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 is distributed WITHOUT ANY WARRAN...
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2017 Intel Corporation. All Rights Reserved. #ifdef _MSC_VER #ifndef NOMINMAX #define NOMINMAX #endif #endif #include <thread> #include <algorithm> #include <regex> #include <cmath> #include <opengl3.h> #include <librealsense2/rs_advanced_m...
/* * 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 the Apache License, Version 2.0 (the * "License"); you ...
/* * Copyright 2017 MapD Technologies, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
// Copyright John Maddock 2011. // 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 "pch.hpp" #ifndef BOOST_BUILD_PCH_ENABLED #define BOOST_MATH_OVERFLOW_ERROR_POLICY ign...
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
# /* ************************************************************************** # * * # * (C) Copyright Paul Mensonides 2002. # * Distributed under the Boost Software License, Version 1.0. (See # * accompanying file LICENSE_1_0.txt...
#pragma once // error_gamma.hpp: error and gamma functions for cfloats // // Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. namespace sw { namespace universal { // Compute the error function erf(x) =...
#include <vector> #include "caffe/layers/lrn_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> void LRNLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { size_ = this->layer_param_.lrn_param().local_size(); CHECK_EQ(...
#include "j1Window.h" #include "j1Render.h" #include "Zoom.h" #include "j1App.h" #include "p2Log.h" #include "j1Scene.h" #include "j1Scene2.h" Zoom::Zoom(iPoint mouse_position, bool repeat, float zoom, float time) : j1Transitions(time) { this->repeat = repeat; this->zoom = zoom; uint w, h; App->win->GetWindowSi...
#include<bits/stdc++.h> using namespace std; const int mymod=1e9+7; #define cpoint 2002 typedef long long int ll; ll two_power[cpoint]; ll ncr[cpoint][cpoint]; void calc() { two_power[0]=1; for(int i=1;i<cpoint;i++) two_power[i]=(two_power[i-1]*2)%mymod; for(int i=0;i<cpoint;i++) ncr[i][0]=1; for(i...
/* * @Date: 2021-04-29 09:30:45 * @Author: Mengsen Wang * @LastEditors: Mengsen Wang * @LastEditTime: 2021-04-29 09:33:07 * @FilePath: \algorithm\403_can_cross\can_cross.cpp * @Description: file content */ #include <cassert> #include <vector> using namespace std; bool can_cross(vector<int>& stones) { int n =...
/* Copyright 2020 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 "Camera.h" #include "ImGui/imgui.h" #include "Math.h" #include <algorithm> #include "Event.h" #include "MouseEvents.h" #include "KeyboardEvents.h" #include "InputSystem.h" #include "ConsoleClass.h" using namespace DirectX; float Camera::travelSpeed = 30.0f; Camera::Camera() noexcept { Reset(); EventDispa...
#include<windows.h> LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); HINSTANCE g_hInst; HWND hWndMain; LPCTSTR lpszClass = TEXT("Button"); int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdParam, int nCmdShow) { HWND hWnd; MSG Message; WNDCLASS WndClass; g_hInst = hInstance; W...
// // Copyright (c) 2015, Microsoft Corporation // // 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. // // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUT...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2015 Facebook, Inc. (http://www.facebook.com) | +---------...
/*++ Copyright (C) Microsoft Corporation, 1997 - 1999 Module Name: bcache.cxx Abstract: RPC's buffer cache implementation Author: Mario Goertzel [MarioGo] Revision History: MarioGo 9/7/1997 Bits 'n pieces KamenM 5/15/2001 Rewrite the ...
/// @ingroup MOD_SDLBASE /// @file SDLBase.cpp /// @brief Implementations of all methods of the SDLBase class /// @author Matheus Pimenta #include "../include/SDLBase.hpp" SDL_Surface* SDLBase::screen_ = NULL; void SDLBase::initSDL ( const int& w, const int& h, const int& bpp, const char* title, const char* icon ...
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "txOutputFormat.h" #inclu...
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. // // The following ...
/*************************************************************************** * * vector.cc - Non-inline definitions for the Standard Library vector class * * $Id: vector.cc 192958 2015-05-05 12:59:46Z petpav01 $ * *************************************************************************** * * Copyright (c) 1994...