text stringlengths 7 961k |
|---|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
#include "cbase.h"
#include "gcsdk/gcsdk_auto.h"
#include "base_gcmessages.pb.h"
#include "party.h" |
#include <bits/stdc++.h>
#define int long long
#define endl '\n'
#define pb push_back
#define MOD 1e9 + 7
#define fastIO ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
using namespace std;
const int N = 1e5 + 5;
int arr[N];
void solve(int test){
int n;
cin>>n;
for(int i=0; i<n; i++) cin>>arr[i... |
// Copyright 2012 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/modules.h"
#include "src/ast-value-factory.h"
namespace v8 {
namespace internal {
void ModuleDescriptor::AddLocalExport(const AstRawSt... |
// { dg-do compile { target c++11 } }
// 2007-10-19 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2007-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public ... |
#include "c8-common/errors/SystemError.hpp"
#include "c8-named-pipe/Pipe.hpp"
#include <fstream>
#include <gmock/gmock.h>
#include <thread>
namespace C8::NamedPipe {
using namespace testing;
using namespace std::string_literals;
struct TestPipe : public Test {
void TearDown() override {
if (t.joinable... |
// RH_RF24.cpp
//
// Copyright (C) 2011 Mike McCauley
// $Id: RH_RF24.cpp,v 1.14 2015/08/13 02:45:47 mikem Exp $
#include <RH_RF24.h>
// Generated with Silicon Labs WDS software:
#include "radio_config_Si4460.h"
// Interrupt vectors for the 3 Arduino interrupt pins
// Each interrupt can be handled by a different inst... |
// Copyright 2016 The Fuchsia 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 "magma_util/dlog.h"
#include "magma_util/retry_allocator.h"
#include "magma_util/simple_allocator.h"
#include "gtest/gtest.h"
#include <list>
#de... |
#ifndef SAGA_IMPL_PACKAGES_CPR_CPR_JOB_SERVICE_CPI_HPP
#define SAGA_IMPL_PACKAGES_CPR_CPR_JOB_SERVICE_CPI_HPP
#if defined(__WAVE__) && defined(SAGA_CREATE_PREPROCESSED_FILES)
#pragma wave option(preserve: 2, line: 0, output: "preprocessed/cpr_job_service_cpi.hpp")
#endif
// Copyright (c) 2005-2009 Hartmut Kaiser
//
... |
//==============================================================================
// 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 "verify_program.hpp"
#include <migraphx/program.hpp>
#include <migraphx/generate.hpp>
#include <migraphx/make_op.hpp>
struct test_equal_brcst : verify_program<test_equal_brcst>
{
migraphx::program create_program() const
{
migraphx::program p;
auto* mm = p.get_main_module();
mig... |
/**
* @file dimension.cc
*
* @section LICENSE
*
* The MIT License
*
* @copyright Copyright (c) 2017-2021 TileDB, Inc.
*
* 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 re... |
#include "tesseract/training/normstrngs.h"
#include "tesseract/unittest/normstrngs_test.h"
namespace tesseract {
namespace {
// Test some random Myanmar words.
TEST(ValidateMyanmarTest, GoodMyanmarWords) {
string str = "လျှာကသိသည် "; // No viramas in this one.
ExpectGraphemeModeResults(str, UnicodeNormMode::kNF... |
#include "nstd_mat_apply.h"
#include "nstd_mat_task_list.h"
#include "wfApp.h"
#include <wx/choicdlg.h>
#include "nstd_app_search.h"
#include "nstd_task_author.h"
#include "nstd_app_item_units.h"
#include <wx/textfile.h>
#include <wx/clipbrd.h>
#include "ins_nonstd_proc_log.h"
#include "nstd_app_unit_list.h"
#include "... |
//===-- CanonicalIncludes.h - remap #include headers-------------*- 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
//
//===---------------------------... |
#include <fstream>
#include <sstream>
#include <iostream>
#include <iterator>
#include <fmt/format.h>
#include <numeric>
#include <string>
#include <vector>
#include <list>
#include <functional>
#include <iomanip>
#include <set>
#include <utility>
#include <range/v3/all.hpp>
int main()
{
std::int64_t n = 1;
//1257... |
#pragma once
#include "stl.hpp"
#include <json11/json11.hpp>
#include "types.hpp"
#include "../http.hpp"
namespace github {
github::User parse_user(const json11::Json& json);
github::Repo parse_repo(const json11::Json &json);
void get_users(mx3::Http http, optional<uint64_t> since, function<void(vector<github::User>)... |
#include "StdAfx.h"
#include "SystemClass.h"
SystemClass::SystemClass(void)
{
m_Input = 0;
m_Graphics = 0;
}
SystemClass::SystemClass(const SystemClass& other)
{
}
SystemClass::~SystemClass(void)
{
}
bool SystemClass::Initialize()
{
int screenWidth, screenHeight;
bool result;
// Initialize the width and heig... |
/**
* Unit test for dictionary, feature2vec
*/
#include <time.h>
#include <vector>
#include <atomic>
#include <memory>
#include <set>
#include <chrono>
#include <iostream>
#include <queue>
#include <tuple>
#include <stdexcept>
#include "test.h"
#include "args.h"
#include "dictionary.h"
#include "feature2vec.h"
n... |
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
namespace... |
/*
* Copyright (C) 2015 The Android Open Source Project
*
* 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 2020 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... |
#pragma once
#include "stdafx.hpp"
namespace Summer { namespace OpenGL {
class ShaderBase {
friend class Program;
private:
GLuint _shader;
protected:
ShaderBase(GLenum type, char const* source, char const* name);
public:
ShaderBase(ShaderBase const&) = delete;
virtual ~ShaderBase();
};
class ShaderV... |
// Copyright (c) 2019 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/metrics/perf/profile_provider_chromeos.h"
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/command_l... |
#include "qmlbannerlistmodel.h"
#include "qmlbannerlistitem.h"
#include "../../CSCPublicAPI/jsonactivepromotionsparser.h"
#include "../../CSCPublicAPI/jsonsingleactivepromotion.h"
#include <QDebug>
QmlBannerListModel::QmlBannerListModel( QObject* a_pParent )
: QmlListModel( new QmlBannerListItem( 0 ), a_pParent )
... |
/*
* Copyright (c) 2000-2005 The Regents of The University of Michigan
* Copyright (c) 2013 Advanced Micro Devices, Inc.
* Copyright (c) 2013 Mark D. Hill and David A. Wood
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... |
// This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#include "caf/scheduler/test_coordinator.hpp"
#include <limits>
#include "caf/actor_syst... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Copyright (c) 2014-2017 The CSIGNAL Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "noui.h"
#include "ui... |
/*******************************************************************************
License Agreement
For Open Source Computer Vision Library
(3-clause BSD License)
Copyright (C) 2009, Willow Garage Inc., all rights reserved.
Redistribution and use in sour... |
#include "Panels/p1Scene.h"
#include "Core/Application.h"
#include "Modules/m1Window.h"
#include "Modules/m1Camera3D.h"
#include "Modules/m1Render3D.h"
#include "Modules/m1MapEditor.h"
#include "Modules/m1Resources.h"
#include "Resources/r1Map.h"
#include "Tools/OpenGL/Viewport.h"
#include "Tools/System/Logger.h"
... |
#include <iostream>
#include <math.h>
#include "gcp/program/Program.h"
#include "gcp/models/GaussianClusterModel.h"
#include "gcp/util/Exception.h"
#include "gcp/util/LogStream.h"
#include "gcp/util/IoLock.h"
#include "gcp/util/Exception.h"
#include "gcp/pgutil/PgUtil.h"
#include "gcp/fftutil/Dft2d.h"
#include "gc... |
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrTextureStripAtlas.h"
#include "SkPixelRef.h"
#include "SkTSearch.h"
#include "GrTexture.h"
#ifdef SK_DEBUG
#define VALIDATE this->validate()
#else
#define... |
/////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2010-2010
//
// 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.boost... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/websockets/websocket_extension_parser.h"
#include <string>
#include "net/websockets/websocket_extension.h"
#include "testing/gtest/include... |
#include "devavxprng.h"
#include <mpi.h>
#include <fcntl.h>
#include "SFMTAVX2search.hpp"
#include "AlgorithmSIMDEquidistribution.hpp"
#include <MTToolBox/AlgorithmEquidistribution.hpp>
#include <MTToolBox/AlgorithmReducibleRecursionSearch.hpp>
#include <MTToolBox/period.hpp>
#include <NTL/GF2X.h>
#include <errno.h>
#i... |
/******************************************************************************
Copyright 2019 Allied Telesis Labs 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:
1. Redistributions of source ... |
/* =====================================================================================
TChem version 2.0
Copyright (2020) NTESS
https://github.com/sandialabs/TChem
Copyright 2020 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Governme... |
#include "ofxAppLinuxLayer.h"
//--------------------------------------------------------------
void ofxAppLinuxLayer::setup(){
ofSetOrientation(OF_ORIENTATION_DEFAULT);
ofAddListener(ofAppEvent::events, this, &ofxAppLinuxLayer::triggerEvent);
manager = new ofxAppManager();
manager->setup();
}
//-... |
#include <iostream>
//#include <iomanip>
//#include <fstream>
//#include <algorithm>
#include <string>
#include <cstring>
#include <cstdio>
//#include <cstdlib>
//#include <set>
using namespace std;
typedef long long int64;
#define DBG 0
#define ShowLine DBG && cout<<__LINE__<<">>| "
#define dout DBG && cout<<__LINE_... |
#include "sass.h"
#include <cstdio>
int main() {
printf("libsass version %s\t language version %s\n", libsass_version(), libsass_language_version());
return 0;
} |
/**
* @file stripPackage.cpp
* @brief Strips the given package from the given SBML file.
* @author Frank T. Bergmann
*
* This file is part of libSBML. Please visit http://sbml.org for more
* information about SBML, and the latest version of libSBML.
*/
#include <iostream>
#include <sbml/SBMLTypes.h>
#include ... |
/*
*
* Copyright (c) 2021 Project CHIP Authors
* Copyright (c) 2019 Google LLC.
* 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
*
* h... |
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <fstream>
#include <iterator>
#include <limits>
#include <numeric>
#include <sstream>
#include <stdexcept>
#include <vector>
#include "engines_util/test_case.hpp"
#i... |
/*
* EDDL Library - European Distributed Deep Learning Library.
* Version: 0.7
* copyright (c) 2020, Universidad Politécnica de Valencia (UPV), PRHLT Research Centre
* Date: April 2020
* Author: PRHLT Research Centre, UPV, (rparedes@prhlt.upv.es), (jon@prhlt.upv.es)
* All rights reserved
*/
#include <cstdio>
#include... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/dns/dns_transaction.h"
#include <deque>
#include <string>
#include <utility>
#include <vector>
#include "base/big_endian.h"
#include "... |
/*=============================================================================
SkyDome.cpp
Project: Sonata Engine
Author: Julien Delezenne
=============================================================================*/
#include "SkyDome.h"
#include "Graphics/System/RenderSystem.h"
#include "Graphics/SceneManager.h"
#... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2018-2019 The Safe Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcconsole.... |
#include <iostream>
#include <string>
using namespace std;
#define ll long long
int main()
{
int t;
ll n, m, temp, x, c, ans;
cin >> t;
while (t--)
{
ans = 0;
cin >> n >> m;
while (m--)
{
temp = 1;
cin >> x;
while (x--)
{
cin >> c;
temp *= c;
temp %= n;
}
ans += temp;
ans... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2019 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php... |
/*
-----------------------------------------------------------------------------------------------
Copyright (C) 2013 Henry van Merode. All rights reserved.
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 ... |
///////////////////////////////////////////////////////////////////////////////
///
/// \file SearchView.hpp
/// Search View provides generic search functionality.
///
/// Authors: Chris Peters
/// Copyright 2010-2012, DigiPen Institute of Technology
///
////////////////////////////////////////////////////////////////... |
/*
* Copyright (C) 2021 The Android Open Source Project
*
* 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 (c) 2021 Project CHIP 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... |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @project Open Space Toolkit ▸ Physics
/// @file OpenSpaceToolkit/Physics/Coordinate/Frame/Providers/GCRF.hpp
/// @author Lucas Br... |
/*
* Copyright (c) 2021, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <Kernel/Process.h>
namespace Kernel {
ErrorOr<FlatPtr> Process::sys$fsync(int fd)
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
TRY(require_promise(Pledge::stdio));
auto description = TRY(open_file_d... |
#pragma once
#include "pathData.hpp"
#include "obstacleGrid.hpp"
#include <SFML/Graphics.hpp>
#include <deque>
namespace ph {
enum class AIMode {
normal,
zombieAlwaysWalkRandomly
};
struct PathMode
{
Path mPath;
bool mIsAttackingPath = false;
};
class AIManager
{
public:
PathMode getZombiePath(const sf::Vec... |
/*
This file is part of the Dynarithmic TWAIN Library (DTWAIN).
Copyright (c) 2002-2021 Dynarithmic Software.
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.... |
//2018.12.8
//将单链表的每K个节点之间逆序
//
#include <iostream>
#include <vector>
using namespace std;
#define maxsize 10
class Node
{
public:
int value;
Node *next;
Node():value(NULL), next(NULL){}
};
Node *reverseList(Node *head, Node *tail)
{
Node *cur = head;
Node *pre = NULL;
Node *next = NULL;
w... |
// Generic parameters for MET corrections
//
#include "CondFormats/JetMETObjects/interface/METCorrectorParameters.h"
#include "CondFormats/JetMETObjects/interface/Utilities.h"
#include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <cstdlib>
#include <algorithm>
#include <cmath>
#include <... |
#include "core.h"
// #include "helpers.h"
#include <vector>
Core::Core(int lane, double speed, int debugOn)
{
current_lane = lane;
current_speed = speed;
if (debugOn)
{
cout << "Debug is On" << endl;
debug = true;
}
}
void Core::updateData(int lane, double speed)
{
current_lan... |
// generated from test/snippet/alphabet/nucleotide/@target_alphabet@_literal.cpp.in
//![main]
#include <seqan3/alphabet/nucleotide/dna5.hpp>
int main()
{
using namespace seqan3::literals;
seqan3::dna5_vector sequence1{"ACGTTA"_dna5};
seqan3::dna5_vector sequence2 = "ACGTTA"_dna5;
auto sequence3 = "AC... |
/* 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.
*
* Copyright (c) 2010-2013, ITU/ISO/IEC
* All rights reser... |
/*
* 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... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/Types/generated/red/Event.hpp>
namespace RED4ext
{
namespace ink {
struct DelayedSetStateEvent : red::Event
{
static constexpr const char* NAME... |
/* Copyright 2019-2020 Canaan 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 t... |
//==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#in... |
#include <stan/math/prim/mat.hpp>
#include <gtest/gtest.h>
#include <vector>
// test sum of first n numbers for sum of a
template <typename T>
void test_sum(stan::math::accumulator<T>& a, int n) {
EXPECT_FLOAT_EQ((n * (n + 1)) / 2, a.sum());
}
TEST(MathMatrixPrimMat, accumulateDouble) {
using stan::math::accumula... |
//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2022 Ryo Suzuki
// Copyright (c) 2016-2022 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/MessageBox.hpp>
# include <Siv... |
/**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* 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.
*/
#include <cstdlib>
#include "folly/dynamic.h"
#include "folly/json.h"
#include "logdev... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "shared_test_classes/subgraph/stridedslice_conv.hpp"
#include "ngraph_functions/builders.hpp"
namespace SubgraphTestsDefinitions {
std::string SliceConvTest::getTestCaseName(const testing::TestParamInfo<SliceConvParams>& ... |
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/tasks.h>
#include <px4_platform_common/posix.h>
#include <stdio.h>
#include <string.h>
#include <termios.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <math.h>
#include <poll.h>
#inc... |
/*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Copyright (c) 2005-2006 Dan Marsden
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 "CurlHttp.h"
#include "HttpFactory.h"
#include <memory>
using namespace std;
HttpFactory::HttpFactory()
{
reset();
}
shared_ptr<Http> HttpFactory::get()
{
return m_instance;
}
void HttpFactory::reset()
{
m_instance = make_shared<CurlHttp>();
}
void HttpFactory::setInstance(shared_ptr<Http> Ne... |
// Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* removeNthFromEnd(ListNode* head, int n) {
ListNode* t = new ListNode(-1);
t -> next = head;
... |
#include "mainwindow.h"
#include <iostream>
#include <QApplication>
int main(int argc, char *argv[]) {
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
} |
/* ************************************************************************
* Copyright (c) 2020 Advanced Micro Devices, Inc.
*
* 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 re... |
#ifndef EVENTDETECTION_OPTIONS_HPP__
#define EVENTDETECTION_OPTIONS_HPP__
#include <utilib/OptionParser.h>
class EventDetectionOptions
{
public:
EventDetectionOptions();
void ParseInputs(int argc, char** argv);
void PrintSummary(std::ostream& out);
bool isDefault(std::string option_name);
bool logging... |
/******************************************************************************
* Copyright 2018 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
... |
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018 www.open3d.org
//
// Permissio... |
#pragma once
#include "DynamicLibrary.hpp"
#include <cstdint>
#include <cerrno>
struct ANativeWindowBuffer;
namespace android
{
class GraphicBuffer;
// include/system/window.h
struct android_native_base_t
{
int magic;
int version;
void* reserved[4];
void (*incRef)(str... |
/**
* @file
* @brief Code related to travel exclusions.
**/
#include "AppHdr.h"
#include "exclude.h"
#include <algorithm>
#include <sstream>
#include "cloud.h"
#include "coord.h"
#include "coordit.h"
#include "dgn-overview.h"
#include "english.h"
#include "env.h"
#include "hints.h"
#include "libutil.h"
#include "... |
/* Copyright(c) Sophist Solutions Inc. 1990-1992. All rights reserved */
/*
* $Header: /fuji/lewis/RCS/TallyTests.cc,v 1.13 1992/12/08 17:21:18 lewis Exp $
*
* TODO:
*
* Changes:
* $Log: TallyTests.cc,v $
* Revision 1.13 1992/12/08 17:21:18 lewis
* *** empty log message ***
*
* Revision 1.12 1992/12/... |
/*
* Copyright (C) 2016 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 "Camera.h"
#include <glm\glm.hpp>
Camera::Camera(float fov):
fov(fov),
position(glm::vec3(0.0f, 0.0f, 0.0f)),
forward(glm::vec3(0.0f, 0.0f, -1.0f))
{
setScale(fov);
}
Camera::~Camera() {}
void Camera::setFOV(float fov) {
this->fov = fov;
setScale(fov);
}
void Camera::setScale(float fov) {
... |
// Copyright 2020 Open Source Robotics Foundation, 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 appli... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2017-2018 The SMC developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "script.h"
#include "tinyformat... |
// Copyright (c) 2011-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 "policy/policy.h"
#include "txmempool.h"
#include "util.h"
#include "test/test_clashic.h"
#include <boost/test/uni... |
// $Id: xxStep.cc 4497 2012-05-27 00:33:09Z flaterco $
/* xxStep Get a step from the user. If successful, pass it to
caller.step (newStep).
Copyright (C) 1998 David Flater.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as... |
/**
* \file NormalGravity.hpp
* \brief Header for GeographicLib::NormalGravity class
*
* Copyright (c) Charles Karney (2011-2019) <charles@karney.com> and licensed
* under the MIT/X11 License. For more information, see
* https://geographiclib.sourceforge.io/
*****************************************************... |
#include <algorithm>
#include <imgui.h>
#include <Scan.hpp>
#include "Kanan.hpp"
#include "Log.hpp"
#include "EquipmentOverride.hpp"
using namespace std;
namespace kanan {
static EquipmentOverride* g_equipmentOverride{ nullptr };
static bool g_equipmentOverrideOnLoad;
static int convertFloatColorToInt(const... |
#include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_cpp_Lib
#include <cpp/Lib.h>
#endif
#ifndef INCLUDED_haxe_Exception
#include <haxe/Exception.h>
#endif
#ifndef INCLUDED_haxe_io_Error
#include <haxe/io/Error.h>
#endif
#ifndef INCLUDED_haxe_io_Input
#include <haxe/io/Input.h>
#endif
#ifnd... |
// **********************************************************************
//
// Copyright (c) 2002
// IONA Technologies, Inc.
// Waltham, MA, USA
//
// All Rights Reserved
//
// **********************************************************************
#include <OB/CORBA.h>
#include <OB/Codec.h>
#include <CorbaOut.h>
#i... |
//************************************ bs::framework - Copyright 2018 Marko Pintera **************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "Physics/BsFCollider.h"
#include "Physics/BsRigidbody.h"
nam... |
// strgfun.cpp -- functions with a string argument
#include <iostream>
unsigned int c_in_str(const char * str, char ch);
int main()
{
using namespace std;
char mmm[15] = "minimum"; // string in an array
// some systems require preceding char with static to
// enable array initialization
char *wail = "ul... |
#include "alpaca/config.h"
#include "glog/logging.h"
namespace alpaca {
Status Environment::parse() {
auto error_suffix = " environment variable not set";
if (auto e = std::getenv(api_key_id_env_var_.c_str())) {
api_key_id_ = std::string(e);
} else {
return Status(1, api_key_id_env_var_ + error_suffix... |
#include "coincontroldialog.h"
#include "ui_coincontroldialog.h"
#include "init.h"
#include "bitcoinunits.h"
#include "walletmodel.h"
#include "addresstablemodel.h"
#include "optionsmodel.h"
#include "guiutil.h"
#include "coincontrol.h"
#include <QApplication>
#include <QCheckBox>
#include <QClipboard>
#include <QCol... |
/*
* 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 ... |
/*
*
*/
#include <networkit/community/IsolatedInterpartitionConductance.hpp>
#include <networkit/auxiliary/SignalHandling.hpp>
void NetworKit::IsolatedInterpartitionConductance::run() {
hasRun = false;
Aux::SignalHandler handler;
values.clear();
values.resize(P.upperBound(), 0);
handler.assur... |
#include <fstream>
#include <iostream>
#include <limits>
#include <map>
#include <set>
#include <sstream>
#include <stack>
#ifndef HAVE_LLVM
#error "This code needs LLVM enabled"
#endif
#include <dg/util/SilenceLLVMWarnings.h>
SILENCE_LLVM_WARNINGS_PUSH
#include <llvm/Config/llvm-config.h>
#if ((LLVM_VERSION_MAJOR =... |
#include <gazebo/gazebo.hh>
namespace gazebo
{
class WorldPluginMyRobot : public WorldPlugin
{
public: WorldPluginMyRobot() : WorldPlugin()
{
printf("Welcome to Sasmit's World!\n");
}
public: void Load(physics::WorldPtr _world, sdf::ElementPtr _sdf)
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.