text stringlengths 7 961k |
|---|
/*
==============================================================================
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 both the... |
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Plesiosaur_Character_BP_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//-------------------------------------------------... |
// Copyright (C) 2010-2015 National ICT Australia (NICTA)
//
// 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 <vector>
#include <boost/test/unit_test.hpp>
#include <boost/foreach.hpp>
#include "main.h"
#include "wallet.h"
#include "util.h"
using namespace std;
BOOST_AUTO_TEST_SUITE(util_tests)
BOOST_AUTO_TEST_CASE(util_criticalsection)
{
CCriticalSection cs;
do {
LOCK(cs);
break;
... |
/*
*
* random_match.hpp
* Header file for random_match.cpp
*
*/
#pragma once
#include <cstddef>
#include <cstdint>
#include <string>
#include <tuple>
#include <vector>
#include "dist/matrix.hpp"
#include "gpu/gpu.hpp"
#include "robin_hood.h"
const unsigned int default_max_k = 101;
const unsigned int default_n_c... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XX ... |
/*
---------------------------------------------------------------------------
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2019, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,... |
// Copyright 2014 Open Source Robotics Foundation, 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 appli... |
#include "Buffer.h"
#include <frm/core/gl.h>
using namespace frm;
using namespace apt;
// PUBLIC
Buffer* Buffer::Create(GLenum _target, GLsizei _size, GLbitfield _flags, GLvoid* _data)
{
Buffer* ret = new Buffer(_target, _size, _flags);
glAssert(glNamedBufferStorage(ret->m_handle, _size, _data, _flags));
return ... |
// Copyright 2005-2012 Daniel James.
// 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)
#if !defined(BOOST_FUNCTIONAL_HASH_DETAIL_HASH_FLOAT_HEADER)
#define BOOST_FUNCTIONAL_HASH_DETAIL_HASH_FLOAT_HEADER
#include <bo... |
/*=============================================================================
Copyright (c) 2014 John Fletcher
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)
================================================... |
// rsa.cpp - originally written and placed in the public domain by Wei Dai
#include "sa_pch.h"
#include "sa_rsa.h"
#include "sa_asn.h"
#include "sa_sha.h"
#include "sa_oids.h"
#include "sa_modarith.h"
#include "sa_nbtheory.h"
#include "sa_algparam.h"
#include "sa_fips140.h"
#include "sa_pkcspad.h"
#if defined(CRYPTOP... |
// Copyright 2008-present Contributors to the OpenImageIO project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/OpenImageIO/oiio/blob/master/LICENSE.md
#include <cstdio>
#include <vector>
#include <openjpeg.h>
#include <OpenImageIO/filesystem.h>
#include <OpenImageIO/fmath.h>
#include <OpenImageIO/... |
// Copyright 2015-2019 Mail.Ru Group. All Rights Reserved.
#include "Serialize/PsDataSerialization.h"
#include "PsData.h"
/***********************************
* FPsDataSerializer
***********************************/
FPsDataSerializer::FPsDataSerializer(bool InUseSortedKeys)
: bUseSortedKeys(InUseSortedKeys)
{
}
... |
/*******************************************************************************
* Project: BaBar detector at the SLAC PEP-II B-factory
* Package: EvtGenBase
* File: $Id: EvtMacros.hh 427 2010-01-14 13:25:53Z stroili $
* Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002
*
* Copyright (C) 2002 C... |
//
// MaxHeap.cpp
// Algorithm
//
// Created by nchkdxlq on 2017/8/6.
// Copyright © 2017年 nchkdxlq. All rights reserved.
//
#include "MaxHeap.hpp" |
// Copyright 2021 Oleksandr Bacherikov.
//
// Distributed under the Boost Software License, Version 1.0
// (see accompanying file LICENSE.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
#pragma once
#include <actl/operation/policy/common/all.hpp>
#include <actl/operation/policy/resolve_under_policy.hpp> |
//=============================================================================================
// MahonyAHRS.c
//=============================================================================================
//
// Madgwick's implementation of Mayhony's AHRS algorithm.
// See: http://www.x-io.co.uk/open-source-imu-and-a... |
#include "InventoryItemUpgrade.h"
#include "Templates/SubclassOf.h"
class AFSDPlayerState;
class AItem;
FUpgradeValues UInventoryItemUpgrade::GetUpgradedValue(TSubclassOf<AItem> Item, AFSDPlayerState* Player, EInventoryItemUpgradeType NewUpgradeType) {
return FUpgradeValues{};
}
UInventoryItemUpgrade::UInventory... |
/**
* Copyright (C) 2014 MongoDB, 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 program is distributed in the hope that it will be use... |
#include <cstdio>
using namespace std;
int main() {
int n;
scanf("%d", &n);
if (n == 10) printf("1\n"); // 5, 5;
if (n == 9) printf("1\n"); // 5, 4;
if (n == 8) printf("2\n"); // 5, 3; 4, 4;
if (n == 7) printf("2\n"); // 5, 2; 4, 3;
if (n == 6) printf("3\n"); // 5, 1; 4, 2; 3, 3;
if (n == 5) printf("3\n"); // 5... |
/* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* Copyright (c) 2010-2015, ITU/ISO/IEC
* All rights reserve... |
#include "headers/Map.h"
void sleep(clock_t ms) {
clock_t end(clock() + 1000 * ms);
while (clock() <= end);
}
int main() {
sf::ContextSettings settings;
settings.antialiasingLevel = 4;
sf::RenderWindow window(sf::VideoMode(WIDTH, HEIGHT), "Entities controlled by a neural network learning from a G... |
/**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
#include <bits/stdc++.h>
using namespace std;
#define eb emplace_back
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define sz(v) ((int) (v).size())
#define all(v) (v).begin(), (v).end()
#define ms(x... |
// Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <memory>
#include <ngraph/ngraph.hpp>
#include <low_precision/layer_transformation.hpp>
#include "lpt_ngraph_functions/common/dequantization_operations.hpp"
#include "lpt_ngraph_functions/common/builders.hpp"
nam... |
#include "MultiSimulationObserver.h"
namespace DNAReplication {
void MultiSimulationObserver::handleOriginFired(SimulationOriginEvent const &e) {
if (e.origin.getState() == Origin::State::ReplLR) {
originFiringCounts[e.origin.getID()]++;
originFiringTimeSums[e.origin.getID()] += e.... |
/**
* This file is part of the CernVM File System.
*
* libcvmfs provides an API for the CernVM-FS client. This is an
* alternative to FUSE for reading a remote CernVM-FS repository.
*/
#define _FILE_OFFSET_BITS 64
#define __STDC_FORMAT_MACROS
#include "cvmfs_config.h"
#include "libcvmfs.h"
#include <errno.h>
#... |
#include<iostream>
using namespace std;
class Rect
{
public:
float width;
float height;
Rect();
Rect(float);
Rect(float,float);
Rect(const Rect &obj);
~Rect();
float area();
friend float perimeter(Rect);
};
//Constructors
Rect::Rect()
{
width = 0;
height = 0;
}
Rect::Rect(float w) : width(... |
/**
* Abstraction of basic features of the DY-SV17F mp3 player board, written for
* Arduino, should work on other frameworks as well. Instead of DY-SV17F I will
* from here on refer to it as the "module".
*
* There are some virtual methods that MUST be overridden (serialRead and
* serialWrite) and one that you ma... |
// 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 "components/search_provider_logos/google_logo_api.h"
#include <stdint.h>
#include <algorithm>
#include <memory>
#include "base/base64.h"
#incl... |
#include "Machine.hpp"
#include <random>
#include <functional>
#include <exception>
using ROS = Enigma::Rotor::Standard;
using RES = Enigma::Reflector::Standard;
const std::unordered_map<Enigma::Machine::Standard, Enigma::Machine::_MachineTemplate> Enigma::Machine::_machineTemplates = {
{ Standard::D, { { ROS::D... |
#include <QtGlobal>
// Automatically generated by extract_strings.py
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
static const char UNUSED *bitcoin_strings[] = {
QT_TRANSLATE_NOOP("bitcoin-core", ""
"%s, you must set a rpcpassword in the configuration file:\n"
"%s\n"
"It is recomme... |
// Copyright Carl Philipp Reh 2009 - 2021.
// 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 FCPPT_ERROR_CODE_TO_STRING_HPP_INCLUDED
#define FCPPT_ERROR_CODE_TO_STRING_HPP_INCLUDED
#i... |
#include<iostream>
#include "basics.h"
using std::cout;
int main()
{
cout << sum_numbers(5, 5) << "\n";
cout << multiply_numbers(10, 10);
return 0;
} |
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <set>
#include <unordered_set>
#include <map>
#include <unordered_map>
#include <queue>
#include <math.h>
#include <stdlib.h>
#include <deque>
using namespace std;
int main()
{
string s;
cin>>s;
unordered_set<char> mp;
... |
// Copyright 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.
// This is just a compile fix. If this is really needed when using aura, the
// methods below should be filled out.
#include <EGL/egl.h>
#include <EGL/eg... |
// Copyright 2018 The Fuchsia 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 <fuchsia/wlan/device/llcpp/fidl.h>
#include <fuchsia/wlan/tap/llcpp/fidl.h>
#include <lib/async-loop/cpp/loop.h>
#include <lib/async-loop/default.... |
//***************************************************************************
// Copyright 2017 OceanScan - Marine Systems & Technology, Lda. *
//***************************************************************************
// Licensed under the Apache License, Version 2.0 (the "License"); *
// you m... |
#include <iostream>
#include <algorithm>
using namespace std;
int dp[2][100001];
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
int t;
cin >> t;
for (int i = 0; i < t; i++) {
int n;
cin >> n;
for (int j = 0; j < 2; j++)
for (int k = 1; k <= n; k++)
cin >> dp[... |
#ifndef VIENNACL_LINALG_BISECT_GPU
#define VIENNACL_LINALG_BISECT_GPU
/* =========================================================================
Copyright (c) 2010-2014, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
TU Wien... |
// Copyright (c) 2012-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 <bloom.h>
#include <base58.h>
#include <clientversion.h>
#include <key.h>
#include <merkleblock.h>
#include <primit... |
// PickDriveDlg.cpp : implementation file
//
#include "stdafx.h"
#include "PickDriveDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPickDriveDlg dialog
CPickDriveDlg::CPickDriveD... |
#include <err.h>
#include <string.h>
#include <stdarg.h>
#include <assert.h>
#include <set>
#include <map>
#include <algorithm>
#include "pin.H"
#include "libdft_api.h"
#include "libdft_core.h"
#include "tagmap.h"
#include "branch_pred.h"
#include "libdft_log.h"
/* threads context */
extern thread_ctx_t *threads_ctx... |
#include "mavsdk.h"
#include "curl_wrapper.h"
#include <fstream>
#include <iostream>
#include <chrono>
#include <thread>
#include <gtest/gtest.h>
using namespace mavsdk;
class CurlTest : public testing::Test {
protected:
std::string _file_url_existing_http{};
std::string _file_url_not_existing{};
std::str... |
/************************************************************
*
* OPEN TRANSACTIONS
*
* Financial Cryptography and Digital Cash
* Library, Protocol, API, Server, CLI, GUI
*
* -- Anonymous Numbered Accounts.
* -- Untraceable Digital Cash.
* -- Triple-Signed Receipts... |
/**
Copyright (c) 2015 <wataro>
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
#include "gtest/gtest.h"
#include "midso/reshape_layer_backward.h" |
/*************************************************************************/
/* height_map_shape.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
//===- MemRegion.cpp - Abstract memory regions for static analysis --------===//
//
// 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
//
//===---------------------------... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2022, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... |
/* Copyright 2018 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) 2016-2019
* Viktor Gubin
*
* 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 "stdafx.hpp"
#include "parser.hpp"
#include <cstdlib>
#include ... |
/*
* (C) Copyright 2013 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an intergo... |
--- content/renderer/render_thread_impl.cc.orig 2021-01-18 21:28:58 UTC
+++ content/renderer/render_thread_impl.cc
@@ -170,7 +170,7 @@
#if defined(OS_MAC)
#include <malloc/malloc.h>
-#else
+#elif !defined(OS_BSD)
#include <malloc.h>
#endif
@@ -705,7 +705,7 @@ void RenderThreadImpl::Init() {
DCHECK(parsed_num... |
// Copyright 2015 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/ash/file_system_provider/queue.h"
#include "base/bind.h"
#include "base/check_op.h"
#include "base/location.h"
#include "base/no... |
/*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... |
/////////////////////////////////////////////////////////////////////////////
// Name: src/univ/statbmp.cpp
// Purpose: wxStaticBitmap implementation
// Author: Vadim Zeitlin
// Modified by:
// Created: 25.08.00
// Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
// Licence: wx... |
//===- EncodeInstructionsPass.cpp -----------------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "EncodeInstructionsPass.h"
#include <onnc/IR/ComputeOperator... |
/*
* SEGS - Super Entity Game Server
* http://www.segs.io/
* Copyright (c) 2006 - 2019 SEGS Team (see AUTHORS.md)
* This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details.
*/
/*!
* @addtogroup MapServerEvents Projects/CoX/Servers/MapServer/Events
* @{
*/
#include "Wi... |
/**************************** mac2asm.cpp *********************************
* Author: Agner Fog
* Date created: 2007-05-24
* Last modified: 2008-05-12
* Project: objconv
* Module: mac2asm.cpp
* Description:
* Module for disassembling Mach-O files
*
* Copyright 2007-2008 GNU General Public Licens... |
#include<iostream>
#include<list>
#include<map>
#include<string>
using namespace std;
typedef list<char> LinkedList;
typedef map<char,int> HashMap;
LinkedList makeList(string s){
list<char> myList;
for(int i=0;i<s.length();i++){
myList.push_back(s[i]);
}
return myList;
}
void printLinkedList(Lin... |
//*****************************************************************************
// Copyright 2017-2019 Intel 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://w... |
//*****************************************************************************
// Copyright 2017-2019 Intel 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://w... |
#include "image.h"
#include "engine/core/log/Log.h"
#include "engine/core/scene/node_tree.h"
#include "base/renderer.h"
#include "base/shader/shader_program.h"
#include "engine/core/main/Engine.h"
#include "engine/modules/ui/ui_module.h"
namespace Echo
{
UiImage::UiImage()
: UiRender()
{
}
... |
// Copyright 2019 The Fuchsia 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 <blobfs/vmo-buffer.h>
#include <utility>
#include <zircon/status.h>
#include <zircon/assert.h>
namespace blobfs {
VmoBuffer::VmoBuffer(VmoBuff... |
//Sample provided by Fabio Galuppo
//February 2017
//http://www.simplycpp.com
#ifndef BST_DEPTH_FIRST_TRAVERSAL_HPP
#define BST_DEPTH_FIRST_TRAVERSAL_HPP
#include "bst_node.hpp"
#include <iterator>
#include <stack>
template<typename T>
struct bst_depth_search_travesal final :
public std::iterator<std::forward_ite... |
// Based on Razer SDK Example. Copyright Razer. All rights reserved.
// All additions/changes:
// Copyright 2018 Jonathan Potts. All rights reserved.
#include "stdafx.h"
#ifdef _WIN64
#define CHROMASDKDLL _T("RzChromaSDK64.dll")
#else
#define CHROMASDKDLL _T("RzChromaSDK.dll")
#endif
using namespace Ch... |
Leetcode - Move Zeroes
//Given an integer array nums, move all 0's to the end of it while maintaining the relative order of the non-zero elements.
// Note that you must do this in-place without making a copy of the array.
class Solution {
public:
void moveZeroes(vector<int>& nums) {
int i = 0;
in... |
/** \copyright
* Copyright (c) 2013, Balazs Racz
* 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 lis... |
/*****************************************************************************
YASK: Yet Another Stencil Kit
Copyright (c) 2014-2021, 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 Soft... |
/* ----------------------------------------------------------------------
SPPARKS - Stochastic Parallel PARticle Kinetic Simulator
http://www.cs.sandia.gov/~sjplimp/spparks.html
Steve Plimpton, sjplimp@sandia.gov, Sandia National Laboratories
Copyright (2008) Sandia Corporation. Under the terms of Contrac... |
/* *****************************************************************************
* A.L.E (Arcade Learning Environment)
* Copyright (c) 2009-2013 by Yavar Naddaf, Joel Veness, Marc G. Bellemare and
* the Reinforcement Learning and Artificial Intelligence Laboratory
* Released under the GNU General Public License;... |
// Copyright (c) 2015-2020 by the parties listed in the AUTHORS file.
// All rights reserved. Use of this source code is governed by
// a BSD-style license that can be found in the LICENSE file.
#include <_libcal_atm_mpi.hpp>
#include <mpi4py/mpi4py.h>
MPI_Comm cal_mpi_extract_comm(py::object & pycomm) {
PyObj... |
#include "jstypes.h"
struct Foo
{
JS_REQUIRES_STACK void *redmember;
};
void* GreenFunc(Foo *f)
{
return f->redmember;
} |
#include <ATen/core/Dict.h>
#include <ATen/core/Tensor.h>
#include <ATen/core/function_schema.h>
#include <ATen/core/jit_type.h>
#include <c10/macros/Macros.h>
#include <c10/util/irange.h>
#include <ATen/core/grad_mode.h>
#include <ATen/core/function.h>
#include <iostream>
namespace c10 {
OptionalTypePtr OptionalType... |
//////////////////////////////////////////////////////////////////////
// //
// Created by RoseKavalier: //
// rosekavalierhc@gmail.com //
// Created or last upda... |
/*
* Author : OFShare
* E-mail : OFShare@outlook.com
* Created Time : 2020-03-14 15:52:38 PM
* File Name : P1042.cc
*/
#include <bits/stdc++.h>
#define ll long long
void debug() {
#ifdef Acui
freopen("data.in", "r", stdin);
freopen("data.out", "w", stdout);
#endif
}
const int N = ... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
+---------... |
// Copyright 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 "media/video/capture/video_capture_types.h"
#include "base/logging.h"
#include "base/strings/stringprintf.h"
#include "media/base/limits.h"
nam... |
// Copyright 2019-2022 Cambridge Quantum Computing
//
// 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... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 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 "chain.h"
/**
* CChain implementation
*/
void CChain::SetTip(CBlockIn... |
#include "inti.h"
#include <core/rect.h>
#include <core/environment.h>
#include <core/keyboardevent.h>
#include <core/joystickevent.h>
#include <iostream>
#include "life.h"
#include "map.h"
#include <core/level.h>
#include "gamecontrol.h"
#include "dialogue_manager.h"
#include "battle_manager.h"
#include <core/rect.h>
... |
#ifndef windy_layers
#define windy_layers
#include <memory>
#include "nana/gui/widgets/group.hpp"
#include "nana/gui/widgets/label.hpp"
#include "nana/gui/widgets/listbox.hpp"
namespace windy {
namespace content {
class edition : public nana::group {
public:
edition();
void init();
void refresh(std::s... |
// File: crn_file_utils.cpp
// See Copyright Notice and license at the end of inc/crnlib.h
#include "crn_core.h"
#include "crn_file_utils.h"
#include "crn_strutils.h"
#if CRNLIB_USE_WIN32_API
#include "crn_winhdr.h"
#endif
#ifdef WIN32
#include <direct.h>
#endif
#ifdef __GNUC__
#include <sys/stat.h>
#include <sys/st... |
// Copyright 2015 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 "ash/networking_config_delegate.h"
namespace ash {
NetworkingConfigDelegate::ExtensionInfo::ExtensionInfo(const std::string& id,
... |
/**********************************************************************
* Copyright (c) 2008-2014, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library 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 Fre... |
///////////////////////////////////////////////////////////////////////////////
// //
// DxilSigPoint.inl //
// Copyright (C) Microsoft Corporation. All rights reserved. //
... |
//------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby ... |
// Copyright 2015 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 "base/trace_event/trace_log.h"
#include <algorithm>
#include <cmath>
#include <memory>
#include <utility>
#include "base/base_switches.h"
#incl... |
#include <string>
#ifdef WIN32
#include <windows.h>
#else
#include <sys/mman.h>
#include <sys/stat.h> /* For mode constants */
#include <fcntl.h> /* For O_* constants */
#include <unistd.h> /* For getuid */
#include <sys/types.h>
#include <cstdlib> /* For mbstowcs */
#define nullptr... |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
// For getting pth bit
int getbit(int n,int p){
int mask = (n&(1<<p));
int bit = mask>0?1:0;
return bit;
}
// Setting pth bit
int setbit(int n, int p){
int mask = (n|(1<<p));
return mask;
}
// clr pth bit
void clrbit(int &n, int p){
n = (n&(~(1... |
/*
* 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... |
// -*- C++ -*-
#if !defined(__numerical_polynomial_PolynomialGenericOrder_ipp__)
#error This file is an implementation detail of PolynomialGenericOrder.
#endif
namespace numerical {
template<typename _RandomAccessIterator, typename _T>
inline
_T
evaluatePolynomial(std::size_t order, _RandomAccessIterator coefficien... |
/*****************************************************************************
* *
* Copyright 2018 Rice University *
* *
* ... |
/**
* Copyright (C) 2019 Xilinx, Inc
*
* 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
// Copyright (c) 2009-2012 Bitcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <iostream>
#include <fstream>
#include "init.h" // for pwalletMain
#include "rpcserver.h"
#include "ui_interface.h"
#inc... |
// 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 "chrome/browser/browsing_data/browsing_data_local_storage_helper.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/t... |
// SPDX-License-Identifier: Apache-2.0
// Copyright 2021 - 2021, the Anboto author and contributors
#include <Core/Core.h>
#include <Geom/Geom.h>
#include "ShortestPath.h"
namespace Upp {
void MapShortestPath::Init(const Vector<Vector<Pointf>> &perimetersAllowed,
const Vector<Vector<Pointf>> &perimetersForbi... |
/*
* Copyright (c) 2019 Samsung Electronics Co., Ltd. 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... |
/**********************************************************************
* Copyright (c) 2008-2015, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library 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... |
// 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 "components/safe_browsing/content/browser/triggers/suspicious_site_trigger.h"
#include "base/bind.h"
#include "base/memory/ptr_util.h"
#include ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.