text stringlengths 7 961k |
|---|
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 The StintCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mi... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
#include "test_utils.hpp"
#include "struct/splay_segtree.hpp"
#include "struct/splay_segnodes.hpp"
#include "numeric/modnum.hpp"
void stress_test_sum_splay_segtree() {
constexpr int N = 200;
LOOP_FOR_DURATION (5s) {
vector<int> arr(N);
splay_segtree<sum_segnode<int>> st(0, N);
boold c... |
#include "Aether/base/Texture.hpp"
#include "Aether/base/Texture.RenderJob.hpp"
#include "Aether/ThreadPool.hpp"
namespace Aether {
Texture::Texture(const int x, const int y) : Element(x, y, 0, 0) {
this->asyncID = 0;
this->onRenderDoneFunc = nullptr;
this->status = AsyncStatus::Waiting;
... |
#ifndef PYTHONIC_INCLUDE_CMATH_PI_HPP
#define PYTHONIC_INCLUDE_CMATH_PI_HPP
#include "pythonic/include/utils/functor.hpp"
#include "pythonic/include/types/complex.hpp"
#include <cmath>
namespace pythonic
{
namespace cmath
{
double constexpr pi = std::atan(1) * 4;
}
}
#endif |
//
// Copyright (c) 2008-2019 the Urho3D project.
//
// 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, m... |
// 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.
/*++
Module Name:
process.cpp
Abstract:
Implementation of process object and functions related to proc... |
/*
* Copyright (C) 2018 Microchip Technology Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <egt/ui>
int main(int argc, char** argv)
{
egt::experimental::LuaApplication app(argc, argv);
// do nothing - run some lua instead
return app.run();
} |
// Copyright (c) 2011-2013 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 "key.h"
#include "keystore.h"
#include "policy/policy.h"
#include "script/script.h"
#include "script/script_error.h"... |
/*
* Copyright (c) 2014 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
/*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@generated from testing_ztrsm.cpp normal z -> d, Fri Jan 30 19:00:23 2015
@author Chongxiao Cao
*/
// includes, system
#include <stdlib.h... |
// Copyright (c) 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 "crypto/sha256.h"
#include "crypto/common.h"
#include <string.h>
// Internal implementation code.
namespace
{
/// Inte... |
// (C) Copyright David Abrahams 2002.
// (C) Copyright Jeremy Siek 2002.
// (C) Copyright Thomas Witt 2002.
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_FILTER_ITERATOR_23022003THW_HPP
#def... |
#include <boost/optional/optional.hpp>
#include <boost/range/adaptor/indexed.hpp>
#include <gtest/gtest.h>
#include <rapidjson/document.h>
#include <rapidjson/writer.h>
#include <vector>
#include "byte_stream.h"
#include "crypto/hash.h"
#include "cryptonote_basic/account.h"
#include "cryptonote_basic/cryptonote_basic.... |
// 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 may... |
#include "map.h"
#include "data/clientGeoJsonSource.h"
#include "debug/textDisplay.h"
#include "debug/frameInfo.h"
#include "gl.h"
#include "gl/glError.h"
#include "gl/framebuffer.h"
#include "gl/hardware.h"
#include "gl/primitives.h"
#include "gl/renderState.h"
#include "gl/shaderProgram.h"
#include "labels/labels.h"... |
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
double mouth_out;
double total = 0.0;
for (int i = 0; i < 12; i++) {
cin >> mouth_out;
total += mouth_out;
}
cout << "$" << setiosflags(ios::fixed) << setprecision(2) << total /12 << endl;
return 0;
} |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2015 Facebook, Inc. (http://www.facebook.com) |
+---------... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "txdb.h"
#include "chainparams.h"
#include "hash.h"
#include "random.h"... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <ScriptAutomationSystemComponent.h>
#include <ScriptAutomationScriptBindings.h>
#includ... |
/******************************************************************************
* Copyright 2020 The Apollo 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
... |
/****************************************************************************/
/**
* @file BitImage.cpp
*/
/*----------------------------------------------------------------------------
*
* Copyright (c) Visualization Laboratory, Kyoto University.
* All rights reserved.
* See http://www.viz.media.kyoto-u.ac.j... |
//
// Created by Andrey Tabakov on 08/10/2018.
//
#include <iostream>
#include "RelaxedStack.h"
RelaxedStack::RelaxedStack(int stackSize, int stacksNum) : stacksNum(stacksNum) {
stacks = new int *[stacksNum];
for (int i = 0; i < stacksNum; ++i) {
stacks[i] = new int[stackSize]{0};
}
positions ... |
/*
* Copyright (C) 2008, 2013 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 c... |
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
/***********************************************************************************************************************
* *
* libscopeprotocols ... |
// Listing 11.20
// stonewt.cpp -- Stonewt class methods + conversion functions
#include <iostream>
using std::cout;
#include "stonewt1.h"
// construct Stonewt object from double value
Stonewt::Stonewt(double lbs)
{
stone = int(lbs) / Lbs_per_stn;
pds_left = int(lbs) % Lbs_per_stn + lbs - int(lbs);
pounds = l... |
// 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 "base/android/trace_event_binding.h"
#include <jni.h>
#include <set>
#include "base/android/jni_string.h"
#include "base/lazy_instance.h"
#inc... |
////////////////////////////////////////////////////////////////////////////
// Module : object_factory_register.cpp
// Created : 27.05.2004
// Modified : 27.05.2004
// Author : Dmitriy Iassenev
// Description : Object factory
////////////////////////////////////////////////////////////////////////////
#include ... |
/*
* Copyright (c) 2021, Ali Mohammad Pur <mpfard@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibCore/File.h>
#include <LibTest/JavaScriptTestRunner.h>
#include <LibWasm/AbstractMachine/BytecodeInterpreter.h>
#include <LibWasm/Types.h>
TEST_ROOT("Userland/Libraries/LibWasm/Tests");
TES... |
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "gtest/gtest.h"
#include "ngraph/ngraph.hpp"
#include "util/type_prop.hpp"
using namespace std;
using namespace ngraph;
TEST(type_prop, swish) {
auto data = make_shared<op::Parameter>(element::f32, Shape{1, 3, 6});
... |
#ifndef BOOST_MPL_AUX_CONFIG_MSVC_HPP_INCLUDED
#define BOOST_MPL_AUX_CONFIG_MSVC_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2002-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)
//
// See http://www.boo... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
// This file was modified by Oracle on 2014, 2016, 2017, 2018.
// Modifications c... |
// Copyright (c) 2018-2021 The Dash Core developers
// Copyright (c) 2021 The TrumpCoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "core_io.h"
#include "destination_io.h"
#include "evo/deterministic... |
/**************************************************************************************/
/* */
/* Visualization Library */
/* http://visualizationlibrary.org ... |
/*
* Author: Francois Hamon & Martin Schreiber <SchreiberX@gmail.com>
* MULE_COMPILE_FILES_AND_DIRS: src/programs/libpfasst_swe_sphere_mlsdc
* MULE_COMPILE_FILES_AND_DIRS: src/programs/swe_sphere_timeintegrators/
* MULE_COMPILE_FILES_AND_DIRS: src/programs/swe_sphere_benchmarks/
* MULE_SCONS_OPTIONS: --sphere-spec... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 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 "main.h"
#include "db.h"
#include "txdb.h"
#include "init.h"
#include "miner.h... |
// 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 <INTERNET_CONNECTED_INFO.hpp>
START_ATF_NAMESPACE
typedef INTERNET_CONNECTED_INFO *LPINTERNET_CONNECTED_INFO;
END_ATF_NAMESPACE |
/*
* 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 distributed in the hope that it will be use... |
class Life_cell_phone {
idd = 3000;
name= "life_cell_phone";
movingEnable = 0;
enableSimulation = 1;
onLoad = "[] spawn life_fnc_cellphone";
class controlsBackground {
class Life_RscTitleBackground: Life_RscText {
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG... |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/safe_browsing/core/browser/sync/sync_utils.h"
#include "components/signin/public/identity_manager/account_info.h"
#include "componen... |
/* file: pca_explained_variance_default_batch_fpt_dispatcher.cpp */
/*******************************************************************************
* Copyright 2014-2017 Intel Corporation
* All Rights Reserved.
*
* If this software was obtained under the Intel Simplified Software License,
* the following terms app... |
// Copyright 2007, 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:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... |
/// \copyright Tobias Hienzsch 2019-2021
/// Distributed under the Boost Software License, Version 1.0.
/// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
#ifndef TETL_ALGORITHM_ROTATE_HPP
#define TETL_ALGORITHM_ROTATE_HPP
#include "etl/_algorithm/iter_swap.hpp"
namespace etl {
/// \brief ... |
// //////////////////////////////////////////////////////////////////////
// Import section
// //////////////////////////////////////////////////////////////////////
// C
#include <assert.h>
// STL
#include <string>
#include <sstream>
// Boost (Extended STL)
#include <boost/date_time/posix_time/posix_time.hpp>
#include... |
#include <stdlib.h>
#include <iostream>
#include <vector>
#include <string>
#include <set>
using namespace std;
static void remove_space(string& str){
string buff(str);
char space = ' ';
str.assign(buff.begin() + buff.find_first_not_of(space),
buff.begin() + buff.find_last_not_of(space) + 1);
}
static vecto... |
// 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/ui/browser.h"
#include "chrome/test/base/browser_with_test_window_test.h"
#include "content/public/browser/render_process_ho... |
/*
* Copyright (c) 2011-2021, The DART development contributors
* All rights reserved.
*
* The list of contributors can be found at:
* https://github.com/dartsim/dart/blob/master/LICENSE
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, w... |
/*
* #%L
* %%
* Copyright (C) 2020 BMW Car IT GmbH
* %%
* 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 app... |
/* Copyright 2015 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 ... |
// 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 <algorithm>
#include <string>
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/prefs/pref_service.h"
#include... |
// Copyright 2015-2020 Tier IV, 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 app... |
/**
* @license MIT
* @brief
*/
///////////////////////////////////////////////////////////////////////////////
#include "huffman_encoder.h"
#include "huffman_coding_interfaces.h"
using namespace std;
///////////////////////////////////////////////////////////////////////////////
#define DEBUG(var) \
do{ \
co... |
// license:BSD-3-Clause
// copyright-holders:David Haywood
/* Aquarium (c)1996 Excellent Systems */
/*
AQUARIUM
EXCELLENT SYSTEMS
ES-9206
+------------------------------------------------+
| 6116 23C16000 23C16000*|
| YM2151 6116 23C16000* 23C16000*|
| +-----... |
//=================================================================================================
/*!
// \file src/mathtest/dmatdmatkron/MHaMDa.cpp
// \brief Source file for the MHaMDa dense matrix/dense matrix Kronecker product math test
//
// Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved
//
// T... |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* 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 noti... |
#include "song.h"
#include "archive.h"
Song::Song(const Song &other) {
Archive archive;
archive.write([&](Archive::Writer &w) {
other.write(w);
});
archive.read([&](Archive::Reader &r) {
read(r);
});
}
void Song::write(Writer &writer) const {
writer.write("songId", songId);
writer.write("patter... |
#include <gtest/gtest.h>
#include "tuple.hpp"
#include "magma_element_test_utils.hpp"
#include "tropical_elements/tropical_number.hpp"
using namespace __placid;
TEST (tuple, test_creation)
{
tropical_elements::number e1 (1);
tropical_elements::number e2 (2);
tropical_elements::number elems... |
#include "Collider.h"
#include "../Util.h"
using namespace DirectX;
// Most of the code here was adapted from http://www.dyn4j.org/2010/01/sat/ unless specified otherwise
Collider::Collider(Entity& entity) : Component(entity)
{
m_collisionMesh = nullptr;
m_faceNormals = std::vector<XMFLOAT3>();
m_offset = XMFL... |
/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... |
// Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/builtins/builtins-regexp-gen.h"
#include "src/builtins/builtins-constructor-gen.h"
#include "src/builtins/builtins-utils-gen.h"
#include ... |
#include<set>
#include<string>
#include<cstdio>
using namespace std;
long long gcd(long long a,long long b)
{
while((a%=b)&&(b%=a));
return a+b;
}
struct Q
{
long long a,b,u;
void operator()(){int d=gcd(a,b);a/=d,b/=d;}
Q operator*(Q x)
{
Q z=*this;u=1;
int d=gcd(z.a,x.b);
... |
//
// https://codeforces.com/problemset/problem/996/A
//
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int temp = 0;
temp += n / 100;
n %= 100;
temp += n / 20;
n %= 20;
temp += n / 10;
n %= 10;
temp += n / 5;
n %= 5;
temp += n;
cout << temp... |
#include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
#include "bitcoinunits.h"
#include "addressbookpage.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include <QApplication>
#include <QClipboard>
SendCoinsEntry::SendCoinsEntry(QWidget *parent) :
... |
/*ckwg +29
* Copyright 2016 by Kitware, 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:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkOpenGLVolumeTransferFunction2D.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
// Copyright (c) 2020 Wayan Saka
// Copyright (c) 2020 The Nestcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <wallet/db.h>
#include <addrman.h>
#include <hash.h>
#include <protocol.h>
#include <u... |
#include "../AES/AES.h"
int BLOCKSIZE = 16*2;
void addPadding(std::string& s, int blockSize)
{
std::stringstream stream;
stream << std::hex << 0x01;
for(int i = 0; i < blockSize - ((s.size() + 1) % blockSize); i++)
{
stream << std::hex << 0x00;
}
s += stream.str();
}
void removePadding(std::string& s)
{
... |
//
// OctreeSceneStats.cpp
// libraries/octree/src
//
// Created by Brad Hefta-Gaub on 7/18/13.
// Copyright 2013 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include <limits>
#include <QSt... |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#includ... |
//
// Created by gishr on 19-4-18.
//
#include "pcl_helper.h"
pcl_helper::pcl_helper(string config_path)
{
this->config_path = config_path;
cv::FileStorage fsSettings(this->config_path, cv::FileStorage::READ);
radius = fsSettings["Radius"];
MinNeighbor = fsSettings["MinNeighbor"];
mean_k = fs... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2018 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "utilitydialog.h"
#inc... |
/*
* Copyright 2012 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkBenchmark.h"
#include "SkCanvas.h"
/**
* This bench mark tests the use case where the user writes the a canvas
* and then reads small chunk... |
//#Name: Anonta Haque #Problm:
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstring>
#include <cstdlib>
#include <cstdarg>
#include <utility>
#include <cctype>
#include <cstdio>
#include <vector>
#include <string>
#include <cmath>
#include <ctime>
#include <queue>
#include ... |
// Copyright (c) 2015 Nuxi, https://nuxi.nl/
//
// SPDX-License-Identifier: BSD-2-Clause
#include <errno.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <unistd.h>
#include "gmock/gmock.h"
#include "gtest/gtest.h"
TEST(fread, eagain) {
// Create a stream to non-blocking read side of a pipe.
... |
/*******************************************************************\
Module: Symbolic Execution
Author: Daniel Kroening, kroening@kroening.com
\*******************************************************************/
/// \file
/// Symbolic Execution
#include "goto_symex.h"
#include "expr_skeleton.h"
#include "symex_... |
#include "energy.h"
#include "penalty.h"
#include "potentials.h"
#include "externalpotential.h"
#define ANKERL_NANOBENCH_IMPLEMENT
#include <nanobench.h>
namespace Faunus {
namespace Energy {
EwaldData::EwaldData(const json &j) {
alpha = j.at("alpha"); // damping-parameter
r_cutoff =... |
#pragma once
#include "catch.hpp"
#include "puffinn/collection.hpp"
#include "puffinn/hash/simhash.hpp"
#include "puffinn/hash/crosspolytope.hpp"
#include "puffinn/hash_source/pool.hpp"
#include "puffinn/hash_source/independent.hpp"
#include "puffinn/hash_source/tensor.hpp"
#include "puffinn/similarity_measure/cosine.... |
#include <iostream>
using namespace std;
class callbackbase
{
public:
virtual void operator()() const{}
virtual ~callbackbase(){}
};
template<typename T>
class callback:public callbackbase
{
public:
typedef void(T::*F)();
callback(T& t,F f):t_(&t),f_(f){}
void operator()()const
{
(t_->*f_)();
}
private:
T* ... |
// Copyright (c) 2013, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
#if !defined(OS_WIN) && ... |
/*
* Copyright 2019 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "modules/skottie/src/effects/Effects.h"
#include "include/effects/SkGradientShader.h"
#include "include/effects/SkShaderMaskFilter.h"
#include "modules/skottie/src/S... |
// The Reactive C++ Toolbox.
// Copyright (C) 2013-2019 Swirly Cloud Limited
// Copyright (C) 2020 Reactive Markets 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 License at
//
// http:... |
/*
Copyright (c) 2005-2018, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms... |
/*
* Copyright 2018 WebAssembly Community Group participants
*
* 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... |
#define _CRT_SECURE_NO_WARNINGS
#include "save-bmp.h"
#include <cstdio>
#ifdef MSDFGEN_USE_CPP11
#include <cstdint>
#else
typedef int int32_t;
typedef unsigned uint32_t;
typedef unsigned short uint16_t;
typedef unsigned char uint8_t;
#endif
#include "pixel-conversion.hpp"
namespace msdfgen {
t... |
#if !defined (_WIN32)
#include <unistd.h>
#endif
#include <exception>
#include <functional>
#include <vector>
#include <iostream>
#include <sstream>
#include <iomanip>
#include "Renderer.hpp"
#include "Texture.hpp"
#include "MainScene.hpp"
#include "Splash.hpp"
#include "RocketteService.hpp"
void startRocketteServic... |
/*
* 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) 2012-current, Terry Mathew Poulin <BigBoss1964@gmail.com>
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from the
* use of this software.
*
* Permission is granted to anyone to use this soft... |
// 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 "mojo/core/node_controller.h"
#include <algorithm>
#include <limits>
#include <vector>
#include "base/bind.h"
#include "base/containers/queue.h... |
// Copyright 2021 The Chromium OS 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 "rmad/state_handler/run_calibration_state_handler.h"
#include <algorithm>
#include <memory>
#include <base/logging.h>
#include <base/task/ta... |
// 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 "main.h"
#include "db.h"
#include "init.h"
#include "bitcoinrpc.h"
using name... |
/*
* 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... |
#include "ConnectionState.hpp"
#include <iostream>
#include <QtCore/QPointF>
#include "FlowScene.hpp"
#include "Node.hpp"
using QtNodes::ConnectionState;
using QtNodes::Node;
ConnectionState::
~ConnectionState()
{
resetLastHoveredNode();
}
void
ConnectionState::
interactWithNode(Node* node)
{
if (node)
{
... |
// Copyright (c) 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-license.php... |
//------------------------------------------------------------------------------
// UvIsolatedConn2.cpp
// (C) 2016 n.lee
//------------------------------------------------------------------------------
#include "UvIsolatedConn2.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "../../base/MyMa... |
#include "OSDConsoleRenderer.hh"
#include "CommandConsole.hh"
#include "BooleanSetting.hh"
#include "SDLImage.hh"
#include "Display.hh"
#include "InputEventGenerator.hh"
#include "Timer.hh"
#include "FileContext.hh"
#include "CliComm.hh"
#include "Reactor.hh"
#include "MSXException.hh"
#include "openmsx.hh"
#include "o... |
#include "cblas.h"
#include "routines.h"
void daxpy(const v8::FunctionCallbackInfo<v8::Value>& info) {
const int n = info[0]->Uint32Value();
const double alpha = info[1]->NumberValue();
const double *x = reinterpret_cast<double*>(GET_CONTENTS(info[2].As<v8::Float64Array>()));
const int inc_x = info[3]->Uint32Value... |
// Copyright 2007, 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:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... |
//////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2017 EMC 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
//... |
// MusicXML Class Library
// Copyright (c) by Matthew James Briggs
// Distributed under the MIT License
#include "mxtest/control/CompileControl.h"
#ifdef MX_COMPILE_IMPORT_TESTS
#include "mxtest/file/StupidFileFunctions.h"
#include "mxtest/file/MxFileRepository.h"
#include "mxtest/import/ExpectedFiles.h"
#include "mx... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.