text stringlengths 5 1.04M |
|---|
/******************************************************************************
*
* Project: GDAL Utilities
* Purpose: Command line application to list info about a multidimensional raster
* Author: Even Rouault,<even.rouault at spatialys.com>
*
* **************************************************************... |
//
// TCPSocket.cc
//
// Copyright 2019-Present Couchbase, Inc.
//
// Use of this software is governed by the Business Source License included
// in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
// in that file, in accordance with the Business Source License, use of this
// software will be gove... |
/*
* Copyright (c) 2018, Oracle and/or its affiliates.
*
* 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 ... |
#ifndef __PRAGMAS__
#define __PRAGMAS__
#define DO_QUOTE(arg) #arg
#ifndef UNROLL_LEVEL
#define UNROLL_LEVEL 4
#endif
#if defined(__ve__)
#define __ivdep__ DO_QUOTE(_NEC ivdep)
#define __novector__ DO_QUOTE(_NEC novector)
#define __outerloop_unroll__ DO_QUOTE(_NEC outerloop_unroll(UNROLL_LEVEL))
#elif defined(_SX)
#... |
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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 d... |
/*
* Copyright (c) 2019, 2021, Oracle and/or its affiliates.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2.0,
* as published by the Free Software Foundation.
*
* This program is also distributed with certain software (in... |
#include "O4_2d.h"
using namespace itensor;
void Measurements::GroundStates(const O4& O4, int n, const std::vector<MPS>& psi_ini, std::vector<Real>& en, std::vector<MPS>& psi)
{
int sweep_count_total = 0;
std::vector<int> sweep_count(n,0);
auto wfs = std::vector<MPS>(0);
std::ofstream pfile;
pfile.open (... |
#ifndef _TRANSACTION_HPP_
#define _TRANSACTION_HPP_
#include <iomanip>
#include <iostream>
#include <string>
class Transaction {
public:
// Constructor
//
Transaction( std::string ticker_symbol, unsigned int day_date,
unsigned int month_date, unsigned year_date,
bool bu... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2017-2020 The PIVX developers
// Copyright (c) 2020 The CryptoDev developers
// Copyright (c) 2020 The peony developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or ht... |
#ifndef SRC_TESTS_TEST_OLARANK_CPP_
#define SRC_TESTS_TEST_OLARANK_CPP_
#include <cmath>
#include <vector>
#include <glog/logging.h>
#include "TestOLaRank.h"
#include "../arma/arma_supportData.h"
bool isEqual(const arma::mat &m1, const cv::Mat &m2) {
int rows = m1.n_rows;
int cols = m1.n_cols;
int cv_ro... |
//===--- SILFunctionType.cpp - Giving SIL types to AST functions ----------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
// SoundFactory.cpp: implementation of the SoundFactory class.
//
//////////////////////////////////////////////////////////////////////
#include "SoundFactory.h"
#include "drivers/null/NullSoundEngine.h"
#include "drivers/sfml/SFMLSoundEngine.h"
///////////////////////////////////////////////////////////... |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 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/. */
... |
// nanorange/iterator/istream_iterator.hpp
//
// Copyright (c) 2018 Tristan Brindle (tcbrindle at gmail 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 NANORANGE_ITERATOR_ISTREAM_ITERATOR_HPP_INCLU... |
#include <iostream>
using namespace std;
double divide(double x, double y) throw(int) {
if (y == 0)
throw 0;
return x / y;
}
int main() {
try {
cout << divide(10, 2) << endl;
cout << divide(10, 0) << endl;
cout << divide(10, 5) << endl;
}
catch (int i) {
co... |
#pragma once
#ifdef PLATE_WEBGL
#include "webgl/shaders/object_instanced/shader.hpp"
#endif
#ifdef PLATE_LINUX_GL
#include "gl/shaders/object_instanced/shader.hpp"
#endif
#ifdef PLATE_LINUX_VULKAN
#include "vulkan/shaders/object_instanced/shader.hpp"
#endif
|
/**
Copyright 2009-2020 National Technology and Engineering Solutions of Sandia,
LLC (NTESS). Under the terms of Contract DE-NA-0003525, the U.S. Government
retains certain rights in this software.
Sandia National Laboratories is a multimission laboratory managed and operated
by National Technology and Engineering... |
#pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the Licen... |
/*
* This file belongs to the Galois project, a C++ library for exploiting parallelism.
* The code is being released under the terms of the 3-Clause BSD License (a
* copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
#ifndef CLICK_PROTOCOLTRANSLATOR64_HH
#define CLICK_PROTOCOLTRANSLATOR64_HH
#include <click/ip6address.hh>
#include <click/ipaddress.hh>
#include <click/vector.hh>
#include <click/element.hh>
CLICK_DECLS
/*
* =c
* ProtocolTranslator64()
*
*
* =s ip6
* translate IP/ICMP, TCP, and UDP packets from the IPv6 to the ... |
// Copyright (c) 2013-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.
// Unit tests for alert system
#include "alert.h"
#include "chain.h"
#include "chainparams.h"
#include "clientversion.h"
#in... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
#include<iostream>
#include "Huobi/HuobiClient.h"
using namespace Huobi;
using namespace std;
int main(int argc, char** argv) {
... |
#include <iostream> //std::cout
#include <array> //std::array
int solve_wk(int num) {
std::array<int,8> slice{{1, 1, 1, 1, 1, 1, 1, 1}};
std::array<int,8> offsets{{1, 2, 3, 4, 5, 6, 7, 8}};
for (int disp = 1; true; ++disp) {
for (int i = 0; i < 8; ++i) {
slice[i] += offsets[i];
... |
// Copyright (c) 2011-2018 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/betchip-config.h>
#endif
#include <qt/splashscreen.h>
#include <qt/networkstyle... |
//%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... |
#ifndef ACPL_I18N_CHARSETS_CHARSET_ISO_8859_1_1998_INC_CPP
#define ACPL_I18N_CHARSETS_CHARSET_ISO_8859_1_1998_INC_CPP
// WARNING: Do not modify this file because it was generated using i18nproc
#include "../../Charsets.h"
#include "../../_cp/Memory.inc.cpp"
namespace acpl
{
namespace i18n
{
class Charset_ISO_885... |
// Copyright (C) 2010 James Turner - zakalawe@mac.com
//
// 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) any later version.
//... |
#include "FEM_interface.h"
#include "GL/glut.h"
using namespace FEM;
void
GUI::
DrawWorld(const std::shared_ptr<World>& world)
{
const Eigen::VectorXd& X = world->GetPositions();
const auto& cs = world->GetConstraints();
for(const auto& c : cs)
DrawConstraint(c, X);
}
void
GUI::
DrawConstraint(const std::shared_... |
#include "StdAfx.h"
#include "LevelsManager.h"
CLevelsManager::CLevelsManager()
{
m_cFileName[ 0 ] = 0;
m_pShipsManager = new CShipsManager();
if( m_pShipsManager )
m_pShipsManager->LoadUniqueShips( NULL );
}
CLevelsManager::~CLevelsManager()
{
ClearLevels();
delete m_pShipsManager;
}
void CL... |
/* Maximum of Minima of all windows of size k
For a list of numbers,
Find the maximum of minima of all windows of size k
For example if array = [1,2,3,4,5,6]
and window size, k = 3
then
windows | minimum
[1,2,3] | 1
[2,3,4] | 2
[3,4,5] | 3
[4,5,6] | 4
Then maxim... |
#include "midgard/constants.h"
#include "midgard/logging.h"
#include "midgard/util.h"
#include "sif/autocost.h"
#include "sif/bicyclecost.h"
#include "sif/pedestriancost.h"
#include "thor/costmatrix.h"
#include "thor/optimizer.h"
#include "thor/worker.h"
using namespace valhalla;
using namespace valhalla::midgard;
usi... |
//
// Created by Ciaran on 06/02/2021.
//
#include <utility>
#include <vector>
#include <iostream>
#include "Optimizer.h"
namespace opt {
Optimizer::Optimizer(
opt::CostFunction cost, const std::vector<double> &startingValues,
const std::vector<double> &lb, const std::vector<double> &ub, ... |
#include "stdafx.h"
//-----------------------------------------------------------------------------
// Name: WndProc()
// Desc: Static msg handler which passes messages to the application class.
//-----------------------------------------------------------------------------
LRESULT CALLBACK WndProc( HWND hWnd, U... |
#include "signalFirstInternal.h"
#include <vector>
#include "config.h"
#include "sgcu/sgcu.hpp"
int main(int argc, char** argv)
{
sgcu::argumentParser<char> myP;
// Declare the supported options.
myP.desc_.add_options()
("help", "produce help message")
("input", boost::program_options::value<std::string>(), "se... |
// Copyright (c) 2015-2016 The Alphapay Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "scheduler.h"
#include "reverselock.h"
#include <assert.h>
#include <boost/bind.hpp>
#include <utility>
CSchedul... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Gtacoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "cleanse.h"
#include <openssl/crypto.h>
void memory_cleanse(void *ptr,... |
#include "MainWindow.h"
#include "TestEntity.h"
#include "ChildWindow.h"
MainWindow::MainWindow(Oculum::WindowManager* manager) : Oculum::Window(L"MainWindow", 400, 400, nullptr, manager)
{
SubscribeEvent<Oculum::ChildCloseEvent>([&](Oculum::ChildCloseEvent* e)
{
OC_INFO("Child closed with exit code %i", e->GetE... |
#include<iostream>
#include<cstdio>
#include<cctype>
#include<stack>
#pragma GCC optimize(2)
using namespace std;
//stack<char> OPTR;
//stack<double> OPND;
typedef struct node {
char data;
node *next;
}Qnode,Snode;
typedef struct Cnode {
int data;
Cnode *next;
}SnodeC;
typedef struct{
Qnode *r... |
#include <iostream>
#include <string>
#include <list>
using namespace std;
void spacer();
void test1();
void aufgabe1();
int main() {
int test;
aufgabe1();
cin >> test;
return 0;
}
void test1() {
cout << "Hello world!" << endl;
int x;
x = 5;
while (x > 0) {
spacer();
cout << "\n" << x << endl;
... |
/* 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... |
/*
* Copyright (c) 2012, Michael Lehn
*
* 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,... |
class Solution {
public:
int search(vector<int>& nums, int t) {
int n = nums.size();
int l=0, r=n-1;
if (n==0)
return -1;
while(l<=r) {
int mid = (l+r)/2, k = nums[mid];
if (k == t)
return mid;
if (... |
//===--- SemaType.cpp - Semantic Analysis for Types -----------------------===//
//
// 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) 2011-2013 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 "askpassphrasedialog.h"
#include "ui_askpassphrasedialog.h"
#include "guiconstants.h"
#include "walletmodel.h"
#inc... |
/*
Copyright 2004-2005 (c) by Aitor Viana Sanchez,
University of Alcala,
Computer Engineering Department.
For further information, please visit http://atc1.aut.uah.es
This software is provided under the terms of the GNU General Public v2
Licence. A full copy of the GNU GPL is provided in the f... |
#include <cassert>
#include "Lab7.h"
using namespace lab7;
int main()
{
std::vector<int> v1;
v1.push_back(1);
v1.push_back(2);
v1.push_back(3);
std::vector<char> v2;
v2.push_back('a');
v2.push_back('b');
v2.push_back('c');
std::vector<int> v3;
v3.push_back(4);
v3.push_back(5);
v3.push_back(6);
std::m... |
#include <atomic>
#include <iostream>
#include "gtest/gtest.h"
void atom() {
// instantiation is guaranteed to to atomic
std::atomic<int> ai(0);
// all operation are atomic
ai = 10;
// LIMITED to read operation, between read and <<
// the value could be changed.
// cout uses pass-by-value, no affect ... |
/*
* Copyright (c) 2019, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* 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/LICE... |
/*++
Module Name:
theory_str_mc.cpp
Abstract:
Model Construction for String Theory Plugin
Author:
Murphy Berzish and Yunhui Zheng
Revision History:
--*/
#include "ast/ast_smt2_pp.h"
#include "smt/smt_context.h"
#include "smt/theory_str.h"
#include "smt/smt_model_generator.h"
#include "ast/ast_pp.... |
// Copyright (c) 2011-2013 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 "sendcoinsdialog.h"
#include "ui_sendcoinsdialog.h"
#include "init.h"
#include "walletmodel.h"
#include "addresstabl... |
// license:BSD-3-Clause
// copyright-holders:Olivier Galibert
// Block device on vector<uint8_t>
#include "fsblk_vec.h"
#include "strformat.h"
#include <algorithm>
#include <stdexcept>
const uint8_t *fsblk_vec_t::blk_t::rodata()
{
return m_data;
}
uint8_t *fsblk_vec_t::blk_t::data()
{
return m_data;
}
void fsb... |
/**
* @file <argos3/plugins/simulator/entities/wifi_equipped_entity.cpp>
*
* @author Carlo Pinciroli - <ilpincy@gmail.com>
*/
#include "wifi_equipped_entity.h"
#include <argos3/core/simulator/space/space.h>
namespace argos {
/****************************************/
/**************************************... |
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the Qt Designer of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commerci... |
/**
* @file
* @brief Quick sort algorithm
*
* Implementation Details -
* Quick Sort is a divide and conquer algorithm. It picks and element as
* pivot and partition the given array around the picked pivot. There
* are many different versions of quickSort that pick pivot in different
* ways.
... |
/* 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... |
/*
* Copyright (c) 2021 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... |
#include <iostream>
using namespace std;
int main() {
int N,a[10001],f[10001];
while(1) {
cin >> N;
if(N == 0) {
break;
}
for(int i = 1;i <= N;i++) {
cin >> a[i];
}
f[1] = a[1];
for(int k = 2;k <= N; k++) {
if(f[k-1] + a[k] >= a[k]) {
f[k] = f[k-1] + a[k];
}else {
f[k] = a[k];
}
... |
/** Defines an "objective specification" object and the classes used to read and load it.
*/
#include "convar.h"
#include "asw_mission_text_database.h"
#include "KeyValues.h"
#include "filesystem.h"
#include "vstdlib/random.h"
#include "vprof.h"
// memdbgon must be the last include file in a .cpp file!!!
... |
#include "Ecologico.h"
#include "Ser.h"
#include "Jogo.h"
#include "Edificio.h"
Ecologico::Ecologico(string n, int cm, int cf,int idCar) : Caracteristica(n, cm, cf, idCar)
{
}
Ecologico::~Ecologico()
{
}
void Ecologico::fazEfeito(int p, Ser * s, Jogo *jogo)
{
if (jogo->getMundo().at(p - 1)->getEdifico() != nullptr)... |
/*
* LevelFinest.h
*
* Created on: 10.01.2015
* Author: Michael
*/
#ifndef LEVELFINEST_H_
#define LEVELFINEST_H_
#include "Level.hpp"
namespace NetworKit {
/**
* @ingroup numerics
*/
template<class Matrix>
class LevelFinest : public Level<Matrix> {
public:
LevelFinest() : Level<Matrix>(LevelType::FINE... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================
#include "pch_serverbrowser.h"
// expose the server browser interfaces
CServerBrowser g_ServerBrowserSingleton;
EXPOSE_SINGL... |
/*****************************************************************************/
/* SFileVerify.cpp Copyright (c) Ladislav Zezula 2010 */
/*---------------------------------------------------------------------------*/
/* MPQ files and MPQ archives verification. ... |
#include "llvm/Support/BlockFrequency.h"
#include "llvm/Support/BranchProbability.h"
#include "llvm/Support/DataTypes.h"
#include "gtest/gtest.h"
#include <climits>
using namespace llvm;
namespace {
TEST(BlockFrequencyTest, OneToZero) {
BlockFrequency Freq(1);
BranchProbability Prob(UINT32_MAX - 1, UINT32_MAX);
... |
#include "viruspch.h"
#include "resource.h"
#include "vrsscan.h"
#include "util.h"
#include "virusmn.h"
#include "virusfct.h"
// virumn.cpp -- autmatic registration and unregistration
//
LONG g_cDllRef = 0; // per-instance
CRITICAL_SECTION g_cs = {0}; // per-instance
HINSTANCE ... |
// 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/compiler/ast-loop-assignment-analyzer.h"
#include "src/ast/scopes.h"
#include "src/compilation-info.h"
#include "src/objects-inl.h"
names... |
/**
* 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 (c) 1999-2003 Jaakko Jarvi
Copyright (c) 2001-2011 Joel de Guzman
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... |
// Author: btjanaka (Bryon Tjanaka)
// Problem: (HackerRank) cipher
// Title: Cipher
// Link: https://www.hackerrank.com/challenges/cipher/problem
// Idea: Keep a count of how many bits we expect to see at each position. If the
// count is odd, we expect to see "1", and if the count is even, we expect to
// see "0". So... |
// 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 "device/serial/data_sink_receiver.h"
#include <limits>
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
namespace device {
... |
#include "tp_maps_ui/draw_helpers/DarkDrawHelper.h"
namespace tp_maps_ui
{
//##################################################################################################
DarkDrawHelper::DarkDrawHelper(UILayer* layer):
ThemeDrawHelper(layer, params())
{
}
//###################################################... |
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "AIModulePrivate.h"
#include "BehaviorTree/Blackboard/BlackboardKeyType_String.h"
const UBlackboardKeyType_String::FDataType UBlackboardKeyType_String::InvalidValue = FString();
UBlackboardKeyType_String::UBlackboardKeyType_String(const FObjectIni... |
#include <json5pp.hpp>
#include <ostream>
void exec(std::ostream& out)
{
auto value = json5pp::object({{"foo", "bar"}});
out << value.stringify();
}
|
#ifndef GLSHADOWMAP_HPP
#define GLSHADOWMAP_HPP
#include <GL/glew.h>
#include <GL/gl.h>
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/glm.hpp>
#include "Utils.hpp"
class GLShadowMap
{
public:
GLShadowMap(const glm::ivec2& size);
GLShadowMap(GLShadowMap const& that) = delete;
void operator=(GLShadowMap& that)... |
class Solution {
public:
/**
* @param A: An integer array.
* @param B: An integer array.
* @return: Cosine similarity.
*/
double cosineSimilarity(vector<int> A, vector<int> B) {
double Asum = 0, Bsum = 0, ABsum = 0;
for (int i = 0; i < A.size(); i++) {
double a = ... |
// Copyright (c) 2012-2017, The CryptoNote developers, The Bytecoin developers
// Copyright (c) 2018, The TurtleCoin Developers
// Copyright (c) 2019, The Lithe Project
//
// Please see the included LICENSE file for more information.
#include "WalletUtils.h"
#include "CryptoNote.h"
#include "crypto/crypto.h"
#includ... |
#include "AppHdr.h"
#ifdef USE_TILE_LOCAL
#include "tilereg-cmd.h"
#include "ability.h"
#include "cio.h"
#include "command.h"
#include "describe.h"
#include "env.h"
#include "items.h"
#include "libutil.h"
#include "macro.h"
#include "nearby-danger.h"
#include "religion.h"
#include "spl-cast.h"
#include "stringutil.h... |
// RUN: %clang_cc1 -Weverything -fsyntax-only %s -verify
// This previously crashed due to a bug in the CFG. Exercising all
// warnings helps check CFG construction.
class PR12271 {
public:
PR12271();
~PR12271();
};
void testPR12271() { // expected-warning {{no previous prototype for function 'testPR12271'}}
P... |
#include <TinyProcessLib/Process.hpp>
namespace TinyProcessLib {
Process::Process(const std::vector<string_type> &arguments, const string_type &path,
std::function<void(const char *bytes, size_t n)> read_stdout,
std::function<void(const char *bytes, size_t n)> read_stderr,
... |
#ifdef PEGASUS_OS_ZOS
#ifndef __UNIX_ZONECAPABILITIES_PRIVATE_H
#define __UNIX_ZONECAPABILITIES_PRIVATE_H
#endif
#endif
|
#ifndef STAN_MCMC_HMC_NUTS_CLASSIC_DENSE_E_NUTS_CLASSIC_HPP
#define STAN_MCMC_HMC_NUTS_CLASSIC_DENSE_E_NUTS_CLASSIC_HPP
#include <stan/mcmc/hmc/nuts_classic/base_nuts_classic.hpp>
#include <stan/mcmc/hmc/hamiltonians/dense_e_point.hpp>
#include <stan/mcmc/hmc/hamiltonians/dense_e_metric.hpp>
#include <stan/mcmc/hmc/in... |
/*
* Copyright (c) 1995-2021, Nikolay Pultsin <geometer@geometer.name>
*
* Licensed under the Apache License, Version 2.0 the "License";
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... |
/*
* Cloud-based Object Recognition Engine (CORE)
*
*/
#include <core/features/normals.h>
void
computeNormals (const pcl::search::KdTree<pcl::PointXYZRGB>::Ptr &tree,
const pcl::PointCloud<pcl::PointXYZRGB>::Ptr &cloud,
pcl::PointCloud<pcl::Normal>::Ptr &cloud_normals, float radius)... |
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
//
// popup-manager.cpp
//
#include "popup-manager.hpp"
#include "context.hpp"
#include "gui-text.hpp"
#include "layout.hpp"
#include "media.hpp"
#include "uti... |
#include "NFCAsyMysqlModule.h"
#include "NFCMysqlDriverManager.h"
bool SMysqlBaseParam::PackParam(std::string& strData)
{
try
{
NFMsg::PackMysqlParam xMsg;
xMsg.set_strrecordname(strRecordName);
xMsg.set_strkey(strKey);
xMsg.set_bexit(bExit);
xMsg.set_nreqid(nReqID);
... |
#include <sandshark_common/condition.h>
#include <cstddef>
#include <sandshark_msgs/ApplicationAbort.h>
#include <sandshark_msgs/LEDCommand.h>
namespace bluefin {
namespace sandshark {
ConditionManager *ConditionManager::_instance = NULL;
void AbortAction::createPublisher(ros::NodeHandle *node) {
_abortPub = node... |
/* This file is part of Into.
* Copyright (C) Intopii 2013.
* All rights reserved.
*
* Licensees holding a commercial Into license may use this file in
* accordance with the commercial license agreement. Please see
* LICENSE.commercial for commercial licensing terms.
*
* Alternatively, this file may be used und... |
// See LICENSE_CELLO file for license and copyright information
/// @file parameters_ParamNode.hpp
/// @author James Bordner (jobordner@ucsd.edu)
/// @date Mon May 10 12:43:27 PDT 2010
/// @brief [\ref Parameters] Node for representing parameters in a
/// tree of groups / subgroups /parameters /val... |
/* Copyright (c) 2006, NIF File Format Library and Tools
All rights reserved. Please see niflib.h for license. */
//-----------------------------------NOTICE----------------------------------//
// Some of this file is automatically filled in by a Python script. Only //
// add custom code in the designated areas o... |
#pragma once
namespace Sonar
{
class RBM // Rapid Button Masher
{
public:
/**
* \brief Class constructor
*/
RBM( const float &threshold, const float &amountToTickUp, const Time &tickDownTime, const float &tickDownAmount );
/**
* \brief Class destructor
*/
~RBM( );
/**
* \brief Get the start st... |
/*****************************************************************************
* Licensed to Qualys, Inc. (QUALYS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* QUALYS licenses this file to You under ... |
#include "LinkKinematicsKit.h"
#include "Body.h"
#include "JointPath.h"
#include "JointPathConfigurationHandler.h"
#include "CompositeBodyIK.h"
#include "HolderDevice.h"
#include "AttachmentDevice.h"
#include <cnoid/LinkCoordinateFrameSet>
using namespace std;
using namespace cnoid;
namespace cnoid {
class LinkKinem... |
// Copyright (c) 2011-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 <qt/bitcoingui.h>
#include <qt/bitcoinunits.h>
#include <qt/clientmodel.h>
#include <qt/guiconstants.h>
#include <q... |
#include<iostream>
#include<cctype>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<vector>
#include<map>
#include<queue>
#include<set>
#include<stack>
#include<cctype>
#include<cstring>
#include<utility>
const int inf=0x7fffffff;
typedef long long int ll;
using namespace std;
char w[21]=" ";
char t[100... |
// 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 "ash/autoclick/autoclick_controller.h"
#include "ash/shell.h"
#include "ash/test/ash_test_base.h"
#include "ui/aura/test/test_window_delegate.h"
... |
#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", "MachtCoin version"),
QT_TRANSLATE_NOOP("bitcoin-core", "Usage:"),
QT_TRANSLATE_NOOP("b... |
// 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 <boost/version.hpp>
#if defined(WIN32) && BOOST_VERSION == 104900
#define BOOST_INTERPROCESS_HAS_WINDOWS_KERNEL_BOOTT... |
#include "Halide.h"
#include <tiramisu/utils.h>
#include <cstdlib>
#include <iostream>
#include "wrapper_test_23.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} // extern "C"
#endif
int main(int, char **)
{
Halide::Buffer<uint8_t> reference_buf1(SIZE0, SIZE1);
Halide::Buffer<uint8_t> referen... |
// 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 "components/autofill/core/browser/ui/payments/card_name_fix_flow_controller_impl.h"
#include <utility>
#include "base/check.h"
#include "base/s... |
// Copyright (c) 2020, devgo.club
// All rights reserved.
#include <stdint.h>
#include <stdlib.h>
#include <iostream>
#include <string>
class Student
{
public:
std::string get_name() { return m_strName; };
void set_name(std::string _name) { m_strName = _name; };
int get_score() { return m_iScore; }
void stud... |
// 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 "ash/touch/touch_observer_hud.h"
#include "ash/root_window_controller.h"
#include "ash/root_window_settings.h"
#include "ash/shell.h"
#inclu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.