text stringlengths 7 961k |
|---|
//=================================================================================================
/*!
// \file src/mathtest/dmatsmatkron/SHaSCa.cpp
// \brief Source file for the SHaSCa dense matrix/sparse matrix Kronecker product math test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// ... |
//
// Copyright (c) YugaByte, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
#include "parser_pos.cpp"
Token token_end_of_line(AstFile *f, Token tok) {
u8 const *start = f->tokenizer.start + tok.pos.offset;
u8 const *s = start;
while (*s && *s != '\n' && s < f->tokenizer.end) {
s += 1;
}
tok.pos.column += cast(i32)(s - start) - 1;
return tok;
}
gbString get_file_line_as_string(TokenPo... |
//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2020 Ryo Suzuki
// Copyright (c) 2016-2020 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/String.hpp>
# include <Siv3D/... |
/*
* $Id: GuidConverter.cpp 5266 2012-01-21 04:36:48Z mitza $
*
*
* Distributed under the OpenDDS License.
* See: http://www.opendds.org/license.html
*/
#include "DCPS/DdsDcps_pch.h" //Only the _pch include should start with DCPS/
#include <iomanip>
#include <sstream>
#include "ace/ACE.h"
#include "GuidConver... |
#include <iostream>
#include "textures.hpp"
#include "game.hpp"
Textures* Textures::instance_ = 0;
bool Textures::loadFont( int fontSize ) {
if( !loadedFonts_.empty() ) {
for( unsigned int i = 0; i < loadedFonts_.size(); i++ ) {
if( fontSize == loadedFonts_[i] ) {
return true; // already loaded... |
/*
UnionPointEnergyField.hpp
computing energy values on a set of discrete points
in the jargon of [Balzer et al. SIGGRAPH 2009]
the points are shared across all classes
Li-Yi Wei
08/21/2009
*/
#ifndef _UNION_POINT_ENERGY_FIELD_HPP
#define _UNION_POINT_ENERGY_FIELD_HPP
#include "DiscreteEnergyField.hp... |
// Copyright (c) 2010 Satoshi Nakamoto
// 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 "rpcserver.h"
#include "main.h"
#include "kernel.h"
#include "checkpoints.h"
... |
//
// FILE: RunningAverage.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.2.04
// PURPOSE: RunningAverage library for Arduino
//
// The library stores the last N individual values in a circular buffer,
// to calculate the running average.
//
// HISTORY:
// 0.1.00 - 2011-01-30 initial version
// 0.1.01 - 2011-02-28 fixed... |
#include "OrderMGMT.h"
// Function to insert a new order.
// date: Date of a order.
// id: Order ID.
node *insert(node *Root, unsigned id, unsigned date)
{
node *current;
if (Root == NULL) {
current = (node *)malloc(sizeof(node));
assert(current != NULL);
data.push_back(date);
current->date = ... |
#include "Halide.h"
using namespace Halide;
int main(int argc, char **argv) {
if (!get_jit_target_from_environment().has_gpu_feature()) {
printf("[SKIP] No GPU target enabled.\n");
return 0;
}
Func f, g;
Var x, y, xi, yi;
f(x, y) = x + y;
g(x, y) = f(x, y);
// At one poin... |
// Copyright (c) Facebook, Inc. and its affiliates.
// All rights reserved.
//
// Copyright 2019 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
//
// Auto-generated file. Do not edit!
// Specification: test/s8-maxpool-m... |
// Copyright (c) 2009-2012, Andre Caron (andre.l.caron@gmail.com)
// 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
//... |
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2020 - Raw Material Software Limited
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of both the... |
//****************************************************************************
// Copyright © 2015 Jan Erik Breimo. All rights reserved.
// Created by Jan Erik Breimo on 2015-06-18.
//
// This file is distributed under the Simplified BSD License.
// License text is included with the source distribution.
//*************... |
/*
* Copyright 2006-2008 The FLWOR 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 applicable law or... |
// Copyright 2020 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/viz/service/gl/info_collection_gpu_service_impl.h"
#include <utility>
#include "base/task/post_task.h"
#include "base/task_runner_ut... |
#include <cstddef>
#include <cstdio>
using namespace std;
int
main()
{
printf("%zu\n", alignof(max_align_t));
} |
// Copyright (C) 2013, Ennio Barbaro,
// Copyright (C) 2014, Pawel Tomulik.
//
// 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)
//
// See http://sbabbi.github.io/tinympl for documen... |
// MIT Licensed (see LICENSE.md).
#pragma once
namespace Plasma
{
// Route //
/// Network Route
/// Identifies a set of link targets
class Route
{
public:
/// Constants
static const Route All;
static const Route None;
/// Constructors
Route(RouteMode::Enum mode = RouteMo... |
#ifndef ASLAM_CAMERAS_PINHOLE_PROJECTION_HPP
#define ASLAM_CAMERAS_PINHOLE_PROJECTION_HPP
#include "StaticAssert.hpp"
#include <boost/serialization/nvp.hpp>
#include <sm/PropertyTree.hpp>
#include <boost/serialization/split_member.hpp>
#include <boost/serialization/version.hpp>
#include <sm/boost/serialization.hpp>
#i... |
#include <llvm-c/Core.h>
#include <llvm-c/OrcBindings.h>
#include <llvm-c/TargetMachine.h>
#include <llvm/ExecutionEngine/ExecutionEngine.h>
#include <llvm/IR/IRBuilder.h>
#include "OrcJit.h"
DEFINE_SIMPLE_CONVERSION_FUNCTIONS(std::shared_ptr<llvm::Module>, LLVMSharedModuleRef)
DEFINE_SIMPLE_CONVERSION_FUNCTIONS(llvm... |
// 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 "net/dns/mdns_client.h"
#include "net/base/ip_address.h"
#include "net/base/net_errors.h"
#include "net/base/network_interfaces.h"
#include "net... |
#include <stdlib.h>
#include <string.h>
#include "audio.h"
namespace _sbsms_ {
audio *make_audio_buf(long n) {
return (audio*)calloc(n,sizeof(audio));
}
void free_audio_buf(audio *buf) {
free(buf);
}
long copy_audio_buf(audio *to, long off1, audio *from, long off2, long n)
{
memcpy(to+off1,from+off2,n*sizeof(... |
// Copyright (c) 2011-2020 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/bitcoin-config.h>
#endif
#include <qt/sendcoinsdialog.h>
#include <qt/forms/ui_s... |
#include "tendril/devices/directdrivesn74x164.hpp"
#include "tendril/devices/directdrivesn74x164data.hpp"
namespace Tendril::Devices {
void
DirectDriveSN74x164Data::ConstructAndRegister(HardwareManager& hw) {
// Get the pins
auto clock = hw.GetBOP(this->clockPin);
auto data = hw.GetBOP(this->dataPin);... |
//==============================================================================
// 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.
// ... |
/******************************************************************************
*
* Project: Earth Engine Data API Images driver
* Purpose: Earth Engine Data API Images driver
* Author: Even Rouault, even dot rouault at spatialys.com
*
**************************************************************************... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#include "share_client_test.hpp"
#include <algorithm>
#include <chrono>
#include <azure/storage/common/crypt.hpp>
namespace Azure { namespace Storage { namespace Files { namespace Shares { namespace Models {
bool operato... |
/**
* @file
* @copyright defined in eos/LICENSE.txt
*
* \warning This file is machine generated. DO NOT EDIT. See config.hpp.in for changes.
*/
#pragma once
namespace eosio { namespace keosd { namespace config {
const string key_store_executable_name = "keosd";
}}} |
/*
* Copyright (c) 2019, The Regents of the University of California (Regents).
* 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 a... |
// Copyright (c) 2021 steff393, MIT license
#include <Arduino.h>
#include <ArduinoJson.h>
#include <globalConfig.h>
#include <LittleFS.h>
#include <logger.h>
#include <loadManager.h>
#include <mbComm.h>
#include <pvAlgo.h>
#include <rtcvars.h>
const uint8_t m = 11;
#define WATT_MIN -100000 // 100kW Feed-in
... |
/**
* 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 License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
// Copyright 2019 The Dawn 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... |
/******************************************************************************
* textrun.cpp
* Implementation details for the CTextRun object which is our base class
* for tracking all the text (be it dictated or typed) in our product.
*
* Copyright (c) Microsoft Corporation. All rights reserved.
********... |
#include "Delta.h"
Delta::Delta()
{
count++;
N = count;
}
Delta::~Delta()
{
S = S + 3 * N - 7;
}
int Delta::Schange(int currS)
{
if (useCount == 1)
{
currS = (currS+3*N-7) / 2 - N;
if (base1)
{
currS = base1->Schange(currS);
}
if (base2)
{
currS = base2->Schange(currS);
}
}
useCount--;
re... |
// 068. Text Justification
/**
* Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified.
*
* You should pack your words in a greedy approach; that is, pack as many words as you can in each line. Pad extra spaces ' ' when necessary ... |
/*
* This file implements helper functions for generators that produce
* normally distributed pseudorandom numbers.
*/
#include "math/random/generators/rand_gen_normal.hh"
#include "math/random/sources/rand_source.hh"
namespace math {
namespace random {
namespace generators {
/*
* Imports.
*/
using math::random:... |
/*
* Copyright (C) 2005 - 2013 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2013 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2010 - 2013 ProjectSkyfire <http://www.projectskyfire.org/>
*
* Copyright (C) 2011 - 2013 ArkCORE <http://www.arkania.net/>
*
* This program is free software; ... |
// 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 "net/quic/reliable_quic_stream.h"
#include "base/logging.h"
#include "net/quic/iovector.h"
#include "net/quic/quic_bug_tracker.h"
#include "... |
//===-- MipsExpandPseudoInsts.cpp - Expand pseudo instructions ------------===//
//
// 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) 2021 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... |
#include "controller.h"
#include "board.h"
#include "view.h"
#include <iostream>
namespace ticky
{
Controller::Controller(std::shared_ptr<components::Board> board, std::shared_ptr<ticky::View> view)
{
m_board = board;
m_view = view;
}
void Controller::start_game()
{
int p... |
//
// ProcessTest.cpp
//
// $Id: //poco/1.4/Foundation/testsuite/src/ProcessTest.cpp#2 $
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "ProcessTest.h"
#include "CppUnit/TestCaller.h"
#include "CppUnit/TestSuite.h"
... |
/**
* Copyright © 2014-2019, Matthijs Möhlmann
* 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... |
// 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.
#include "rpc/server.h"
#include "rpc/client.h"
#include "base58.h"
#include "validation.h"
#include "wallet/wallet.h"
#inc... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "data/tx_invalid.json.h"
#include "data/tx_valid.json.h"
#include "test/test_steelhorsecoin.h"
#include "clientvers... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// 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-licens... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2020, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... |
// Copyright (c) 2013 The Cornellieis Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/test/unit_test.hpp>
#include <iostream>
#include "main.h"
#include "util.h"
#include "serialize.h"
#inclu... |
// Copyright 2017 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/viz/test/viz_test_suite.h"
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "base/threading/th... |
/*
* Copyright (C) 2020 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... |
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
#include "match_swc.h"
#include "neuron_utilities/resample_swc.h"
#include "neuron_utilities/sort_swc.h"
#include<iostream>
#include<set>
using namespace std;
#define VOID 1000000000
#define PI 3.14159265359
#define min(a,b) (a)<(b)?(a):(b)
#define max(a,b) (a)>(b)?(a):(b)
#define mean(a,b) (a+b)/2.0
#define dist(a,b)... |
/*
* Copyright (C) 2012 Google 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 condition... |
#include "ClassAB.h"
ClassAB::ClassAB() {
printf("Am apelat constructorul default pentru ClassAB\n");
}
ClassAB::~ClassAB() {
printf("Am apelat destructorul pentru ClassAB\n");
}
void ClassAB::printData() {
printf("Am apelat functia printData din ClassAB\n");
} |
/**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Red... |
/*******************************************************************************
* Copyright 2020 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... |
#include <iostream>
#include "word.h"
#include "hash.h"
#include "bloom.h"
#include <ncbi-vdb/NGS.hpp> // For openReadCollection
// For non-temporal memory access that bypasses the cache
#include <smmintrin.h>
#include <emmintrin.h>
using namespace std;
#define MAX_NUM_HASH 5
#define LOG_COUNT_FILTER_LEN 32
#def... |
//=================================================================================================
/*!
// \file src/mathtest/dvecsvecmult/V2aVCb.cpp
// \brief Source file for the V2aVCb dense vector/sparse vector multiplication math test
//
// Copyright (C) 2013 Klaus Iglberger - All Rights Reserved
//
// This fil... |
#include "routing/road_graph_router.hpp"
#include "routing/bicycle_directions.hpp"
#include "routing/features_road_graph.hpp"
#include "routing/nearest_edge_finder.hpp"
#include "routing/pedestrian_directions.hpp"
#include "routing/route.hpp"
#include "routing/routing_helpers.hpp"
#include "routing_common/bicycle_mod... |
// Copyright (c) 2011-2014 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 "rpcconsole.h"
#include "ui_rpcconsole.h"
#include "clientmodel.h"
#include "guiutil.h"
#include "peertablemodel.h"... |
// a799 : 正值國
#include <cstdio>
int main()
{
int n;
while( scanf("%d", &n )!=EOF )
printf("%d\n", n*(n>0) + -n*(n<0) );
return 0;
} |
// Copyright (c) 2020 - 2021 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2020 - 2021 by Apex.AI 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
/... |
#include <icetray/serialization.h>
#include <dataclasses/physics/I3EventHeader.h>
#include <limits>
I3EventHeader::I3EventHeader()
: runID_(std::numeric_limits<unsigned int>::max()),
subRunID_(std::numeric_limits<unsigned int>::max()),
eventID_(std::numeric_limits<unsigned int>::max()),
subEventID_(0),... |
#include "../src/interface.hpp"
#include <iostream>
int main(int argc, char** argv)
{
pname = argv[0];
class interface::interface iflist;
int i;
for (i=0; i<iflist.listsize(); i++) {
std::cout << iflist.name(i) << std::endl;
std::cout << iflist.addr(i) << std::endl;
std::cout <... |
// Copyright 2020 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/passwords/well_known_change_password_navigation_throttle.h"
#include "base/logging.h"
#include "chrome/browser/password_manag... |
/*
* 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 ma... |
//============================================================================
// Test for Object tracker
//
// 2014 by Hagen Pache
// https://github.com/beardedN5rd
//============================================================================
#include <ObjectTracker.hpp>
#define BOOST_TEST_MODULE ObjectTracker
... |
// This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited.
#include "storage/tablet_reader.h"
#include "column/datum_convert.h"
#include "common/status.h"
#include "gutil/stl_util.h"
#include "service/backend_options.h"
#include "storage/aggregate_iterator.h"
#include "storage/... |
#include "stdafx.h"
#include "DefaultFadePlugin.h"
#include "Engine/Models/Plugins/ParamValModel/ParamValEvaluatorFactory.h"
#include "Engine/Interfaces/IValue.h"
#include "Engine/Models/Plugins/Channels/Geometry/AttributeChannel.h"
#include "Engine/Models/Plugins/Channels/Geometry/AttributeChannelDescriptor.h"
#incl... |
/** @file
A brief file description
@section license License
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 und... |
/**
* @file GLTextureWrapper.hpp
* @author Shinjihong
* @date 01 October 2018
* @version 1.0.0
* @brief OpenGL Texture Wrapper class (multi-texture version)
* @details OpenGL Texture Wrapper class with multi-texture (atalas features) enabled. But, not implemented yet.
* @see
*/
#ifndef GL_TEXTURE_WRAPPER_HPP
#def... |
/**
* @file decomposeHomographyMat.cpp
* @brief mex interface for cv::decomposeHomographyMat
* @ingroup calib3d
* @author Amro
* @date 2015
*/
#include "mexopencv.hpp"
using namespace std;
using namespace cv;
namespace {
/** Create a new MxArray from decomposed homography matrix.
* @param rotations Array of rot... |
/*!
@file
Defines `boost::hana::extract`.
@copyright Louis Dionne 2013-2016
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_EXTRACT_HPP
#define BOOST_HANA_EXTRACT_HPP
#include <boost/hana/fwd/extract.hpp>... |
#pragma once
#include <murk/span.hpp>
#include <boost/asio/ip/udp.hpp>
#include <boost/signals2.hpp>
namespace murk::xflt {
class dns {
public:
struct request {
std::string req;
std::string type;
};
private:
boost::asio::ip::udp::socket sock;
std::array<uint8_t, 512> buf;
boo... |
// 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 "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
#include "bitcoinunits.h"
#include "addressbo... |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
//-*****************************************************************************
//
// Copyright (c) 2009-2011,
// Sony Pictures Imageworks, Inc. and
// Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with... |
/**
* @file Accumulator.cpp
*
* @brief Accumulator and AccumulatorWitness classes for the Zerocoin library.
*
* @author Ian Miers, Christina Garman and Matthew Green
* @date June 2013
*
* @copyright Copyright 2013 Ian Miers, Christina Garman and Matthew Green
* @license This project is... |
// Copyright (c) 2009-2021 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
// Maintainer: jglaser
/*! \file MemoryTraceback.cc
\brief Implements a class to track memory allocations
*/
#include "MemoryTraceback.h"
#include <cxxabi... |
#ifndef __ODE45_HPP__
#define __ODE45_HPP__
#include <iomanip>
template<typename F, typename U, size_t N>
void ODE45<F,U,N>::set(const std::string& name, const double value)
{
if ( name == "relative error" )
{
_rtol = value;
_threshold = _atol / _rtol;
}
else if ( name == "absolute err... |
// Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#include <java/security/Provider.hpp>
#include <java/lang/String.hpp>
template<typename ComponentType, typename... Bases> struct SubArray;
namespace java
{
namespace io
{
typedef ::SubArray< ::java::io::Serializa... |
/**
* @file crsf.cpp
* @brief Handle Crossfire protocol.
*
* @author Varadi, Gyorgy, aka bodri
* Contact: bodri@bodrico.com
*
* @bug No known bugs.
*
* MIT license, all text above must be included in any redistribution
*
*/
#include "crsf.h"
#include "radio/transmittersensor.h"
#include "radio/receiversenso... |
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved
#include "RPCInInterfaceActor.h"
ARPCInInterfaceActor::ARPCInInterfaceActor()
{
PrimaryActorTick.bCanEverTick = false;
bAlwaysRelevant = true;
bReplicates = true;
}
void ARPCInInterfaceActor::RPCInInterface_Implementation()
{
bRPCReceived = true;
} |
// Copyright (c) 2012-2014 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 "clientversion.h"
#include "tinyformat.h"
#include <string>
/**
* Name of client reported in the 'version' messa... |
#include <DataStreams/OneBlockInputStream.h>
#include <DataStreams/materializeBlock.h>
#include <DataTypes/DataTypeAggregateFunction.h>
#include <Parsers/ASTFunction.h>
#include <Parsers/ASTIdentifier.h>
#include <Parsers/ASTLiteral.h>
#include <Parsers/ASTOrderByElement.h>
#include <Parsers/ASTSelectWithUnionQuery.h... |
/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019
Vladimír Vondruš <mosra@centrum.cz>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
... |
/*++
Copyright (C) 2018 3MF Consortium
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 and the followi... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
#include <cctype>
#include <set>
using namespace std;
char turn;
vector<string> B;
int transform_row;
bool valid(int i, int j) {
if (i<0 || j<0 || i>=8 || j>=8) {... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkPyramid.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 is di... |
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2021 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2... |
/*******************************************************************************
* Copyright (c) 2000, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://ec... |
// Copyright 2009-2019 NTESS. Under the terms
// of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
//
// Copyright (c) 2009-2019, NTESS
// All rights reserved.
//
// This file is part of the SST software package. For license
// information, see the LICENSE file in the ... |
// Copyright (C) 2020-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <vector>
#include <ngraph/opsets/opset3.hpp>
#include "single_layer_tests/space_to_depth.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace ngraph::opset3;
namespa... |
/* Copyright 2016 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... |
#ifndef _YEAH_MEASURING_SAMPLING_SHELL_MICSMC_HPP_
#define _YEAH_MEASURING_SAMPLING_SHELL_MICSMC_HPP_
#include <cstdio>
#include <cstdlib>
#include <yeah/measuring/sampling/base.hpp>
namespace yeah {
namespace measuring {
namespace sampling {
class ShellMicsmcPower0 : public yeah::measuring::sampling::Base0<float... |
// Copyright 2008 by BBN Technologies Corp.
// All Rights Reserved.
#include "Generic/common/leak_detection.h"
#include "Chinese/descriptors/ch_DescriptorClassifier.h"
#include "Chinese/descriptors/ch_PMDescriptorClassifier.h"
#include "Generic/theories/Entity.h"
#include "Generic/theories/Mention.h"
#include "Generi... |
/* Apache License, Version 2.0 */
#include "BLI_strict_flags.h"
#include "BLI_vector.hh"
#include "testing/testing.h"
#include <forward_list>
namespace blender::tests {
TEST(vector, DefaultConstructor)
{
Vector<int> vec;
EXPECT_EQ(vec.size(), 0);
}
TEST(vector, SizeConstructor)
{
Vector<int> vec(3);
EXPECT_... |
// Copyright 2019 DeepMind Technologies 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 require... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.