text stringlengths 7 961k |
|---|
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/Util.h"
#ifdef MO... |
#include "util.h"
#include "sync.h"
#include <stdint.h>
#include <vector>
#include <boost/test/unit_test.hpp>
using namespace std;
BOOST_AUTO_TEST_SUITE(util_tests)
BOOST_AUTO_TEST_CASE(util_criticalsection)
{
CCriticalSection cs;
do {
LOCK(cs);
break;
BOOST_ERROR("break was swal... |
#pragma once
#include "../Utility/MathDef.hpp"
namespace Engine5
{
class Vector4;
class Vector2;
class Matrix33;
class Vector3
{
public:
explicit Vector3(Real x = 0.f, Real y = 0.f, Real z = 0.f);
explicit Vector3(Real arr[3]);
explicit Vector3(const Vector2& rhs);
... |
/* Copyright (c) 2017, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
*
* All rights reserved.
*
* The Astrobee platform is licensed under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with... |
// Copyright 2013 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... |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... |
/* <base/scheduler.cc>
Implements <base/scheduler.h>.
Copyright 2010-2014 OrlyAtomics, 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/LICE... |
/*
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c) Microsoft Corporation. All rights reserved
Module:
Distanc... |
/*
* 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 bel... |
// Concord
//
// Copyright (c) 2018-2021 VMware, Inc. All Rights Reserved.
//
// This product is licensed to you under the Apache 2.0 license (the "License"). You may not use this product except in
// compliance with the Apache 2.0 License.
//
// This product may include a number of subcomponents with separate copyrigh... |
#include <Maestro.H>
#include <Maestro_F.H>
#include <Problem_F.H>
using namespace amrex;
// advance a single level for a single time step, updates flux registers
void
Maestro::AdvanceTimeStep (bool is_initIter) {
// // timer for profiling
BL_PROFILE_VAR("Maestro::AdvanceTimeStep()",AdvanceTimeStep);
Print()... |
#include "liblzma-node.hpp"
namespace lzma {
void moduleInit(Local<Object> exports) {
LZMAStream::Init(exports);
IndexParser::Init(exports);
exports->Set(NewString("versionNumber"), Nan::GetFunction(Nan::New<FunctionTemplate>(lzmaVersionNumber)).ToLocalChecked());
exports->Set(NewString("version... |
// 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/chromeos/proxy_config_service_impl.h"
#include <map>
#include <string>
#include <vector>
#include "base/format_macros.h"
#i... |
#include "JobQueue.h"
namespace gssystem
{
JobQueue::~JobQueue()
{
stop();
}
bool JobQueue::start()
{
if (thread)
return false;
thread.reset(new std::thread(JobQueue::threadMainFunc, this));
return true;
}
bool JobQueue::stop()
{
stoped = true;
if (thread)
{
thread->join(... |
//==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
#include "fft.h"
static const rpm::vector<double>& getWindow(int N, rpm::map<int, rpm::vector<double>>& windowCache) {
auto wit = windowCache.find(N);
if (wit == windowCache.end()) {
constexpr double a0 = 0.35875;
constexpr double a1 = 0.48829;
constexpr double a2 = 0.14128;
con... |
/*------------------------------------------------------------------------------
Copyright 2021 Garmin Ltd. or its subsidiaries.
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.apach... |
#pragma once
#include "util.hpp"
#include <cmath>
#include <vector>
#include <iomanip>
#include <stdexcept>
#include <stan/math/rev/core/var.hpp>
#include <gtest/gtest.h>
template <typename F, typename T_y, typename T_mu, typename T_sigma>
std::vector<double> finite_diffs_multi_normal(
const F& fun, const std::v... |
#include <iostream>
#include <optional>
#include "interpreter.hpp"
namespace lexer {
namespace test {
void Run();
}
} // namespace lexer
namespace parser {
namespace test {
void Run();
}
} // namespace parser
namespace type_checker {
namespace test {
void Run();
}
} // namespace type_checker
namespace interpret... |
#include "iostream"
#include "vector"
#include <stdexcept>
#include <vector>
template <typename T> class MinHeap {
private:
std::vector<T> _data;
int _size;
int getParentIndex(int child_index) const {
if (child_index == 0)
throw std::out_of_range("Root node does not have a parent");
return (child_... |
/*
* Copyright 2018 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 contributing ... |
/*
This is a SampVoice project file
Developer: CyberMor <cyber.mor.2020@gmail.ru>
See more here https://github.com/CyberMor/sampvoice
Copyright (c) Daniel (CyberMor) 2020 All rights reserved
*/
#include "PluginMenu.h"
#include <samp/CChat.h>
#include <samp/CInput.h>
#include <samp/CScoreboard.h>
#in... |
/*
* Copyright (c) 2014 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the funct... |
////////////////////////////////////////////////////////////////////////////
//
// Crytek Engine Source File.
// Copyright (C), Crytek Studios, 2001-2005.
// -------------------------------------------------------------------------
// File name: EntityArchetype.h
// Version: v1.00
// Created: 19/9/2005 b... |
#include "pch.h"
#include "CppUnitTest.h"
#include <GraphQLParser/Token.h>
#include <GraphQLParser/Lexer1.h>
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
using namespace GraphQLParser;
namespace GraphQLParserTests {
TEST_CLASS(LexerTests) {
public:
TEST_METHOD(Lex_ATPunctuation_HasCorrectEnd) {
... |
/**
* \file CrdWznmLoc.cpp
* job handler for job CrdWznmLoc (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 28 Nov 2020
*/
// IP header --- ABOVE
#ifdef WZNMCMBD
#include <Wznmcmbd.h>
#else
#include <Wznmd.h>
#endif
#includ... |
// Copyright (c) 2020 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, publ... |
// 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 "cc/resources/pixel_buffer_tile_task_worker_pool.h"
#include <algorithm>
#include "base/containers/stack_container.h"
#include "base/strings/st... |
#include <boost/test/unit_test.hpp>
#include "models/models.h"
#include "tag_hierarchy/tag_hierarchy.h"
#include "tag_hierarchy/unittests/fixture.h"
BOOST_FIXTURE_TEST_SUITE( FilterOptionsTest, Fixture );
BOOST_AUTO_TEST_CASE( test_modelowner_filter )
{
auto query = std::vector<NodeType>(
{{{std::string... |
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// Copyright (c) 2017-19, Lawrence Livermore National Security, LLC
// and RAJA Performance Suite project contributors.
// See the RAJAPerf/COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
//~~~~~~~~~~~~~~~~~~~~~~~~... |
/*
* Copyright (c) 2008 Stephan Aßmus <superstippi@gmx.de>. All rights reserved.
* Distributed under the terms of the MIT/X11 license.
*
* Copyright (c) 1999 Mike Steed. You are free to use and distribute this software
* as long as it is accompanied by it's documentation and this copyright notice.
* The software ... |
#include "quaoptionsetvariable.h"
#ifdef UA_GENERATED_NAMESPACE_ZERO_FULL
#include <QUaServer>
QUaOptionSetVariable::QUaOptionSetVariable(
QUaServer* server
) : QUaBaseDataVariable(server)
{
}
QList<QUaLocalizedText> QUaOptionSetVariable::optionSetValues() const
{
return const_cast<QUaOptionSetVariable*>(this)->... |
#include "../../../def_submodule.hpp"
#include "IceRay/material/compute/instruction.hpp"
#include "IceRay/material/compute/illumination/on_f29.hpp"
void expose_IceRay_material_illumination_on_f29()
{
typedef GS_DDMRM::S_IceRay::S_type::GT_size GTs_size;
typedef GS_DDMRM::S_IceRay::S_type::GT_scalar ... |
/*
* Copyright (c) 2015 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... |
// lookup.cpp
#include "lookup.h"
#include "name.h"
namespace Slang {
void checkDecl(SemanticsVisitor* visitor, Decl* decl);
//
DeclRef<ExtensionDecl> ApplyExtensionToType(
SemanticsVisitor* semantics,
ExtensionDecl* extDecl,
RefPtr<Type> type);
//
// Helper for constructing breadcrum... |
/*
This file is part of solidity.
solidity 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 of the License, or
(at your option) any later version.
solidity is distributed in the hope that i... |
#include <cstdlib>
#include <ctime>
#include <cmath>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <climits>
#include <cstring>
#include <memory>
#include <GL/freeglut.h>
#include "xyz_display_open_gl.h"
#include <pthread.h>
#define SHOW_FPS 1
#if SHOW_FPS
#include "frames_counter.h"
#endif
us... |
// Copyright (c) 2016-2018 The Eozi 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/eozi-config.h>
#endif
#if defined(ENABLE_WALLET) && defined(ENABLE_BIP70)
#include ... |
/*
* * * * * * * * * * * * * * * * * *
*
* @author: Xingjian Bai
* @date: 2020-10-11 22:00:22
* @description:
* /Users/jackbai/Desktop/OI/October_Challenge_Codechef/DDIMMST.cpp
*
* @notes:
* g++ -fsanitize=address -ftrapv DDIMMST.cpp
* * * * * * * * * * * * * * * * * */
#include ... |
/* Copyright 2019 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 "Geometry/CaloGeometry/interface/TruncatedPyramid.h"
#include "Geometry/EcalAlgo/interface/EcalEndcapGeometry.h"
#include "Geometry/CaloEventSetup/interface/CaloGeometryLoader.h"
#include "DetectorDescription/Core/interface/DDFilteredView.h"
typedef CaloGeometryLoader<EcalEndcapGeometry> EcalEGL;
template <>... |
/*
* Copyright 2021 Andrey Glebov
*
* 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... |
// -*- C++ -*-
//
// Package: Discriminator
// Class : Interceptor
//
// Implementation:
// Pseudo variable processor that just intercepts all the incoming
// variables and forwards them to the calibration class.
//
// Author: Christophe Saout
// Created: Sat May 05 09:05 CEST 2007
//
#incl... |
/*
Copyright (c) 2010-2016, Mathieu Labbe - IntRoLab - Universite de Sherbrooke
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
... |
/** ---------------------------------------------------------------------------
** matrix.hpp
** Container for a 4 by 4 matrix of floats. Also defines some useful operators
** with vectors and points.
**
** Author: Miguel Jorge Galindo Ramos, NIA: 679954
** Santiago Gil Begué, NIA: 683482
** ------------... |
/****************************************************************************************
* @author: kzvd4729 created: 07/13/2021 17:34
* solution_verdict: Accepted language: cpp
* run... |
#include <QtGlobal>
// Automatically generated by extract_strings.py
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
static const char UNUSED *bitcoin_strings[] = {QT_TRANSLATE_NOOP("bitcoin-core", "To use the %s option"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"%s, you must set a rpcpa... |
#include<bits/stdc++.h>
#define ll long long
#define pb push_back
#define endl '\n'
#define pii pair<ll int,ll int>
#define vi vector<ll int>
#define all(a) (a).begin(),(a).end()
#define F first
#define S second
#define sz(x) (ll int)x.size()
#define ... |
/* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* <OWNER> = Apple Inc.
* <ORGANIZATION> = Apple Inc.
* <YE... |
//
// UIView.hpp
// constructor
//
// Created by Wangjianlong on 2019/9/2.
// Copyright © 2019 JL.Com. All rights reserved.
//
#ifndef UIView_hpp
#define UIView_hpp
#include <stdio.h>
class UIView {
int m_tag;
UIView *m_superView;
public:
UIView();
~UIView();
};
#endif /* UIView_hpp */ |
#include "SystemScreenSaver.h"
#ifdef _RPI_
#include "components/VideoPlayerComponent.h"
#endif
#include "components/VideoVlcComponent.h"
#include "utils/FileSystemUtil.h"
#include "views/gamelist/IGameListView.h"
#include "views/ViewController.h"
#include "FileData.h"
#include "FileFilterIndex.h"
#include "Log.h"
#in... |
#include "gtest_random.h"
namespace {
class RandomTest : public ::testing::Test
{
public:
nc::Random rnd_;
};
TEST_F(RandomTest, GenerateBoundedInteger)
{
const uint32_t min = 0;
const uint32_t max = 6;
printf("Generate a random integer between %u and %u, %u not included\n", min, max, max);
bool minGenerated... |
namespace bug250270 {
using AAA250270 = struct CCC250270;
int main250270() {
using BBB250270 = int;
return 0;
}
} |
#include "BlendingSettings.h"
using namespace Lag;
BlendingSetting::BlendingSetting(BlendingFunction sourceBlendingFunction, BlendingFunction destinationBlendingFunction, BlendingEquation blendingEquation) :
sourceBlendingFunction(sourceBlendingFunction),
destinationBlendingFunction(destinationBlendin... |
#include "CppUTest/TestHarness.h"
TEST_GROUP(ExampleTests)
{
/*setup goes here*/
};
TEST(ExampleTests, Test1)
{
CHECK(true);
} |
/* Copyright (C) 2011-2017 Povilas Kanapickas <povilas@radix.lt>
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#include "../utils/test_helpers.h"
#include "../utils/test_results.h"
#includ... |
// Copyright 2021 Phyronnaz
#include "VoxelHelpersModule.h"
#include "Modules/ModuleManager.h"
IMPLEMENT_MODULE(FVoxelHelpers, VoxelHelpers) |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... |
#include <RAT/DU/DSReader.hh>
#include <RAT/DS/FitVertex.hh>
#include <RAT/DU/DSReader.hh>
#include <RAT/DU/Utility.hh>
#include <RAT/DU/LightPathCalculator.hh>
#include <RAT/DS/Entry.hh>
#include <RAT/DS/EV.hh>
#include <RAT/DS/PMT.hh>
#include <RAT/DS/FitResult.hh>
#include <TGraph2D.h>
#include <string>
#include <TM... |
#include "BaiduTranslator.h"
#include "YoudaoTranslator.h"
#include <QApplication>
#include <QQmlApplicationEngine>
#include <QtQuick>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
qmlRegisterType<BaiduTranslator>("Trans", 1, 0, "BaiduTranslator");
qmlRegisterType<YoudaoTranslator>("Tra... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... |
// Copyright (c) 2015-2020 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#ifndef TAO_JSON_PEGTL_CONTRIB_UTF16_HPP
#define TAO_JSON_PEGTL_CONTRIB_UTF16_HPP
#include "../config.hpp"
#include "../internal/result_on_found.hpp"
#include "../internal/rules.hpp"... |
#include "stdafx.h"
Vector2I::Vector2I()
: x(0), y(0) {
}
Vector2I::Vector2I(int scalar)
: x(scalar), y(scalar) {
}
Vector2I::Vector2I(int x, int y)
: x(x), y(y) {
}
Vector2I& Vector2I::Add(const Vector2I& other) {
x += other.x;
y += other.y;
return *this;
}
Vector2I& Vector2I::Subtract(co... |
/*
* Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider,
* Jérémie Comarmond, Didier Colin.
* 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 ... |
/*
** $Id: lundump.c,v 1.33 2000/10/31 16:57:23 lhf Exp $
** load bytecodes from files
** See Copyright Notice in lua.h
*/
#include <stdio.h>
#include <string.h>
#include "lfunc.h"
#include "lmem.h"
#include "lopcodes.h"
#include "lstring.h"
#include "lundump.h"
#define LoadByte ezgetc
static const char* ZNAME (ZI... |
/////////////////////////////////////////////////////////////////////////////
// Name: webviewfilehandler.cpp
// Purpose: Custom webview handler to allow archive browsing
// Author: Steven Lamerton
// Copyright: (c) 2011 Steven Lamerton
// Licence: wxWindows licence
///////////////////////////////... |
/*
* Copyright (c) 2018 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
/* Given a positive integer denoting , do the following:
If 1<=n<=9, then print the lowercase English word corresponding to the number (e.g., one for , two for , etc.).
If n>9, print Greater than 9
*/
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
cin.ignore(numeric_limits<st... |
#include "io/FileSystem.h"
#include "objects/containers/StaticArray.h"
#include "objects/utility/Streams.h"
#include <sstream>
#ifdef SPH_WIN
#include <userenv.h>
#include <windows.h>
#else
#include <dirent.h>
#include <sys/file.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#endif
NAMESPACE_SPH_... |
/*
Project Name : OpenMEEG
© INRIA and ENPC (contributors: Geoffray ADDE, Maureen CLERC, Alexandre
GRAMFORT, Renaud KERIVEN, Jan KYBIC, Perrine LANDREAU, Théodore PAPADOPOULO,
Emmanuel OLIVI
Maureen.Clerc.AT.sophia.inria.fr, keriven.AT.certis.enpc.fr,
kybic.AT.fel.cvut.cz, papadop.AT.sophia.inria.fr)
The OpenMEEG sof... |
#ifndef PYTHONIC_NUMPY_SIZE_HPP
#define PYTHONIC_NUMPY_SIZE_HPP
#include "pythonic/utils/proxy.hpp"
#include "pythonic/types/ndarray.hpp"
namespace pythonic {
namespace numpy {
template <class E>
auto size(E const& e) -> decltype(e.flat_size()) {
return e.flat_size();
... |
#include <fstream>
#include <iomanip>
#include "Application.h"
#include "Globals.h"
#include "ModuleGUI.h"
#include "ModuleWindow.h"
#include "ModuleRenderer3D.h"
#include "Imgui/imgui.h"
#include "Imgui/imgui_impl_sdl.h"
#include "Imgui/imgui_impl_opengl3.h"
#include "PanelConfiguration.h"
#include "PanelConsole.... |
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Spindles_AnimBlueprint_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//-----------------------------------------------... |
/*
* Copyright (c) 2018 Romeo Calota
*
* This file is part of the SpriNG library
*
* 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... |
#pragma once
namespace libng {
class XlibWindow {
public:
XlibWindow();
~XlibWindow();
};
} // namespace libng |
//=================================================================================================
/*!
// \file src/mathtest/dmatsmatsub/SDbMZa.cpp
// \brief Source file for the SDbMZa dense matrix/sparse matrix subtraction math test
//
// Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved
//
// This fi... |
/*
* Copyright 2018 Aaron Barany
*
* 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... |
/*!
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#include <cstring>
#include <tuple>
#include <vector>
#include "parallel_tree_learner.h"
namespace LightGBM {
template <typename TREELEARNER_T>
Da... |
#include "Cluster.hpp"
#include <iostream>
Cluster::Cluster()
{
}
Cluster::Cluster(Objeto *obj_geometrico)
{
this->obj_geometrico = obj_geometrico;
}
void Cluster::addCluster(Cluster cluster_filho)
{
this->clusters_filho.push_back(cluster_filho);
}
void Cluster::addObjeto(Objeto *obj_filho)
{
this->objs_filho... |
#include <sstream>
#include "ThirdParty/GLEW/glew.h"
#include "Utils/Logger.h"
#include "Rendering/VertexBuffer.h"
#include "Rendering/IndexBuffer.h"
#include "Geometry/Geometry.h"
#include "Rendering/Renderer.h"
using namespace FireCube;
Geometry::Geometry(Renderer *renderer) : GraphicsResource(renderer), primitive... |
// Copyright (c) 2017-2021 oknenavin.
// Licensed under the MIT license. See LICENSE file in the library root for full license information.
//
// SPDX-License-Identifier: MIT
#ifndef CXON_CBOR_CLASS_HXX_
#define CXON_CBOR_CLASS_HXX_
#include "common/sink.hxx"
#include <tuple>
// std::make_tuple is constexpr since C+... |
#include "alert.h"
#include "clientversion.h"
#include "chainparams.h"
#include "init.h"
#include "net.h"
#include "utilstrencodings.h"
#include "utiltime.h"
/*
If you need to broadcast an alert, here's what to do:
1. Modify alert parameters below, see alert.* and comments in the code
for what does what.
2. run a... |
#include "hxpch.h"
#include "Hexagon/Renderer/Renderer.h"
#include "Hexagon/Renderer/Texture.h"
#include "Platform/OpenGL/OpenGLTexture.h"
namespace Hexagon
{
Ref<Texture2D> Texture2D::Create(uint32_t width, uint32_t height)
{
switch (Renderer::GetAPI())
{
case RendererAPI::API::None: HX_CORE_ASSERT(false, ... |
// Copyright (C) 2009-2012 Lorenzo Caminiti
// Distributed under the Boost Software License, Version 1.0
// (see accompanying file LICENSE_1_0.txt or a copy at
// http://www.boost.org/LICENSE_1_0.txt)
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_CXX11_VARIADIC_MACROS
... |
// Copyright 2018 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 "shill/mock_virtual_device.h"
namespace shill {
MockVirtualDevice::MockVirtualDevice(Manager* manager,
... |
// Copyright 2021 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/compiler/frame.h"
#include "src/codegen/aligned-slot-allocator.h"
#include "testing/gtest-support.h"
namespace v8 {
namespace internal {... |
//=================================================================================================
/*!
// \file src/mathtest/dmatdmatmin/M16x8bMDa.cpp
// \brief Source file for the M16x8bMDa dense matrix/dense matrix minimum math test
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
// This f... |
#include <bits/stdc++.h>
using namespace std;
vector<string> split_string(string);
// Complete the pairs function below.
int pairs(int k, vector<int> arr) {
sort(arr.begin(), arr.end());
int i = 0, j = 1, ans = 0;
while(j < arr.size()){
int diff = arr[j] - arr[i];
if(diff == k){
... |
#pragma once
#include <eosio/action.h>
#include <eosio/chain.h>
#include <eosio/crypto.h>
#include <eosio/db.h>
#include <eosio/permission.h>
#include <eosio/print.h>
#include <eosio/privileged.h>
#include <eosio/system.h>
#include <eosio/transaction.h>
#include <eosio/types.h>
#include <type_traits>
namespace eosio... |
#include "metric.h"
#include "auc.h"
#include "balanced_accuracy.h"
#include "brier_score.h"
#include "classification_utils.h"
#include "dcg.h"
#include "doc_comparator.h"
#include "hinge_loss.h"
#include "kappa.h"
#include "llp.h"
#include "pfound.h"
#include "precision_recall_at_k.h"
#include <catboost/libs/helpers/... |
// 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 "net/third_party/quiche/src/http2/hpack/decoder/hpack_string_decoder.h"
#include "net/third_party/quiche/src/http2/platform/api/http2_string_uti... |
#include "CanBusParser.h"
//--------------------------------------------------
CanBusParser::CanBusParser() {
canBus = new FlexCAN(SPPED_BUS);
txMsg.len = 8;
}
//--------------------------------------------------
void CanBusParser::hexDump(uint8_t dumpLen, uint8_t *bytePtr) {
uint8_t hex[17] = "0123456789abcde... |
#include <GuiFoundationPCH.h>
#include <Foundation/Math/Math.h>
#include <GuiFoundation/Widgets/Curve1DEditorWidget.moc.h>
#include <GuiFoundation/Widgets/GraphicsView.moc.h>
#include <QScrollBar>
#include <QTextOption>
#include <qevent.h>
ezQtGraphicsView::ezQtGraphicsView(QWidget* parent /*= nullptr*/)
: QGraph... |
// logarithm.cpp: test suite runner for the logarithm functions (log2, log10, ln)
//
// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include <universal/utility/directives.hpp>
// use default library... |
Graphics proj6->
#include <iostream>
#include <cmath>
#include <math.h>
#ifdef __APPLE__
# include <GLUT/glut.h>
#else
# include <GL/glut.h>
#endif
using namespace std;
//Global variables
char menu[300];
/*********************************/
void drawMPattern(float minX,float maxX,float minY,float maxY,char vertex){
g... |
#include <folly/Benchmark.h>
#include <gflags/gflags.h>
#include <folly/Singleton.h>
int main(int argc, char** argv) {
folly::SingletonVault::singleton()->registrationComplete();
gflags::ParseCommandLineFlags(&argc, &argv, true);
folly::runBenchmarks();
return 0;
} |
/*
* Copyright (c) 2012 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... |
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 5.2.0.
* https://openapi-generator.tech
* Do not ... |
/*=========================================================================
Program: Multimod Fundation Library
Module: $RCSfile: albaAgent.cpp,v $
Language: C++
Date: $Date: 2005-08-24 16:12:41 $
Version: $Revision: 1.10 $
=========================================================================*/
#incl... |
//
// Created by Rohit Maurya on 11/13/2020.
//
#include "token.h"
token_id Token::getId()
{
return id;
}
void Token::setId(token_id id)
{
this->id = id;
}
string &Token::getValue()
{
return tok;
}
int Token::getColumn()
{
return col;
}
int Token::getLine()
{
return line;
}
bool Token::isSing... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.