text stringlengths 7 961k |
|---|
/*************************************************************************
* * Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
* * *
* * Author: The ALICE Off-line Project. *
* * Contri... |
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018 www.open3d.org
//
// Permissio... |
// 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/cast/test/linux_output_window.h"
#include "base/logging.h"
#include "third_party/libyuv/include/libyuv/convert.h"
namespace media {
name... |
// Copyright 2016 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 "core/layout/ng/geometry/ng_physical_size.h"
#include "core/layout/ng/geometry/ng_logical_size.h"
#include "platform/wtf/text/WTFString.h"
name... |
#pragma once
#include "Common/binary_tree.h"
//! stability checker for binary tree
template <class Tptcl>
class Stability {
public:
typedef COMM::BinaryTree<Tptcl,COMM::Binary> BinTree;
typedef COMM::Binary Bin;
PS::F64 t_crit; // period criterion to determine stabili... |
//==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
/*
*
* Copyright (C) 2009-2015, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmnet
*
* Author: Michael O... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkXMLDataParser.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software... |
//
// Copyright (c) 2016 The ANGLE 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.
//
// validationES31.cpp: Validation functions for OpenGL ES 3.1 entry point parameters
#include "libANGLE/validationES3.h"
#include "libANGL... |
/*RMID2 - Running Median Again
#tree #heap #binary-search #priority-queue
Danish has just solved the problem Running Median.
The first line of the problem says "You will be given some integers in non-decreasing order". The problem asks you to report and remove the median of the list every time it is queried.
Having ... |
/*=========================================================================
*
* 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... |
#include <stdio.h>
#include "myio.h"
void printColorString(int x, int y, int color, char * str) {
if ((color >= 40 && color <= 47) || color == 0) {
gotoxy(x, y);
printf("\033[%dm%s\033[0m", color, str);
}
}
void printColorString(int x, int y, int color, const char * str) {
if ((color >= 40 && color <= 47) || c... |
//==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
/*
* Copyright (C) 2018 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 appl... |
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bip38.h"
#include "init.h"... |
#include <iostream>
using namespace std;
int main() {
char *month[] = {"imix", "ik", "akbal", "kan", "chicchan", "cimi", "manik", "lamat", "muluk", "ok", "chuen", "eb",
"ben", "ix", "mem", "cib", "caban", "eznab", "canac", "ahau"};
int n;
cin >> n;
cout << n << endl;
while (n-... |
// Generated by Haxe 4.0.0-rc.2+77068e10c
#include <hxcpp.h>
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_lime_graphics_opengl_GLObject
#include <lime/graphics/opengl/GLObject.h>
#endif
#ifndef INCLUDED_lime_utils_ArrayBufferView
#include <lime/utils/ArrayBufferView.h>
#endif
#ifnd... |
// Copyright 2016 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/ui/webui/md_feedback/md_feedback_ui.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/url_constants.h"
#in... |
/*
Copyright (c) 2017-2020,
Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable
Energy, LLC. See the top-level NOTICE for additional details. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include "Inputs.hpp"
#include <array>
#include <string... |
#include <iostream>
#include <iomanip>
#include <memory>
#include <vector>
#include <unistd.h>
#define VERBOSE (0)
#include "axonerve_kvs.hpp"
namespace Axonerve{
void AxonerveKVS::emit_task(std::vector<axonerve_query,aligned_allocator<axonerve_query>>& buf){
int size = buf.size();
size_t vector_size_by... |
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2017-2018 The TittieCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "obfuscation.h"
#inc... |
// Copyright (c) 2006- Facebook
// Distributed under the Thrift Software License
//
// See accompanying file LICENSE or visit the Thrift site at:
// http://developers.facebook.com/thrift/
#include <string>
#include <fstream>
#include <iostream>
#include <vector>
#include <stdlib.h>
#include <sys/stat.h>
#include <sst... |
// 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.
#define BOOST_TEST_MODULE Arc Test Suite
#include "test_arc.h"
#include "chainparams.h"
#include "consensus/consensus.h"
#i... |
// File doc/quickbook/oglplus/quickref/enums/blend_equation_advanced_class.hpp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/blend_equation_advanced.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2019 Matus Chochlik.
// Distri... |
#include "edge.h"
void Dictionary::Add(MonoObject* _this, const char* name, MonoObject* value)
{
static MonoMethod* add;
if(!add) {
add = mono_class_get_method_from_name(mono_object_get_class(_this),
"System.Collections.Generic.IDictionary<string,object>.Add", -1);
}
void* pa... |
#ifndef ASSETCACHE_H
#define ASSETCACHE_H
#include <memory>
#include <unordered_map>
#include <SFML/Graphics.hpp>
class AssetMissingException : public std::exception {
public:
AssetMissingException(const std::string& assetFile) :
m_message("Cannot load file: " + assetFile) {}
const char *what() c... |
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com>
// Copyright (C) 2015 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a cop... |
#pragma once
template<class U, class T>
inline bool IsBitOn(U& data, T bitNumber)
{
return (data & (1 << bitNumber)) > 0;
}
template<class U, class T>
inline void BitOn(U& data, T bitNumber)
{
data |= (1 << bitNumber);
}
template<class U, class T>
inline void BitOff(U& data, T bitNumber)
{
data &= ~(1 <<... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018-2019 The AXEL Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/license... |
#include "duckdb/storage/table/column_data_checkpointer.hpp"
#include "duckdb/main/config.hpp"
#include "duckdb/storage/table/update_segment.hpp"
namespace duckdb {
ColumnDataCheckpointer::ColumnDataCheckpointer(ColumnData &col_data_p, RowGroup &row_group_p,
ColumnCheckp... |
// 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 "base/big_endian.h"
#include "base/bind.h"
#include "base/logging.h"
#include "base/memory/scoped_refptr.h"
#include "net/base/privacy_mode.h"
#i... |
#include <numeric>
#include <pichi/common/asserts.hpp>
#include <pichi/common/literals.hpp>
#include <pichi/vo/credential.hpp>
#include <pichi/vo/keys.hpp>
#include <pichi/vo/messages.hpp>
#include <pichi/vo/parse.hpp>
#include <pichi/vo/to_json.hpp>
using namespace std;
namespace json = rapidjson;
using Allocator = j... |
// 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 "serialize.h"
#include "streams.h"
#include "hash.h"
#include "test/test_BTS.h"
#include <stdint.h>
#include <boos... |
/*****************************************************************************
FFTReal.hpp
By Laurent de Soras
--- Legal stuff ---
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms of the D... |
// Copyright 2021 Bessolitsyn Sergey
#include <random>
#include "../../../modules/task_2/bessolitsyn_s_quick_sort/quick_sort.h"
std::vector<int> getRandomVector(int size, uint64_t seed) {
std::vector<int> vec(size);
std::mt19937 gen;
gen.seed(seed);
for (int i = 0; i < size; ++i) {
vec[i] = g... |
version https://git-lfs.github.com/spec/v1
oid sha256:67e687ebe1d60b6779a598a863f521c85bcdfd2d5bee6dcec68a8005e2d6d722
size 2496 |
#include "../include/writer.h"
#include <cstdio>
tar7z::Error tar7z::Writer::write(const std::string& filename, const tar7z::Archive& ar)
{
FILE* file = fopen(filename.c_str(), "wb");
if (!file)
{
return tar7z::Error::T7ZE_CANNOT_OPEN_FILE;
}
if (ar.Contents.size() != 0)
{
int r... |
// Copyright (c) 2018, ETH Zurich and UNC Chapel Hill.
// 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
// notic... |
// 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 "optionsdialog.h"
#include "ui_optionsdialog.h"
#include "bitcoinunits.h"
#include "monitoreddatamapper.h"
#include ... |
#include "StdAfx.h"
#pragma hdrstop
#ifndef DEBUG_MEMORY_MANAGER
void xrMemory::dbg_register (void* _p, size_t _size, const char* _name) { }
void xrMemory::dbg_unregister (void* _p) { }
void xrMemory::dbg_check () { }
#else // DEBUG_MEMORY_MANAGER
# if 0
# define DEBUG_MEMORY_LEAK
# define ME... |
// Copyright 2021 Christophe Bedard
//
// 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 ... |
#include "gyuanxmq/batch.h"
#include "common.h"
#include <future>
TEST_CASE("tagged thread start functions", "[tagged][start]") {
gyuanxmq::GyuanxMQ lmq{get_logger(""), LogLevel::trace};
lmq.set_general_threads(2);
lmq.set_batch_threads(2);
auto t_abc = lmq.add_tagged_thread("abc");
std::atomic<bo... |
#include <numpy_eigen/boost_python_headers.hpp>
#include <sm/timing/NsecTimeUtilities.hpp>
void exportNsecTime() {
using namespace boost::python;
using namespace sm::timing;
def("nsecNow", &nsecNow);
/// \brief Get the epoch time as nanoseconds since the epoch.
/// NsecTime nsecNow();
/// \br... |
#include "vest.h"
extern CRGB leds[NUM_LEDS];
// COOLING: How much does the air cool as it rises?
// Less cooling = taller flames. More cooling = shorter flames.
// Default 50, suggested range 20-100
#define COOLING 127
// SPARKING: What chance (out of 255) is there that a new spark will be lit?
// Higher chance... |
/// \file
// Range v3 library
//
// Copyright Eric Niebler 2014-present
// Copyright Casey Carter 2016
//
// Use, modification and distribution is 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)
//
// Project home... |
/*=========================================================================
*
* 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
*
* https://www.apache.o... |
/***
DEVSIM
Copyright 2013 Devsim 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 in writing, soft... |
/*
* Copyright (c) 2014-2015, Hewlett-Packard Development Company, LP.
* 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 versi... |
/*
*
* Copyright (c) 2013-2017 Nest Labs, 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... |
// Copyright (c) 2018 The Lqx Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bench.h"
#include "random.h"
#include "bls/bls_worker.h"
#include "utiltime.h"
#include <iostream>
CBLSWorker blsWorker;
... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//*****************************************************************************
// File: RCThread.cpp
//
//
// Runt... |
/*========================================================================
VES --- VTK OpenGL ES Rendering Toolkit
http://www.kitware.com/ves
Copyright 2011 Kitware, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Y... |
// 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/extensions/api/webstore_private/webstore_private_api.h"
#include "base/bind_helpers.h"
#include "base/command_line.h"
#inclu... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/utils/Outcome.h>
#include <aws/core/auth/AWSAuthSigner.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/core/client/RetryStrategy.h>
#include <aws/core/http/HttpClient.h>
#i... |
// Copyright 2006 Google Inc.
// All Rights Reserved.
// Author: renn
//
// The fscanf, vfscanf and creat functions are implemented so that their
// functionality is mostly like their stdio counterparts. However, currently
// these functions do not use any buffering, making them rather slow.
// File streams are thus pr... |
/*
* Copyright (c) 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 Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publis... |
#ifndef WF_CORE_CORE_IMPL_HPP
#define WF_CORE_CORE_IMPL_HPP
#include "wayfire/core.hpp"
#include "wayfire/util.hpp"
#include <set>
#include <unordered_map>
extern "C"
{
struct wlr_egl;
struct wlr_compositor;
struct wlr_surface;
}
class input_manager;
class input_method_relay;
struct wayfire_shell;
struc... |
// -----------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2019, Knut Reinert & Freie Universität Berlin
// Copyright (c) 2016-2019, Knut Reinert & MPI für molekulare Genetik
// This file may be used, modified and/or redistributed under the terms of th... |
// -*- C++ -*-
// Copyright (C) 2005-2021 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the terms
// of the GNU General Public License as published by the Free Software
// Foundation; either version 3... |
//
// Created by kevin on 11/19/20.
//
#pragma once
#include <experiment/Configuration.hpp>
#include <forward_list>
#include <limits>
#include <ostream>
#include <string>
#include <sstream>
#include <vector>
#include "GridWorld.hpp"
#include "SuccessorBundle.hpp"
namespace metronome {
/**
* Implementation of IPC E... |
/*-----------------------------------------------------------
particle class members
-----------------------------------------------------------*/
#include "particle.h"
void particle::update(int ms)
{
position += (velocity*ms)/1000.0;
velocity(1) -= (4.0*ms)/1000.0; //(9.8*ms)/1000.0;
} |
/*******************************************************************************
* This file was auto-generated using the AutoGemm.py python script.
* DO NOT modify this file! Instead, make changes to scripts in
* clBLAS/src/library/blas/AutoGemm/ then re-generate files
* (otherwise local changes will be lost a... |
#include "json_mo_writer.h"
#include "json_mo_parser.h"
#include <tinfra/tstring.h>
#include <tinfra/tcp_socket.h>
#include <tinfra/memory_stream.h>
#include <tinfra/mo.h>
#include <tinfra/fmt.h>
#include <tinfra/logger.h>
#include <tinfra/stream.h>
#include <memory> // for unique_ptr
#include <vector>
//
// deploy_a... |
#include "system_single_integrator.h"
#include <cmath>
#include <cstdlib>
#include <iostream>
using namespace std;
using namespace SingleIntegrator;
#define DISCRETIZATION_STEP 0.01
region::region () {
numDimensions = 0;
center = NULL;
size = NULL;
}
region::~region () {
if (center... |
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT A... |
#pragma once
#include "aios.h"
#include <mutex>
#include <functional>
#include <memory>
#include <vector>
namespace Amber
{
class GroupFeedback;
class GroupCommand;
using GroupFeedbackHandler = std::function<void(const GroupFeedback &)>;
/**
* @brief Represents a group of physical Amber actuator, and allows Comma... |
////////////////////////////////////////////////////////////////////////////
// Module : property_editor_file_name.cpp
// Created : 07.12.2007
// Modified : 11.12.2007
// Author : Dmitriy Iassenev
// Description : property editor file name class
////////////////////////////////////////////////////////////////////... |
// { dg-require-namedlocale "en_US.ISO8859-1" }
// { dg-require-namedlocale "fr_FR.ISO8859-15" }
// { dg-require-fork "" }
// { dg-require-mkfifo "" }
// 2004-01-11 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2004-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This l... |
<<<<<<< HEAD
/* Copyright 2015 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 applic... |
// expression_parser_geo.cpp
/**
* Copyright (C) 2013 10gen 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 t... |
/*
* Copyright (C) 2008 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
/************************************************************
*
* OTCronItem.cpp
*
*/
/************************************************************
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
* OPEN TRANSACTIONS
*
* Financial Cryptography and Digital Cash
* Library, Protocol, ... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... |
/****************************************************************************
** Meta object code from reading C++ file 'transactiondesc.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************... |
//===----------------------------------------------------------------------===//
//
// Peloton
//
// ddl.cpp
//
// Identification: src/backend/bridge/ddl/ddl.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===-------------------------------------------------------... |
#include "RecoTracker/DebugTools/interface/FTSFromSimHitFactory.h"
#include "SimDataFormats/TrackingHit/interface/PSimHit.h"
#include "Geometry/CommonDetUnit/interface/GeomDet.h"
#include "TrackingTools/TrajectoryParametrization/interface/GlobalTrajectoryParameters.h"
#include <algorithm>
FreeTrajectoryState FTSFromSi... |
// Copyright Benoit Blanchon 2014-2017
// MIT License
//
// Arduino JSON library
// https://bblanchon.github.io/ArduinoJson/
// If you like this project, please add a star!
#include <catch.hpp>
#include <limits>
#include <string>
#include <ArduinoJson/Serialization/DynamicStringBuilder.hpp>
#include <ArduinoJson/Seri... |
#pragma once
#include "message.hh"
namespace eclipse {
namespace messages {
struct MetaData: public Message {
std::string get_type() const override;
std::string name;
std::string content;
std::string node;
};
}
} |
/**
* @file MPFloat.hpp
* @author Minmin Gong
*
* @section DESCRIPTION
*
* This source file is part of Dilithium
* For the latest info, see https://github.com/gongminmin/Dilithium
*
* @section LICENSE
*
* The MIT License (MIT)
*
* Copyright (c) 2017 Minmin Gong. All rights reserved.
*
* Permission is her... |
/*
* GridTools
*
* Copyright (c) 2014-2020, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#ifndef INCLUDED_GHEX_CUDA_ERROR_HPP
#define INCLUDED_GHEX_CUDA_ERROR_HPP
#ifdef __CUDACC__
#include <stdexcept>
#include... |
/*
* Copyright (c) 2020 Blue Brain Project
*
* 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)
*
*/
#pragma once
#include "H5Utils.hpp"
namespace HighFive {
namespace details {
template <typen... |
/**
* Copyright (c) 2020 ZxyKira
* All rights reserved.
*
* SPDX-License-Identifier: MIT
*/
#ifndef MCUF_E052FF6F_B370_4FEE_8D98_DE8F6F181205
#define MCUF_E052FF6F_B370_4FEE_8D98_DE8F6F181205
/* ****************************************************************************************
* Include
*/
#include ".... |
// Copyright Aleksey Gurtovoy 2001-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_1_0.txt)
//
// Preprocessed version of "Utilogeny/lib/boost/mpl/aux_/full_lambda.hpp" header
// -- DO NOT modify by hand!
name... |
#ifndef __PML_COMPLEX___
#define __PML_COMPLEX___
#include <cmath>
#include <string>
const std::string I_SYMBOL = "\u03B9";
class complex
{
public:
double a;
double b;
complex(double a = 0, double b = 0)
{
this->a = a;
this->b = b;
}
complex(const complex& other)
{
... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/DynArray.hpp>
#include <RED4ext/Handle.hpp>
#include <RED4ext/Scripting/Natives/Generated/Vector4.hpp>
#include <RED4ext/Scripting/Natives/Generated/game/data/StimPropagation.hpp>
... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are perm... |
// Original Code: Copyright (c) 2012-2014 The Bitcoin Core Developers
// Modified Code: Copyright (c) 2014 Project Bitmark
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "util.h"
#include <boost/test/unit_test.hpp... |
// Copyright (c) 2011 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 file contains the code to apply a Courgette patch.
#include "courgette/ensemble.h"
#include <stddef.h>
#include <stdint.h>
#include "base/f... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
/*
===== client.cpp ========================================================
client/server game specific stuff
*/
#in... |
/*
* (C) 2014,2015 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include "tests.h"
#if defined(BOTAN_HAS_ELGAMAL)
#include <botan/elgamal.h>
#include "test_pubkey.h"
#endif
namespace Botan_Tests {
namespace {
#if defined(BOTAN_HAS_ELGAMAL)
class ElGamal_KAT_Tests : pu... |
// Copyright 2022 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <tagEMR.hpp>
START_ATF_NAMESPACE
struct tagEMRRESIZEPALETTE
{
tagEMR emr;
unsigned int ihPal;
unsigned int cEntries;
};
END... |
#include <gtest/gtest.h>
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
} |
#include "SHA1.h"
#ifdef WIN32
static char *szCompiledFile=__FILE__;
class init_sha1 {
public:
BCRYPT_ALG_HANDLE algo;
init_sha1() {
if (BCryptOpenAlgorithmProvider(&algo, BCRYPT_SHA1_ALGORITHM, MS_PRIMITIVE_PROVIDER, 0) != 0)
throw logged_error("Errore nell'inizializzazione dell'algoritmo SHA1");
}
~init... |
#include <cmath>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <ctime>
#include <algorithm>
#include <vector>
#include "vtr_assert.h"
#include "vtr_util.h"
#include "vtr_memory.h"
#include "vtr_math.h"
#include "vtr_log.h"
#include "vtr_time.h"
#include "vpr_types.h"
#include "vpr_utils.h"
#include "... |
#pragma once
#include <functional>
#include "binop.cpp"
int prod(int a, int b) {
return binop(std::multiplies<int>(), a, b);
} |
/*
* Copyright (c) 2013-2014 Chun-Ying Huang
*
* This file is part of GamingAnywhere (GA).
*
* GA is free software; you can redistribute it and/or modify it
* under the terms of the 3-clause BSD License as published by the
* Free Software Foundation: http://directory.fsf.org/wiki/License:BSD_3Clause
*
* GA is ... |
//===-- AsmPrinter.cpp - Common AsmPrinter code ---------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE23_Relative_Path_Traversal__char_console_w32CreateFile_72b.cpp
Label Definition File: CWE23_Relative_Path_Traversal.label.xml
Template File: sources-sink-72b.tmpl.cpp
*/
/*
* @description
* CWE: 23 Relative Path Traversal
* BadSource: console Read input from the conso... |
// Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.