text stringlengths 5 1.04M |
|---|
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ssm/model/GetMaintenanceWindowExecutionTaskInvocationResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/Strin... |
/*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
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 condit... |
#pragma once
#include <fstream>
#include <iostream>
#include <boost/static_assert.hpp>
#include <regex>
// own includes ------------------------------------------------------------
#include "enum/enum.hpp"
#include "spectral_basis.hpp"
#include "spectral_basis_factory_base.hpp"
#include "spectral_elem.hpp"
#include "... |
/*------------------------------------------------------------------------------
* Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team
*
* Distributable under the terms of either the Apache License (Version 2.0) or
* the GNU Lesser General Public License, as specified in the COPYING file.
-------------------... |
#include "envoy/service/auth/v3/external_auth.pb.h"
#include "common/network/address_impl.h"
#include "common/protobuf/protobuf.h"
#include "extensions/filters/common/ext_authz/check_request_utils.h"
#include "extensions/filters/common/ext_authz/ext_authz.h"
#include "test/mocks/http/mocks.h"
#include "test/mocks/ne... |
/*
* Copyright 2017-2019 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "... |
/**
* @file testPoseWithNode.cpp
* @brief Unit test for PoseWithNode and calculations
* @author Yun Chang
*/
#include <CppUnitLite/TestHarness.h>
#include <limits>
#include <random>
#include "KimeraRPGO/utils/geometry_utils.h"
using KimeraRPGO::PoseWithNode;
/* ********************************************... |
/*=============================================================================
Copyright (c) 2001-2007 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)
========================================... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2012, 2013 <dhbaird@gmail.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, including without limitation the righ... |
#include <task.hpp>
namespace core {
task_t::task_t( timestamp_t timestamp, address_t address ) noexcept
: m_timestamp( timestamp )
, m_address( address )
{
}
task_t::task_t( datagram_t && datagram ) noexcept( false )
: m_address( datagram.get_address() )
{
const auto & bytes = datagram.get_bytes(... |
// RUN: %clang_cc1 -no-opaque-pointers %s -triple i386-unknown-unknown -emit-llvm -o - | FileCheck %s
struct A {
virtual int operator-();
};
void f(A a, A *ap) {
// CHECK: call noundef i32 @_ZN1AngEv(%struct.A* {{[^,]*}} %a)
-a;
// CHECK: call noundef i32 %
-*ap;
}
|
#include "RfgUtil.h"
#include "Log.h"
#include "common/filesystem/Path.h"
#include "application/Config.h"
namespace RfgUtil
{
string CpuFilenameToGpuFilename(std::string_view cpuFilename)
{
//Todo: Support more extensions
string extension = Path::GetExtension(cpuFilename);
string filena... |
// 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 "sync/internal_api/public/test/sync_manager_factory_for_profile_sync_test.h"
#include "sync/internal_api/test/sync_manager_for_profile_sync_test... |
/***********************************************************************************************************************
* 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 <gtest/gtest.h>
#include <boost/math/distributions.hpp>
#include <boost/random/mersenne_twister.hpp>
#include <stan/math/prim/mat.hpp>
#include <test/unit/math/prim/mat/prob/vector_rng_test_helper.hpp>
#include <limits>
#include <vector>
class InvChiSquareTestRig : public VectorRealRNGTestRig {
public:
Inv... |
/* 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 t... |
#pragma once
#include <ork/kernel/string/string.h>
////////////////////////////////////////////////////////////////////////////////
namespace ork::reflect::serdes {
////////////////////////////////////////////////////////////////////////////////
using ulong_t = unsigned long int;
using uint_t = unsigned int;
template... |
/*=========================================================================
Program: Visualization Toolkit
Module: TestTextBoundingBox.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 softw... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// 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 <miner.h>
#include <amount.h>
#include <chain.h>
#include <chainparams.... |
#include "window.h"
#include <stdexcept>
using namespace std;
void mouse(GLFWwindow *window, double xpos, double ypos);
unique_ptr<GLFWwindow, function<void(GLFWwindow*)>> Window::window
= unique_ptr<GLFWwindow, function<void(GLFWwindow*)>>(nullptr, glfwDestroyWindow);
pair<GLsizei, GLsizei> Window::dimension = {0,0... |
//q11369.cpp - 2011/11/11
//accepted at
//run time = 0.128 / 0.124c
#include <stdio.h>
void quicksort( int start, int end, int array[] )
{
if( start < end )
{
int piv = start;
int i;
int temp;
for( i = start+1 ; i < end ; i++ )
if( array[i] > array[star... |
// Copyright (c) 2009-2018 The Rain 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 <primitives/block.h>
#include <primitives/transaction.h>
#include <script/script.h>
#include <scr... |
// ==++==
//
//
// Copyright (c) 2006 Microsoft Corporation. All rights reserved.
//
// The use and distribution terms for this software are contained in the file
// named license.txt, which can be found in the root of this distribution.
// By using this software in any fashion, you are agreeing to ... |
// Copyright 2012 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... |
//
// HTTPRequestTest.cpp
//
// $Id: //poco/1.4/Net/testsuite/src/HTTPRequestTest.cpp#4 $
//
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "HTTPRequestTest.h"
#include "Poco/CppUnit/TestCaller.h"
#include "Poco/CppUni... |
#include "Gc.h"
#include "ChannelTableStruct.h"
#include "RollbackManager.h"
#include "HashTable.h"
unsigned long ___HashCodeInt(const int key)
{
return key;
}
bool ___EqualInt(const int a, const int b)
{
return a == b;
}
typedef SimpleHashTable<int, int, 1024, ___HashCodeInt, ___EqualInt> HashType;
using namespa... |
#include "claimtrie.h"
#include "coins.h"
#include "hash.h"
#include <boost/scoped_ptr.hpp>
#include <iostream>
#include <algorithm>
std::vector<unsigned char> heightToVch(int n)
{
std::vector<unsigned char> vchHeight;
vchHeight.resize(8);
vchHeight[0] = 0;
vchHeight[1] = 0;
vchHeight[2] = 0;
... |
// Copyright (c) 2011-2019 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 <chainparams.h>
#include <coins.h>
#include <consensus/consensus.h>
#include <consensus/merkle.h>
#include <consensu... |
/*=========================================================================
Program: Visualization Toolkit
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 distributed WITHOUT ANY WARRAN... |
/*
Copyright 2017-present Zoltan Somogyi (AI-TOOLKIT), All Rights Reserved
You may use this file only if you agree to the software license:
AI-TOOLKIT Open Source Software License - Version 2.1 - February 22, 2018:
https://ai-toolkit.blogspot.com/p/ai-toolkit-open-source-software-license.html.
Also included with th... |
/* console Trainer for RL Competition
* Copyright (C) 2007, Brian Tanner brian@tannerpages.com (http://brian.tannerpages.com/)
*
* 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
... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2021, PickNik, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condi... |
#pragma comment(linker, "/stack:640000000")
#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... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... |
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2020 RDK Management
*
* 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 cop... |
// Copyright (C) 2020 T. Zachary Laine
//
// 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)
// Warning! This file is autogenerated.
#include <boost/text/collation_table.hpp>
#include <boost/text/collate.hpp>
#incl... |
// EightQueens.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <bitset>
using namespace std;
#define NUM_ROWS_COLS 8
typedef struct _attacked_t {
bitset<NUM_ROWS_COLS> rows;
bitset<NUM_ROWS_COLS> cols;
bitset<NUM_ROWS_COLS * 2 - 1> s... |
/*
* Copyright 2021 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "experimental/graphite/src/UniformCache.h"
#include "experimental/graphite/src/ContextUtils.h"
#include "src/core/SkOpts.h"
namespace skgpu {
size_t UniformCache::H... |
#pragma once
#include <cassert>
#include "gl_1_5.h"
#define YKS_CHECK_GL assert(glGetError() == GL_NO_ERROR)
#ifdef _DEBUG
#define YKS_CHECK_GL_PARANOID assert(glGetError() == GL_NO_ERROR)
#else
#define YKS_CHECK_GL_PARANOID
#endif
|
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2017-2018 The Carypto Coin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "masternode-helper... |
#include <iostream>
#include <string>
#include <vector>
#include <fstream>
#include <sstream>
#include <utility>
#include <cstdlib>
#include <ctime>
#include <cmath>
#include <unordered_map>
#include <functional>
#include <chrono>
using namespace std::chrono;
using namespace std;
void bitAdd(int a, int b, int& result... |
/*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on
* the source.
*/
/*
* $Logfile: /Freespace2/code/GlobalIncs/version.cpp $
* $Revision: 307 $... |
#include "brick.hpp"
#include "gtest/gtest.h"
using AST = brick::AST::AST;
using std::unique_ptr;
using std::make_unique;
TEST(ConstructionFromParse, Case1) {
unique_ptr<AST> ast = brick::AST::parse("3+4");
AST correct(make_unique<brick::AST::addition_node>());
correct.add_child(make_unique<brick::AST::number_... |
#include <iostream>
#include <map>
#include <string>
#include <vector>
#include <utility>
int main()
{
std::map<std::string, std::vector<std::pair<std::string, std::string>>> fam;
std::string forename, surname, dob;
std::cout << "Enter surname: " << std::flush;
while (std::cin >> surname) {
std... |
/**
* Copyright (c) 2021 OceanBase
* OceanBase Database Proxy(ODP) is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ... |
#ifndef _ML_TERMINAL_HPP_
#define _ML_TERMINAL_HPP_
#include <modus_core/gui/TextLog.hpp>
namespace ml::ImGuiExt
{
// TERMINAL
struct ML_NODISCARD Terminal final : non_copyable, trackable
{
public:
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
using allocator_type = typena... |
////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 Realm 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/li... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
/*
* Copyright © 2016 Mozilla Foundation
*
* This program is made available under an ISC-style license. See the
* accompanying file LICENSE for details.
*/
#define NOMINMAX
#include "cubeb_log.h"
#include "cubeb_ringbuffer.h"
#include <cstdarg>
#ifdef _WIN32
#include <windows.h>
#else
#include <time.h>
#endif
c... |
// Copyright (c) 2019 The Zel developers
// Copyright (c) 2019 The Zcash developers
// Original code from: https://gist.github.com/laanwj/0e689cfa37b52bcbbb44
/*
To set up a new alert system
----------------------------
Create a new alert key pair:
openssl ecparam -name secp256k1 -genkey -param_enc explicit -outfor... |
/**
* Copyright (c) 2007-2012, Timothy Stack
*
* 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) 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 for... |
// Advent of Code 2019
// Peter Westerström (digimatic)
#include "config.h"
#include <common/common.h>
#include <algorithm>
#include <cassert>
#include <deque>
#include <functional>
#include <iostream>
#include <limits>
#include <map>
#include <regex>
#include <stdexcept>
#include <string>
#include <tuple>
#include ... |
#include "gear_core_common.h"
#include "Mesh.h"
#include "Material.h"
using namespace gear;
using namespace objects;
using namespace miru;
using namespace miru::crossplatform;
Mesh::Mesh(CreateInfo* pCreateInfo)
{
m_CI = *pCreateInfo;
ModelLoader::SetDevice(m_CI.device);
data = ModelLoader::LoadModelData(m_CI.fi... |
#include "DlgSongs.h"
#include <assert.h>
#include <QFileDialog>
#include <QDebug>
#include <QProcessEnvironment>
#include <QMessageBox>
#include <QComboBox>
#include <QMenu>
#include <QFile>
#include <QInputDialog>
#include "ui_DlgSongs.h"
#include "Database.h"
#include "MetadataScanner.h"
#include "AVPP.h"
#include "... |
#pragma once
#include <Eigen/Dense>
#include "pnc/whole_body_controllers/task.hpp"
/// class JointTask
class JointTask : public Task {
public:
/// \{ \name Constructor and Destructor
JointTask(RobotSystem *_robot);
virtual ~JointTask(){};
/// \}
private:
void update_cmd();
void update_jacobian();
};
/... |
// license:BSD-3-Clause
// copyright-holders:Curt Coder
/***************************************************************************
Motorola MC2661/MC68661 Enhanced Programmable Communications Interface
***************************************************************************/
#include "emu.h"
#include "mc266... |
// Copyright 2019 Arthur Sonzogni. All rights reserved.
// Use of this source code is governed by the MIT license that can be found in
// the LICENSE file.
#include <smk/BlendMode.hpp>
namespace smk {
/// @brief destination = source.
const BlendMode BlendMode::Replace = {
GL_FUNC_ADD, GL_FUNC_ADD, GL_ONE, GL_ZER... |
/*
* Copyright (c) 2012-2017, 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, p... |
#include <iostream>
#include <vector>
using namespace std;
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
void printList(ListNode* list)
{
cout << list->val << " ";
for ( ; list->next != NULL; )
{ list = list->next;
co... |
// 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/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-li... |
/***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |_| |_|
*
*
* Copyright 2018-present, Leoni... |
// Copyright 2018, Bosch Software Innovations 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 applicabl... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
#include <connection_mock.h>
#include <test_error.h>
#include <ozo/impl/async_request.h>
#include <ozo/time_traits.h>
#include <gtest/gtest.h>
#include <gmock/gmock.h>
namespace {
namespace hana = boost::hana;
using namespace testing;
using namespace ozo::tests;
using callback_mock = callback_gmock<connection_ptr... |
/*
Copyright (C) 2021 Mike Kipnis
This file is part of DistributedATS, a free-software/open-source project
that integrates QuickFIX and LiquiBook over OpenDDS. This project simplifies
the process of having multiple FIX gateways communicating with multiple
matching engines in realtime.
Permission ... |
/*
* Author: Yevgeniy Kiveisha <yevgeniy.kiveisha@intel.com>
* Copyright (c) 2014 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
* ... |
// 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 "base/callback_helpers.h"
#include "base/bind.h"
#include "base/callback.h"
#include "gtest/gtest.h"
namespace {
void Increment(int* value) {
... |
// Part of measurement-kit <https://measurement-kit.github.io/>.
// Measurement-kit is free software. See AUTHORS and LICENSE for more
// information on the copying conditions.
#ifndef MEASUREMENT_KIT_NETTESTS_BASE_TEST_HPP
#define MEASUREMENT_KIT_NETTESTS_BASE_TEST_HPP
#include <measurement_kit/nettests/runnable.hpp>... |
#include <wx/fontdlg.h>
#include "fontdialog.h"
ChangeFont::ChangeFont(const wxString & title)
: wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(300, 200))
{
wxPanel *panel = new wxPanel(this, -1);
wxMenuBar *menubar = new wxMenuBar;
wxMenu *file = new wxMenu;
file->Append(ID_FONTDIALOG, wxT(... |
// github.com/andy489
#include <stdio.h>
#include <vector>
using namespace std;
const int mxN = 1e5;
int a[mxN], n;
vector<int> t[2 * mxN];
void init() {
scanf("%d", &n);
for (int i = 0; i < n; ++i)
scanf("%d", a + i);
}
void build(int v, int tl, int tr) {
if (tl == tr)
t[v] = vector<i... |
/***
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object ... |
/*
MIT License
Copyright (c) 2020 Nicolai Trandafil
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, ... |
// C program for Knight Tour problem
#include<stdio.h>
#define N 8
int solveKTUtil(int x, int y, int movei, int sol[N][N],
int xMove[], int yMove[]);
/* A utility function to check if i,j are valid indexes
for N*N chessboard */
bool isSafe(int x, int y, int sol[N][N])
{
return ( x ... |
/******************************************************************************
* $Id: rmfdataset.cpp 33987 2016-04-17 14:56:07Z rouault $
*
* Project: Raster Matrix Format
* Purpose: Read/write raster files used in GIS "Integratsia"
* (also known as "Panorama" GIS).
* Author: Andrey Kiselev, dron@a... |
/*******************************************************************************
* Copyright (c) 2015-2019 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) 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.
// Note: any code in this file MUST be async-signal safe.
#include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h"
#include <stddef.h>
#includ... |
#include "World.h"
EagleBird::World::World(const uint32_t x_size, const uint32_t y_size, const uint32_t z_size)
{
_size_x = x_size;
_size_y = y_size;
_size_z = z_size;
int seed = rand();
_world_generator = new WorldGeneration::WorldGenerator(_size_x, _size_y, _size_z, seed);
_world_generator->GenerateWorld();
}... |
/*
* OPCODE - Optimized Collision Detection
* http://www.codercorner.com/Opcode.htm
*
* Copyright (c) 2001-2008 Pierre Terdiman, pierre@codercorner.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 u... |
#include "LevelSelectionWinodw.h"
LevelSelectionWindow::LevelSelectionWindow(const unsigned short& _mode)
: mode(_mode),
levelsNumber(Levels::levelsNumber[_mode])
{
backButton = new MenuButton(L"Назад", sf::Vector2f(150, 50), sf::Vector2f(0, 550));
backButton->OnClick.add(this, &LevelSelectionWindow::b... |
#include <Pythia8/Pythia.h>
#include <fmt/core.h>
#include <fmt/format.h>
auto main() -> int {
Pythia8::SigmaPr
fmt::print("{}", "hello");
return 0;
} |
#include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <string>
#include <iomanip>
#include <climits>
using namespace std;
int getBitNum(unsigned long long int n)
{
int ans = 0;
while (n)
{
ans++;
n >>= 1;
}
return ans;
}
int main()
... |
/******************************************************************************
* Copyright (c) 2017 Philipp Schubert.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Philipp Schubert and others
**********************... |
// Copyright (c) 2014-2019, The Motif Project
//
// 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... |
//
// cpp11/can_require_concept_not_applicable_unsupported.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy ... |
#pragma once
#include "common_srv/Block.hpp"
#include <math.h>
#include "ControllerMessage.hpp"
#include "PID_values.hpp"
#include "common_srv/FloatMsg.hpp"
#include "Controller.hpp"
#include "common_srv/Vector3DMessage.hpp"
#include "common_srv/FloatMsg.hpp"
#include "ButterFilter_2nd_200Hz.hpp"
#include "SwitchOutMsg... |
//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2019 Ryo Suzuki
// Copyright (c) 2016-2019 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include <freetype/ft2build.h>
#... |
#include <iostream>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl/registration/ndt.h>
#include <pcl/filters/approximate_voxel_grid.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <boost/thread/thread.hpp>
int
main (int argc, char** argv)
{
// Loading first scan of room.
pcl::Poi... |
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
#include "duckdb/common/types/hugeint.hpp"
#include "duckdb/common/exception.hpp"
#include "duckdb/common/algorithm.hpp"
#include "duckdb/common/limits.hpp"
#include <cmath>
using namespace std;
namespace duckdb {
//===--------------------------------------------------------------------===//
// String Conversion
//... |
#include "BatteryIcon.hpp"
#include "Assets/Icons.hpp"
namespace Pages::Elements
{
bool BatteryIcon::check_dependencies_changed()
{
bool battery_changed = battery_state().new_value_available();
bool blink_changed = false;
if (battery_state().is_valid() && battery_state().get() == BATT... |
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2014 Laurent Gomila (laurent.gom@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 da... |
#include <maplab-common/test/testing-entrypoint.h>
#include <aslam/common/memory.h>
#include <aslam/frames/visual-nframe.h>
#include <gtest/gtest.h>
#include <map-resources/resource-common.h>
#include "vi-map/unique-id.h"
#include "vi-map/vertex.h"
namespace vi_map {
class VertexResourcesTest : public ::testing::Te... |
// Copyright (c) 2014-2017 The Adn Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "activemasternode.h"
#include "consensus/validation.h"
#include "darksend.h"
#include "init.h"
#include "governance.... |
/***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |_| |_|
*
*
* Copyright 2018-present, Leoni... |
#include "ModuleWindow.h"
#include "WholesomeEvent.h"
#include <SDL2/SDL_vulkan.h>
ModuleWindow::ModuleWindow() : Module(), window(nullptr, SDL_DestroyWindow)
{
DEBUG::LOG("CREATING MODULE WINDOW", nullptr);
}
ModuleWindow::~ModuleWindow()
{
}
ENGINE_STATUS ModuleWindow::Init()
{
ENGINE_STATUS ret = ENGINE_STAT... |
// Copyright 2019 ETH Zürich, Thomas Schöps
//
// 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 follow... |
// -*-c++-*-
/*!
\file self_intercept_v13.cpp
\brief self intercept predictor for rcssserver v13+ Source File
*/
/*
*Copyright:
Copyright (C) Hidehisa AKIYAMA
This code is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Fr... |
#include<bits/stdc++.h>
using namespace std;
const int N = 205, inf = 1e9;
int d[N], vis[N], par[N];
int g[N][N], ans[N * N], last[N], dp[N * N], id[N][N], W[N * N];
int32_t main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
int t, cs = 0; cin >> t;
while (t--) {
int n, m; cin >> n >> m;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.