text stringlengths 5 1.04M |
|---|
#include <iostream>
using namespace std;
class Apple {
private:
static int nTotalNumber;
public:
static void PrintTotal() {
cout << nTotalNumber << endl;
}
Apple() {
++nTotalNumber;
}
~Apple() {
--nTotalNumber;
}
};
int Apple::nTotalNumber = 0;
Apple Fun(const Apple & a) {
... |
/* Copyright (c) 2020-present Advanced Micro Devices, Inc.
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, me... |
#include "aux2.hpp"
#include <iostream>
void aux2()
{
std::cout << "Hello from aux2\n";
}
|
/*
* Copyright 2015 Open Source Robotics Foundation
*
* 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 applicab... |
#include "stdafx.h"
#include <string>
#include "resource.h"
#include "mainframe.h"
#include "childfrm.h"
#include "mainframedoc.h"
#include "mainframeview.h"
#include "utility\utilitymacro.h"
#include <interface/iviewlugin.h>
CMainFrame::CMainFrame()
{
m_pMainFrameWnd = NULL;
}
CMainFrame::~CMainFrame()
... |
// license:BSD-3-Clause
// copyright-holders:Manuel Abadia, Ernesto Corvi, Nicola Salmoria
/***************************************************************************
gaplus.c
Functions to emulate the video hardware of the machine.
***************************************************************************/
#i... |
/**
* @file
* @copyright defined in aac/LICENSE.txt
*/
#pragma once
#include <aacio/chain/exceptions.hpp>
#include <aacio/chain/types.hpp>
#include <aacio/chain/symbol.hpp>
namespace aacio { namespace chain {
/**
asset includes amount and currency symbol
asset::from_string takes a string of the form "10.0000 C... |
/* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* ----... |
#include "StreamingTextView.h"
#include <GroupLayout.h>
#include <ScrollBar.h>
#include <String.h>
#include <TextView.h>
#include <View.h>
StreamingTextView::StreamingTextView(const char* name)
:
BView(name,B_SUPPORTS_LAYOUT),
fText(new BTextView("text"))
{
BGroupLayout* hGroup = new BGroupLayout(B_HORIZONTAL, ... |
#include "GAMER.h"
#include "TestProb.h"
// problem-specific global variables
// =======================================================================================
static bool var_bool;
static double var_double;
static int var_int;
static char var_str[MAX_STRING];
// =====================================... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE590_Free_Memory_Not_on_Heap__delete_array_wchar_t_declare_54b.cpp
Label Definition File: CWE590_Free_Memory_Not_on_Heap__delete_array.label.xml
Template File: sources-sink-54b.tmpl.cpp
*/
/*
* @description
* CWE: 590 Free Memory Not on Heap
* BadSource: declar... |
/* <editor-fold desc="MIT License">
Copyright(c) 2018 Robert Osfield
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, mod... |
#include <iostream>
#include <string>
#include <vector>
#include <math.h>
#include <csim/model.h>
#include <csim/error_codes.h>
#include <csim/executable_functions.h>
#include "version.h"
void usage(int argc, char* argv[])
{
std::cout << "This is CellML-2-BeatBox version: " << versionString() << std::endl;
}
in... |
/**
* @file methods/random_forest/random_forest_main.cpp
* @author Ryan Curtin
*
* A program to build and evaluate random forests.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of the
* 3-clause BSD license a... |
#include"../localedef.h"
namespace fast_io_i18n
{
namespace
{
inline constexpr std::size_t numeric_grouping_storage[]{3};
inline constexpr lc_all lc_all_global{.identification={.title=tsc("Furlan locale for Italy"),.source=tsc("fast_io"),.address=tsc("https://github.com/expnkx/fast_io"),.contact=tsc("Pablo Saratxaga... |
#include <vector>
#include <iostream>
#include <string>
#include <algorithm>
#include <time.h>
struct Card
{
// a card is defined in the datatype of struct
std::string displayvalue;
std::string actualvalue;
int frequency;
};
class Player {
private:
void replenish (int letterasciiv)
{
// this is ... |
/**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2012 UniPro <ugene@unipro.ru>
* http://ugene.unipro.ru
*
* 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... |
#ifndef BOOST_METAPARSE_V1_ONE_OF_C_HPP
#define BOOST_METAPARSE_V1_ONE_OF_C_HPP
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
// 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 <boost... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
// 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 "extensions/browser/api/networking_private/networking_private_delegate_factory.h"
#include "build/build_config.h"
#include "components/keyed_ser... |
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=4 sw=4 et tw=99:
*
* 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/. */
#i... |
/**
*/
#ifndef __codex_slist_h__
#define __codex_slist_h__
namespace codex {
/**
*/
template < class T >
class slist{
public:
///
slist( void );
///
~slist( void );
///
template < class U >
void swap( slist<U>& rhs );
///
void add_tail( T* node );
///
T* ... |
#include "CLI11.hpp"
#include "dataset_loader.hpp"
#include "dsp.hpp"
// This software is composed of 3 parts
// The first part is the data loader which loads all the dataset into a one
// giant std vector.
// Second part is the EMD computation part which contains the C
// code that is used to compute the IMF
// The... |
/**
Copyright (c) 2016, Ubiquity Robotics
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the follo... |
// IFT3100H21_ShaderClassic/main.cpp
// Démonstration de 5 modèles d'illumination classiques implémentés avec des shaders :
// - couleur de remplissage uniforme sur toute la surface,
// - modèle d'illumination de Lambert,
// - modèle d'illumination de Gouraud,
// - modèle d'illumination de Phong et
// - modèle d'illumi... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <PhysX_precompiled.h>
#include <AzCore/Serialization/EditContext.h>
#include <AzFramework... |
// 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 "src/ui/a11y/lib/view/view_manager.h"
#include <fuchsia/accessibility/cpp/fidl.h>
#include <fuchsia/sys/cpp/fidl.h>
#include <lib/async-loop/cpp/... |
// Copyright 2006-2008 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 lis... |
// Created on: 2000-08-17
// Created by: Andrey BETENEV
// Copyright (c) 2000-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 a... |
#include "Core.h"
namespace Upp {
#ifdef _DEBUG
void String0::Dsyn()
{
String *d_str = static_cast<String *>(this);
d_str->s = Begin();
d_str->len = GetCount();
}
#endif
String0::Rc String0::voidptr[2];
void String0::LSet(const String0& s)
{
w[2] = s.w[2];
w[3] = s.w[3];
if(s.IsRef()) {
ptr = s.ptr;
if(pt... |
#include "reduced_particle.h"
#include "Pythia8/Pythia.h"
namespace analysis {
ReducedParticle::ReducedParticle(const Pythia8::Particle& part,
const Pythia8::Event& event) {
pt_ = part.pT();
pz_ = part.pz();
phi_ = part.phi();
eta_ = part.eta();
index_ = part.index();
pdg... |
#include <bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
typedef long long ll;
typedef pair<int, int> pi;
const int MOD = 1000000007;
const ll INF = 1000000000000000000LL;
const int MAX_K = 11;
const int MAX_M = 50005;
int K, M;
string strings[MAX_K];
vector<int> pre; //pre... |
#include <gtest/gtest.h>
#include "trick/tc.h"
#include "trick/attributes.h"
#include "trick/tc_proto.h"
#include "trick/trick_byteswap.h"
#include "trick/trick_error_hndlr.h"
class TCBlockioTest : public testing::Test {
protected:
TCBlockioTest(){}
~TCBlockioTest(){}
TCDevice* device;
v... |
// 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 "script/script.h"
#include "scriptnum10.h"
#include "test/test_luk.h"
#include <boost/test/unit_test.hpp>
#include ... |
//
// Synchronized publisher in C++
//
// Olivier Chamoux <olivier.chamoux@fr.thalesgroup.com>
#include "zhelpers.hpp"
// We wait for 10 subscribers
#define SUBSCRIBERS_EXPECTED 10
int main () {
zmq::context_t context(1);
// Socket to talk to clients
zmq::socket_t publisher (context, ZMQ_PUB);
pub... |
#include "sound.hpp"
CSound::CSound(void)
{
}
CSound::~CSound(void)
{
}
/* Load sounds and save the handle in a array*/
void CSound::InitSound()
{
snd_stream_init(NULL);
#ifdef _TETRIS_DEBUG_
sndfxid[0]=snd_sfx_load("/cd/master/sounds/block_down.wav");
sndfxid[1]=snd_sfx_load("/cd/master/sounds/menu_change.wav");... |
/* Copyright 2021 Aristocratos (jakob@qvantnet.com)
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 ... |
// 2019 Spring CS380 Homework 4
// You have to implement
// 1. Normal mapping
// NormalMaterial.cpp, NormalMaterial.hpp
// Vertex has new attribute vec4 tangent (see ModelLoader.cpp or Geometry.cpp)
// 2. Shadow Mapping
// ShadowMap.hpp, ShadowMaterial.cpp, ShadowMaterial.hpp
//
// You can create/modify any functions o... |
//
// type.cpp
// dgmpp
//
// Created by Artem Shimanski on 14.12.2017.
//
#include "type.h"
#include "internal.h"
DGMPP_TYPE dgmpp_get_type (dgmpp_type type) {
auto base = get<Type>(type).get();
if (dynamic_cast<Gang*>(base))
return DGMPP_TYPE_GANG;
else if (dynamic_cast<Character*>(base))
return DGMPP_... |
/**
* Copyright (C) 2016 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 usef... |
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#define WATCHERS 4
SYNCHRONIZATION_BARRIER g_stBarrier = {};
HANDLE g_hMovieFinished = nullptr;
// Watchers gonna watch.
DWORD CALLBACK MovieWatcherThread(void* p)
{
int id = PtrToInt(p);
// Build a string that we use to prefix our messages.
char tag[WA... |
#include "sai_vs.h"
service_method_table_t g_services;
bool g_api_initialized = false;
std::recursive_mutex g_recursive_mutex;
sai_status_t sai_api_initialize(
_In_ uint64_t flags,
_In_ const service_method_table_t* services)
{
std::lock_guard<std::recursive_mutex> lock(g_re... |
/*
* simplify_expr.cpp --- AST expression simplifications.
*
* (c) Seq project. All rights reserved.
* This file is subject to the terms and conditions defined in
* file 'LICENSE', which is part of this source code package.
*/
#include <deque>
#include <memory>
#include <string>
#include <tuple>
#include <vector>... |
/*-----------------------------------------------------------------------
Matt Marchant 2021
http://trederia.blogspot.com
crogine application - Zlib license.
This software is provided 'as-is', without any express or
implied warranty.In no event will the authors be held
liable for any damages arising from the use of ... |
#include <unordered_set>
#include <unordered_map>
#include "L1Trigger/L1THGCal/interface/be_algorithms/HGCalClusteringImpl.h"
#include "DataFormats/Common/interface/PtrVector.h"
#include "DataFormats/Common/interface/OrphanHandle.h"
//class constructor
HGCalClusteringImpl::HGCalClusteringImpl(const edm::ParameterSet &... |
/**
* 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... |
/**
/**
* @file
* @copyright defined in bos/LICENSE.txt
*/
#include <eosio/chain/types.hpp>
#include <eosio/ibc_plugin/ibc_plugin.hpp>
#include <eosio/ibc_plugin/protocol.hpp>
#include <eosio/chain/controller.hpp>
#include <eosio/chain/exceptions.hpp>
#include <eosio/chain/block.hpp>
#include <eosio/chain/plugin_... |
/*
*************************************************************************
ArmageTron -- Just another Tron Lightcycle Game in 3D.
Copyright (C) 2000 Manuel Moos (manuel@moosnet.de)
**************************************************************************
This program is free software; you can redistribute it a... |
/*
Project: SSBRenderer
File: path.cpp
Copyright (c) 2015, Christoph "Youka" Spanknebel
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software f... |
// Copyright 2021 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 <lib/elfldltl/memory.h>
#include <lib/stdcompat/span.h>
#include <string_view>
#include <zxtest/zxtest.h>
namespace {
using namespace std::lit... |
// 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
#... |
//
// Connector.cpp
//
// $Id: //poco/Main/Data/ODBC/src/Connector.cpp#2 $
//
// Library: Data/ODBC
// Package: ODBC
// Module: Connector
//
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Data/ODBC/Connector.h"
#incl... |
/************************************************************
*
* CmdAcceptInvoices.hpp
*
*/
/************************************************************
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
* OPEN TRANSACTIONS
*
* Financial Cryptography and Digital Cash
* Library, Pro... |
#include "noosascript.h"
#include "game.h"
#include "../pd/quad.h"
#include "../engine/util.h"
const char* VERT_SHADER = R"(
uniform mat4 uCamera;
uniform mat4 uModel;
attribute vec4 aXYZW;
attribute vec2 aUV;
varying vec2 vUV;
void main() {
gl_Position = uCamera * uModel * aXYZW;
vUV = aUV;
}
)... |
#include <cstdio>
#include <algorithm>
#include <iostream>
#include <cmath>
#include <vector>
#include <limits.h>
#include <stack>
#include <queue>
#include <iomanip>
#include <list>
#include <set>
#include <deque>
#include <bitset>
#include <map>
#include <assert.h>
#include <utility>
#include <string.h>
#include <cst... |
/**
* Copyright 2021 Scott Brauer
*
* Licensed under the Apache License, Version 2.0 (the );
* 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 in writ... |
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2004 StatPro Italia srl
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it ... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "EditorDefs.h"
#include "StringDlg.h"
// Qt
#include <QDialogButtonBox>
#include <QLab... |
#include <steem/chain/util/reward.hpp>
#include <steem/chain/util/uint256.hpp>
namespace steem { namespace chain { namespace util {
uint8_t find_msb( const uint128_t& u )
{
uint64_t x;
uint8_t places;
x = (u.lo ? u.lo : 1);
places = (u.hi ? 64 : 0);
x = (u.hi ? u.hi : x);
return uint8_t... |
#include "utility.h"
void draw_tracked_faces(
const cv::Mat& image,
const SeetaTrackingFaceInfoArray& tracked_faces)
{
for (int i = 0; i < tracked_faces.size; ++i) {
const SeetaTrackingFaceInfo& track_face_info = tracked_faces.data[i];
cv::Rect rect = {
track_face_info.pos.x,
track_face_info.pos.y,
tra... |
/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... |
/*
* This file is part of the Simutrans-Extended project under the Artistic License.
* (see LICENSE.txt)
*/
/*
* signal infowindow buttons //Ves
*/
#include "signal_info.h"
#include "simwin.h"
#include "signal_connector_gui.h"
#include "../obj/signal.h" // The rest of the dialog
#include "../obj/gebaeude.h"
#in... |
// 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 "base/memory/ptr_util.h"
#include "chrome/browser/chromeos/arc/session/arc_session_manager.h"
#include "chrome/browser/chromeos/policy/configurat... |
/*
* ----------------- BEGIN LICENSE BLOCK ---------------------------------
*
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
* ----------------- END LICENSE BLOCK -----------------------------------
*/
/**
* Generated file
* @file
*
* Generator Version : 11.0.0-1997
*/
#p... |
//$Id$
//------------------------------------------------------------------------------
// UserDefinedFunction
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2018 United States Government as r... |
/**********
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
Free Software Foundation; either version 2.1 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This libr... |
//
// 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 agreed t... |
///*
// * 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 copyrig... |
//=================================================================================================
// Copyright 2014-2015 Dirk Lemstra <https://graphicsmagick.codeplex.com/>
//
// Licensed under the ImageMagick License (the "License"); you may not use this file except in
// compliance with the License. You may ob... |
//
// stream_descriptor.hpp
// ~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2008 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 BOOST_ASIO_POSIX_... |
/*
引用元:https://atcoder.jp/contests/abc042/tasks/arc058_a
C - Iroha's ObsessionEditorial
// ソースコードの引用元 :
https://atcoder.jp/contests/abc042/submissions/11403600
// 提出ID : 11403600
// 問題ID : arc058_a
// コンテストID : abc042
// ユーザID : xryuseix
// コード長 : 2673
// 実行時間 : 2
*/
#include <algorithm>
#include <bitset>
#include <... |
//=================================================================================================
/*!
// \file src/mathtest/dvecdvecdiv/V6bV6b.cpp
// \brief Source file for the V6bV6b dense vector/dense vector division math test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// This file i... |
// author - sonaspy@outlook.com
// coding - utf_8
#include <iostream>
#include<string>
#include<algorithm>
#define test() freopen("in", "r", stdin)
using namespace std;
int main(int argc, char const *argv[])
{
/* code */
//test();
int a, b, c, d, sh, r;
cin >> a >> b >> d;
c = a + b;
string s... |
/**
* This is the C++ adaptation and derivative work of Myia (https://github.com/mila-iqia/myia/).
*
* Copyright 2019 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the ... |
// Copyright (c) 2014-2017 The paymeal Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "activemasternode.h"
#include "checkpoints.h"
#include "governance.h"
#include "validation.h"
#include "masterno... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... |
#include <string>
#include "envoy/stats/refcount_ptr.h"
#include "gtest/gtest.h"
namespace Envoy {
namespace Stats {
class RefcountedString : public std::string, public RefcountHelper {
public:
explicit RefcountedString(const std::string& s) : std::string(s) {}
};
using SharedString = RefcountPtr<RefcountedString... |
/*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
// Copyright 1994, 1996, 2005, 2008 by Jon Dart
#include "bitboard.h"
static int done_init = 0;
const CACHE_ALIGN uint64 Bitboard::mask[64] =
{
1,
((uint64)1) << 1,
((uint64)1) << 2,
((uint64)1) << 3,
((uint64)1) << 4,
((uint64)1) << 5,
((uint64)1) << 6,
((uint64)1) << 7,
((uint64)1) << 8,... |
//
// AKPWMOscillatorDSP.hpp
// AudioKit
//
// Created by Aurelius Prochazka, revision history on Github.
// Copyright © 2018 AudioKit. All rights reserved.
//
#pragma once
#import <AVFoundation/AVFoundation.h>
typedef NS_ENUM(AUParameterAddress, AKPWMOscillatorParameter) {
AKPWMOscillatorParameterFrequency,... |
/****************************************************************************
*
* Copyright (c) 2013-2014 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. Red... |
version https://git-lfs.github.com/spec/v1
oid sha256:0e21e9d7740f5f6cc50f76e2811a719679a628a783b4a129454e6c2d9021331a
size 6628
|
#pragma once
#include "lue/framework/partitioned_array.hpp"
namespace lue {
/*!
@brief Fill a partitioned array in-place with @a fill_value
@tparam Element Type of elements in the arrays
@tparam rank Rank of the input arrays
@tparam Array Class template of the type of the arrays
... |
/*
* Copyright © 2017 Google, Inc.
*
* This is part of HarfBuzz, a text shaping library.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and its documentation for any purpose, provided that the
* above copy... |
#include <nan.h>
using namespace v8;
NAN_METHOD(Print) {
}
void Init(Handle<Object> exports) {
exports->Set(NanNew("print"), NanNew<FunctionTemplate>(Print)->GetFunction());
}
|
#pragma once
#include <basiclib/types.h>
namespace basic {
/**
* Converts a base32 symbol into its binary representation, used by string_to_name()
*
* @ingroup types
*/
static constexpr char char_to_symbol( char c ) {
if( c >= 'a' && c <= 'z' )
return (c - 'a') + 1;
if( c... |
//
// Copyright 2018 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... |
// boost cast.hpp header file
//
// (C) Copyright Antony Polukhin 2014.
//
// 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)
//
// See http://www.boost.org/libs/conversion for Documentation.
// Thi... |
#include "PyScaffolder.hpp"
#include "OptimalSlice.hpp"
#include "MeshOperation.h"
#include "implicit_function.h"
#include "QuadricSimplification.h"
#include "dualmc/dualmc.h"
#define LOG std::cout
#define IS_INSTANCE_ARRAYLIST(x) (py::isinstance<py::list>(x) || py::isinstance<py::tuple>(x) || py::isinstance<py::array... |
#pragma once
#include "../common.hpp"
namespace Mirb
{
class Input
{
private:
const char_t *input;
public:
enum Characters
{
Null = 0,
CarrigeReturn = 0x13,
NewLine = 0x10
};
Input& operator=(const Input& other)
{
input = other.input;
return *this;
}
void... |
#define BOOST_TEST_MODULE Zoocoin Test Suite
#include <boost/test/unit_test.hpp>
#include <boost/filesystem.hpp>
#include "db.h"
#include "txdb.h"
#include "main.h"
#include "wallet.h"
#include "util.h"
CWallet* pwalletMain;
CClientUIInterface uiInterface;
extern bool fPrintToConsole;
extern void noui_connect();
st... |
#if HAVE_CONFIG_H
# include <config.h>
#endif
#include "Cosmology.h"
#include "PowerSpectrum.h"
#include "Quadrature.h"
#include "BSPT.h"
#include "BSPTN.h"
#include "SPT.h"
#include "Spline.h"
#include "SpecialFunctions.h"
#include "LinearPS.h"
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <sys/s... |
// Note: This test requires the SysV AMD64 ABI to be in use, and requires
// compiler support for DWARF entry values.
// Inhibit dead-arg-elim by using 'x'.
template<typename T> __attribute__((noinline)) void use(T x) {
asm volatile (""
/* Outputs */ :
/* Inputs */ : "g"(x)
/* Clobbers */ :
);... |
// Copyright 2014 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/heap/gc-tracer.h"
#include <cstdarg>
#include "include/v8-metrics.h"
#include "src/base/atomic-utils.h"
#include "src/base/strings.h"
#i... |
/*==================================================================
Program: Visualization Toolkit
Module: TestHyperTreeGridTernaryHyperbola.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Thi... |
/*
* BSD LICENSE
* Copyright (c) 2021 Samsung Electronics 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 th... |
#include "AI013x0x1xDecoder.h"
#include <zxing/common/StringUtils.h>
namespace zxing {
namespace oned {
namespace rss {
AI013x0x1xDecoder::AI013x0x1xDecoder(QSharedPointer<BitArray> information, String firstAIdigits, String dateCode)
: AI01weightDecoder(information), m_dateCode(dateCode), m_firstAIdigits(firstAId... |
// Copyright 2017 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/accessors.h"
#include "src/codegen/compilation-cache.h"
#include "src/execution/isolate.h"
#include "src/execution/protectors.h"
... |
/* Mednafen - Multi-system Emulator
*
* 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 2 of the License, or
* (at your option) any later version.
*
* This program is distrib... |
// Arquivo cmd_update_caddie_item.hpp
// Criado em 14/05/2018 as 00:01 por Acrisio
// Defini��o da classe CmdUpdateCaddieItem
#pragma once
#ifndef _STDA_CMD_UPDATE_CADDIE_ITEM_HPP
#define _STDA_CMD_UPDATE_CADDIE_ITEM_HPP
#include "../../Projeto IOCP/PANGYA_DB/pangya_db.h"
#include "../TYPE/pangya_game_st.h"
namespac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.