text stringlengths 5 1.04M |
|---|
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chain.h>
#include <key_io.h>
#include <rpc/server.h>
#include <validation.h>
#include <script/script.h>
#include <s... |
/*
* 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 <algorithm>
#include <set>
#include <stdlib.h>
#include <iostream>
#include "common/params.h"
#include "common/swaglog.h"
#include "wifiManager.h"
/**
* We are using a NetworkManager DBUS API : https://developer.gnome.org/NetworkManager/1.26/spec.html
* */
// https://developer.gnome.org/NetworkManager/1.2... |
//Copyupper 2021 Adam G. Smith
//
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
//
//http ://www.apache.org/licenses/LICENSE-2.0
//
//Unless required by applicable law or agreed to in writing... |
#include "chunk_renderer.h"
#include "world/block_data.h"
#include "world/chunk.h"
#include "chunk_mesh.h"
// clang-format off
// uses a direction index to index CUBE_VERTICES
constexpr uint32_t CUBE_INDICES[] = {
6, 7, 4, 5, // north
3, 2, 1, 0, // south
2, 6, 5, 1, // east
7, 3, 0, 4, // west
2,... |
// 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... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/game/IGameSystem.hpp>
namespace RED4ext
{
namespace game {
struct IVisionModeSystem : game::IGameSystem
{
static constexpr const char* NAME = "gam... |
// Author: btjanaka (Bryon Tjanaka)
// Problem: (HackerRank) climbing-the-leaderboard
// Title: Climbing the Leaderboard
// Link: https://www.hackerrank.com/challenges/climbing-the-leaderboard/problem
// Idea:
// Difficulty: medium
// Tags: implementation
#include <bits/stdc++.h>
#define GET(x) scanf("%d", &x)
#define ... |
//
// Copyright (C) 2001-2021 Greg Landrum and other RDKit contributors
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#include <cmath>
... |
// -*- C++ -*-
//
// Package: CSCTFConfigTestAnalyzer
// Class: CSCTFConfigTestAnalyzer
//
// system include files
#include <iostream>
#include <memory>
// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... |
// 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 <utility>
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "chrome/browser/background/background_mode_manager.h"
#include "ch... |
#include "MultipleSelectionWidget.h"
#include <QGridLayout>
#include <QFileDialog>
#include "MLIException.h"
#include "CaseCreator/CaseContent/CaseContent.h"
MultipleSelectionWidgetBase::MultipleSelectionWidgetBase(QWidget *parent, Qt::WindowFlags flags)
: QWidget(parent, flags)
{
pSelectorLayout = new QVBox... |
/* _______________________________________________________________________
DAKOTA: Design Analysis Kit for Optimization and Terascale Applications
Copyright 2014 Sandia Corporation.
This software is distributed under the GNU Lesser General Public License.
For more information, see the README file in t... |
Array3d v(2,3,4);
cout << v.square() << endl;
|
/*
Copyright 2020 The OneFlow 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 agre... |
/**
* @file ub_tree_split.hpp
* @author Mikhail Lozhnikov
*
* Definition of UBTreeSplit, a class that splits the space according
* to the median address of points contained in the node.
*/
#ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_UB_TREE_SPLIT_HPP
#define MLPACK_CORE_TREE_BINARY_SPACE_TREE_UB_TREE_SPLIT_HPP
#i... |
///
/// \author Adam Wegrzynek <adam.wegrzynek@cern.ch>
///
#include "InfluxDBFactory.h"
#include <functional>
#include <string>
#include <memory>
#include <map>
#include "UriParser.h"
#include "HTTP.h"
#include "InfluxDBException.h"
#ifdef INFLUXDB_WITH_BOOST
#include "UDP.h"
#include "UnixSocket.h"
#endif
namespac... |
#include <iostream>
#include <string>
#include "../include/Level.h"
#include "../include/CustomNode.h"
using namespace irr;
Level::Level()
{
std::cout << "Level constructor called";
//The dimensions of the level
LEVEL_WIDTH = 160;
LEVEL_LENGTH = 160;
//Tile constants
TILE_WIDTH = 10;
TIL... |
// Copyright 2018 The SwiftShader 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 b... |
#include <ToolsFoundationPCH.h>
#include <Foundation/IO/MemoryStream.h>
#include <Foundation/Serialization/DdlSerializer.h>
#include <ToolsFoundation/Command/TreeCommands.h>
#include <ToolsFoundation/Document/PrefabUtils.h>
#include <ToolsFoundation/Object/DocumentObjectManager.h>
#include <ToolsFoundation/Reflection/... |
//
// Copyright 2021 Splunk 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 i... |
/*
@copyright Louis Dionne 2015
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#define BOOST_HANA_TEST_COMPARABLE_ORDERABLE_MCD
#include "main.hpp"
|
#include <vector>
#include <string>
#include <iostream>
#include "Week03_Task04_responses.h"
using namespace std;
ostream& operator << (ostream& os, const BusesForStopResponse& r)
{
if (r.buses.empty())
{
os << "No stop";// << endl;
}
else
{
for (const string& bus : r.buses)
... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... |
#include "ITG3200.h"
Serial pc(USBTX, USBRX);
ITG3200 gyro(p9, p10);
int main() {
pc.printf("Now starting ITG-3200 test...\n");
//Set highest bandwidth.
gyro.setLpBandwidth(LPFBW_42HZ);
while (1) {
//Arbitrary wait for printf clarity.
wait(0.1);
pc.printf("%i, %i, %i\n"... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/system/audio/unified_volume_view.h"
#include <cmath>
#include <memory>
#include <utility>
#include "ash/public/cpp/ash_features.h"
#includ... |
/*
* File: OutputSection.cpp
*
* Copyright (c) Freescale Semiconductor, Inc. All rights reserved.
* See included license file for license details.
*/
#include "OutputSection.h"
|
/*
* This file is part of the Marmalade SDK Code Samples.
*
* (C) 2001-2012 Marmalade. All Rights Reserved.
*
* This source code is intended only as a supplement to the Marmalade SDK.
*
* THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
* KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NO... |
// Copyright 2018 Roie R. Black
#include <iostream>
#include <string>
#include "ALU.h"
#include "alu_ops.h"
// constructor
ALU::ALU(std::string n):Component(n) {
this->add_in_pin("IN1");
this->add_in_pin("IN2");
this->add_in_pin("AOP");
this->add_out_pin("RES8");
this->add_out_pin("RES16");
val... |
#include "editor_scene_importer_gltf.h"
#include "io/json.h"
#include "math_defs.h"
#include "os/file_access.h"
#include "os/os.h"
#include "scene/3d/camera.h"
#include "scene/3d/mesh_instance.h"
#include "scene/animation/animation_player.h"
#include "scene/resources/surface_tool.h"
#include "thirdparty/misc/base64.h"
... |
#include <ftdi.h>
#include "ftdi_context_wrapper.h"
#include <node.h>
#include <node_buffer.h>
#include <node_object_wrap.h>
#include <v8.h>
using namespace v8;
void create_context(const FunctionCallbackInfo<Value>& args) {
Isolate* isolate = Isolate::GetCurrent();
HandleScope scope(isolate);
FtdiContextWrapper... |
#include "transactionrecord.h"
#include "wallet.h"
#include "base58.h"
/* Return positive answer if transaction should be shown in list.
*/
bool TransactionRecord::showTransaction(const CWalletTx &wtx)
{
if (wtx.IsCoinBase())
{
// Ensures we show generated coins / mined transactions at depth 1
... |
#include<cstdio>
#include<algorithm>
struct Snowflake{
int armLen[6];
};
const int HASH_MAX=1000000,EMPTY=-1;
int hash(const Snowflake& snowflake){
int sum=0;
for(int armIndex=0;armIndex<6;armIndex++)
sum+=snowflake.armLen[armIndex];
return sum%HASH_MAX;
}
bool equals(const Snowflake& left,con... |
/****************************************************************************//*
* Copyright (C) 2021 Marek M. Cel
*
* 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, ... |
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main()
{
int dragons; //total dragons
int punched; //k dragon got punched with frying pan
int tail; //l dragon got his tail shut to balcony door
int paws;// m dragon got his paws trampled with sharp heels
int mom;//n ... |
//--------------------------------------------------------
// OpenNero : IrrFactory
// irrilicht factory
//--------------------------------------------------------
#include "core/Common.h"
#include <irrlicht.h>
#include "game/objects/PropertyMap.h" // keep TinyXml from complaining
#include "core/Common.h"... |
// Copyright (c) 2011-2015 The Newcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "arith_uint256.h"
#include "uint256.h"
#include "version.h"
#include "test/test_newcoin.h"
#include <boost/test/unit... |
/*
* Copyright (C) 2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "runtime/execution_environment/execution_environment.h"
#include "runtime/memory_manager/os_agnostic_memory_manager.h"
#include "runtime/os_interface/linux/drm_memory_manager.h"
#include "runtime/os_interface/linux/os_interfa... |
/****************************************************************************
*
* Copyright (c) 2012-2015 PX4 Development Team. 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. Red... |
/*
* 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
... |
/* IZ3D_FILE: $Id$
*
* Project : iZ3D Stereo Driver
* Copyright (C) iZ3D Inc. 2002 - 2010
*
* $Author$
* $Revision$
* $Date$
* $LastChangedBy$
* $URL$
*/
#include "stdafx.h"
#include "Output_dx10.h"
using namespace DX10Output;
#include "Shaders_dx10/shaderFullScreenQuadVS.h"
#include "Shaders_dx10/shaderHorizontalSi... |
#include <fcgi_stdio.h>
#include <string>
#include <stdlib.h>
#include <openframe/openframe.h>
#include "App.h"
#include "DBI.h"
#include "config.h"
#include "openapi.h"
#include "openapiCommands.h"
namespace openapi {
const char *App::kPidFile = "openapi.pid";
App::App(const std::string &prompt, const ... |
// HtmlResourceReader.cpp
#include <QResource>
#include <QTextStream>
#include "HtmlResourceReader.h"
/* explicit HtmlResourceReader::HtmlResourceReader(QObject* p = nullptr); -----
This connects the textChange signals in the subsidiary Utf8ResourceReader
objects to the appropriate private slots. ... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include <vgui_controls/AnimationController.h>
#include "tf_hud_freezepanel.h"
#include "clientmode_shared.h"
#include "... |
////////////////////////////////////////////////////////////////////////////
// Module : script_game_object_script3.cpp
// Created : 17.11.2004
// Modified : 17.11.2004
// Author : Dmitriy Iassenev
// Description : Script game object class script export
////////////////////////////////////////////////////////////... |
/**********************************************************************
*
* This source code is part of the Tree-based Network Optimizer (TORO)
*
* TORO Copyright (c) 2007 Giorgio Grisetti, Cyrill Stachniss,
* Slawomir Grzonka, and Wolfram Burgard
*
* TORO is licences under the Common Cr... |
/*
* Created by Phil on 22/10/2010.
* Copyright 2010 Two Blue Cubes Ltd
*
* 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 TWOBLUECUBES_CATCH_HPP_INCLUDED
#define TWOBLUECUBES_CATCH_HPP_INCLUDED
... |
#include <dae.h>
#include <dae/daeDom.h>
#include <1.5/dom/domFx_samplerRECT.h>
#include <dae/daeMetaCMPolicy.h>
#include <dae/daeMetaSequence.h>
#include <dae/daeMetaChoice.h>
#include <dae/daeMetaGroup.h>
#include <dae/daeMetaAny.h>
#include <dae/daeMetaElementAttribute.h>
namespace ColladaDOM150 {
daeElementRef
do... |
/**
*******************************************************************************
* Copyright (C) 1996-2006, International Business Machines Corporation and *
* others. All Rights Reserved. *
****************************************************************************... |
#define META
#ifdef META
#include "meta/meta.hpp"
#include <tuple>
#include <type_traits>
#include <cstddef>
using namespace meta;
namespace detail
{
template<typename Ret, typename...Is, typename ...Ks,
typename Tuples>
Ret tuple_cat_(typelist<Is...>, typeli... |
/**********************************************************************
* Copyright (c) 2008-2014, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by t... |
//
// Created by peter on 03.08.2020.
//
#include "RTShadowsPass.h"
#include "BilateralFilterPass.h"
#include "CameraDescription.h"
#include "RTSceneDescription.h"
#include "VarAwareTempAccumFilterColor.h"
#include "rendering_loop/DescriptorGenerator.h"
#include "utils.h"
#include <Engine/Common/IDeviceState.h>
#inclu... |
#include <file/PlainText.hpp>
#include <fstream>
std::string readWholeFile(const std::string_view filename){
std::ifstream infile(filename.data(),std::ios::in | std::ios::binary | std::ios::ate);
std::string contents;
if (infile){
int size = infile.tellg();
contents.resize(size);
infile.seekg(0, std::ios::beg)... |
#include "..\Aspose.Pdf.h"
using namespace System;
using namespace Aspose::Pdf;
using namespace Aspose::Pdf::Text;
void ExtractTextFromRangeOfPages()
{
// ExStart:ExtractTextFromRangeOfPages
auto extractor = MakeObject<Facades::PdfExtractor>();
extractor->BindPdf(u"..\\Data\\Text\\ExtractText-PageRange.pdf");
// ... |
// $Id: server.cpp 91825 2010-09-17 09:10:22Z johnnyw $
#include "tao/corba.h"
#include "tao/PortableServer/PortableServer.h"
#include "testS.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
const ACE_TCHAR *ior_output_file = ACE_TEXT ("test.ior");
int
parse_args (int argc, ACE_TCHAR *argv[])
{
ACE_Get_Opt... |
#ifndef _NEVIL_SIBLING_ROBOT_HPP_
#define _NEVIL_SIBLING_ROBOT_HPP_
#include "nevil/arena/robot.hpp"
#include "nevil/robot_controller/basic_feedforward_nn.hpp"
#include "nevil/sibling_individual.hpp"
namespace nevil
{
class sibling_robot : public robot
{
public:
sibling_robot(double x, double y, double ang... |
/**
* @file spimasterstrategy.hpp
*
* @date 2018/02/11
* @author: Seiichi "Suikan" Horie
* @brief SPI master root class.
*/
#ifndef SPIMASTERSTRATEGY_HPP_
#define SPIMASTERSTRATEGY_HPP_
#include <spicallbackstrategy.hpp>
#include <spislaveadapterstrategy.hpp>
namespace murasaki {
/**
* \brief Root class of t... |
// Copyright 2015 Adam Grandquist
#include "./catch.hpp"
#include "./ReQL.h"
TEST_CASE("c Issue 95", "[c][ast]") {
SECTION("test0") {
}
SECTION("test1") {
}
SECTION("test2") {
}
SECTION("test3") {
}
SECTION("test4") {
}
SECTION("test5") {
}
SECTION("test6") {
... |
#include "YostLabDriver.h"
int main(int argc, char **argv)
{
ros::init(argc, argv, "imu");
ros::NodeHandle nh;
ros::NodeHandle priv_nh("~");
YostLabDriver imu_drv(nh, priv_nh);
imu_drv.run();
}
|
/**
* Copyright Soramitsu Co., Ltd. 2017 All Rights Reserved.
* http://soramitsu.co.jp
*
* 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/LICENS... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2018 The Dash 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/oontcoin-config.h"
#endif
#i... |
/*
* 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-2017 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 "util.h"
#include "utiltime.h"
#include "validation.h"
#include "test/test_compute.h"
#include "checkqueue.h"
#incl... |
//Copyright (c) 2019 The PIVX developers
//Copyright (c) 2020 The SafeDeal developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "qt/safedeal/addresslabelrow.h"
#include "qt/safedeal/forms/ui_addresslabelrow.h"
Ad... |
// Copyright (c) 2017-2020 TKEY DMCC LLC & Tkeycoin Dao. All rights reserved.
// Website: www.tkeycoin.com
//
// 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, incl... |
#include "vlpch.h"
#include "Material.h"
namespace Velocity
{
} |
/*
* 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
... |
/******************************************************************************
*
* Component: OGR SQL Engine
* Purpose: swq_select class implementation.
* Author: Frank Warmerdam <warmerdam@pobox.com>
*
******************************************************************************
* Copyright (C) 2010 Frank Wa... |
/*******************************************************************************
* Copyright 2019-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.apa... |
// (C) Copyright John Maddock 2001.
// Use, modification and distribution are 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://www.boost.org/libs/config for most recent version.
// MACRO: ... |
#include "UnrealEnginePythonPrivatePCH.h"
#include "Runtime/LevelSequence/Public/LevelSequenceActor.h"
#include "Runtime/LevelSequence/Public/LevelSequence.h"
#include "PythonComponent.h"
#include "UEPyObject.h"
PyObject *py_ue_actor_has_tag(ue_PyUObject * self, PyObject * args)
{
ue_py_check(self);
char *tag;
i... |
/*
Copyright (c) 2015-2020 Max Krasnyansky <max.krasnyansky@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:
1. Redistributions of source code must retain the above copyr... |
// Copyright (c) 2017-2018 The Bitcoin Core developers
// Copyright (c) 2021 The Vivuscoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <random.h>
#include <test/test_vivuscoin.h>
#include <boost/te... |
/**
* Copyright 2020 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... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkSmoothPolyDataFilter.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 s... |
/*
Copyright (c) 2013, SMB Phone 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 and the ... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... |
#include "Mesh.h"
Vertex::Vertex(vec3 coords, vec3 normals, vec2 textures) {
this->coords = coords;
this->normals = normals;
this->textures = textures;
}
vec3 Vertex::getCoords() {
return coords;
}
vec3 Vertex::getNormals() {
return normals;
}
vec2 Vertex::getTextures() {
return textures;
}
vector<int> Verte... |
#include "RenderList.h"
#include <Engine/Output/Graphics/Scene/GraphicsScene/GraphicsScene.h>
#include <Engine/Output/Graphics/Scene/TiledSpace/TiledSpace3D/TiledSpace3D.h>
RenderList::RenderList(void)
{}
RenderList::~RenderList(void)
{}
MagicList<GraphicsObject>::AddressDerived* RenderList::AddObject(Graphics... |
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... |
// 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/history/url_index_private_data.h"
#include <algorithm>
#include <functional>
#include <iterator>
#include <limits>
#include ... |
// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2019 The DreamTeam3 Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
//#define ENABLE_DT3_DEBUG
#include "core_io.h"
#include "governance-c... |
# pragma once
# include <Siv3D.hpp>
# include "Axis.hpp"
namespace asc
{
using namespace s3d;
/// <summary>
/// 軸グループ
/// </summary>
class AxisGroup
{
private:
Array<Axis> m_axes;
template <class Type, class ...Args>
void append(const Type& axis, const Args&... args)
{
append(axis);
append(arg... |
#include <iostream>
#include "TChain.h"
#include "TH1F.h"
#include "TList.h"
#include "TRandom3.h"
#include "TGeoGlobalMagField.h"
#include "AliAnalysisTask.h"
#include "AliAnalysisManager.h"
#include "AliESDEvent.h"
#include "AliESDInputHandler.h"
#include "AliESDtrack.h"
#include "AliAODEvent.h"
#include "AliHeader.h... |
#include <vector>
struct vec3d
{
float x, y, z;
};
struct triangle
{
vec3d p[3];
};
struct mesh
{
std::vector<triangle> mVector;
void createCube()
{
mVector = {
// SOUTH
{ 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f, 1.0f, 0.0f },
{ 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f, 0.0f, 0.0f },
... |
/**************************************************************
*
* 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 y... |
#include <memory>
#include <string>
#include <utility>
#include "base_test.hpp"
#include "gtest/gtest.h"
#include "storage/chunk_encoder.hpp"
#include "storage/dictionary_segment.hpp"
#include "storage/segment_encoding_utils.hpp"
#include "storage/value_segment.hpp"
#include "storage/vector_compression/fixed_size_byt... |
/*
Apoorvaa has created an elevated roof. She wants to know how much water can she save during rain.
Given n non negative integers representing the elevation map where width of every bar is 1, Find the maximum water that she can save.
*/
#include<bits/stdc++.h>
using namespace std;
int findWater(in... |
#include "BetaStar.h"
using namespace sc2;
// returns the nearest neutral unit of type target_unit_type
// if there is none, returns nullptr
const Unit* BetaStar::FindNearestNeutralUnit(const Point2D& start, UnitTypeID target_unit_type) {
Units units = Observation()->GetUnits(Unit::Alliance::Neutral);
float... |
// -----------------------------------------------------------------------------
// FILE: GraphUpdateThread.cpp
// DESCRIPTION: thread used for reading and displaying data results from library
// DATE: 2013-05-06
// AUTHOR(s): Lime Microsystems
// REVISIONS:
// ------------------------------------------------------... |
// 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 "chrome/browser/ui/views/autofill/password_generation_popup_view_views.h"
#include "base/macros.h"
#include "base/strings/string16.h"
#include "... |
/*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
This is an auto-generated file. Do n... |
// -*- 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
//
//===------------... |
//========================================================
// Hazi feladat keret.
// A //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// sorokon beluli reszben celszeru garazdalkodni, mert
// a tobbit ugyis toroljuk.
// A Hazi feladat csak ebben a fajlban lehet
// Tilos:
// - mast "beincludolni", illetv... |
#include <iostream>
#include <math.h>
#include <fstream>
#include <string>
#include <sstream>
#include "Vector.h"
using namespace std;
double antiderivativeAt(double m, double b, double xVal)
{
return m*xVal*xVal/2.0 + b*xVal;
}
double area(double x1, double y1, double x2, double y2, int N)
{
double m = (y2-y1)/... |
class Solution
{
public:
int minPathSum(vector<vector<int>> &grid)
{
int n = grid.size();
if (n == 0)
return 0;
int m = grid[0].size();
if (m == 0)
return 0;
for (int i = n - 1; i >= 0; --i)
for (int j = m - 1; j >= 0; --j)
... |
/*
* 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; ... |
//
// Created by Gael Aglin on 2019-12-23.
//
#include "rCover.h"
bool isZero(float x){
return x == 0.0;
}
RCover::RCover(DataManager *dmm, vector<float>* weights):dm(dmm) {
nWords = (int)ceil((float)dm->getNTransactions()/M);
coverWords = new stack<bitset<M>>[nWords];
validWords = new int[nWords];
... |
#include "tools.h"
#include <iostream>
using Eigen::VectorXd;
using Eigen::MatrixXd;
using std::vector;
using std::cout;
using std::endl;
Tools::Tools() {}
Tools::~Tools() {}
VectorXd Tools::CalculateRMSE(const vector<VectorXd> &estimations,
const vector<VectorXd> &ground_truth) {
/*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.