text stringlengths 7 961k |
|---|
// Copyright (c) 2009-2019 Satoshi Nakamoto
// Copyright (c) 2009-2019 The Bitcoin Developers
// Copyright (c) 2014-2019 The Dash Core Developers
// Copyright (c) 2016-2019 Duality Blockchain Solutions Developers
// Copyright (c) 2017-2021 Bitcreds Developers
// Distributed under the MIT/X11 software license, see the a... |
#include <torch/csrc/distributed/rpc/utils.h>
#include <fmt/format.h>
#include <torch/csrc/autograd/profiler.h>
#include <torch/csrc/distributed/autograd/rpc_messages/cleanup_autograd_context_req.h>
#include <torch/csrc/distributed/autograd/rpc_messages/cleanup_autograd_context_resp.h>
#include <torch/csrc/distributed... |
/**
* Copyright 2021 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... |
// Copyright (c) 2017 Antony Polukhin
//
// 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 <boost/pfr/precise.hpp>
#include <boost/core/lightweight_test.hpp>
template <class T>
struct optional_like {
T ... |
// end_node.hpp
// Copyright (c) 2005-2018 Ben Hanson (http://www.benhanson.net/)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file licence_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef LEXERTL_END_NODE_HPP
#define LEXERTL_END_NODE_HPP
#include "node.hpp"
#in... |
// Copyright 2018 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 <unittest/unittest.h>
#include <fidl/flat_ast.h>
#include <fidl/lexer.h>
#include <fidl/parser.h>
#include <fidl/source_file.h>
#include "test_l... |
#include "MicroMissileLauncher.h"
void AMicroMissileLauncher::Server_SetIsCharging_Implementation(bool isCharging) {
}
void AMicroMissileLauncher::Server_SetChargedMissile_Implementation(bool isCharged) {
}
bool AMicroMissileLauncher::IsNextShotBuckShot() {
return false;
}
int32 AMicroMissileLauncher::GetCharge... |
/*
* Copyright (c) 2014, Stanislav Vorobiov
* 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 ... |
//*********************************************************
// Control.cpp - process the control parameters
//*********************************************************
#include "ArcProblem.hpp"
//---------------------------------------------------------
// Program_Control
//-------------------------------------------... |
/*
* 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 ... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
/*
Copyright (c) 2005-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.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... |
#include<iostream>
using namespace std;
int main()
{
int n,k,f[10001],x,l,r,mid,i;
cin>>n>>k;
for(i=1;i<=n;i++)cin>>f[i];
for(i=1;i<=k;i++)
{
cin>>x;
l=1;
r=n;
while(l<=r)
{mid=(l+r)/2;
if(x==f[mid]){cout<<mid<<endl;break;}
if(x>f[mid])r=mid-1;
else l=mid+1;}
}
return 0;
} |
#include <core/blockchain_statistics/blockchain_statistics_api.hpp>
#include <core/app/impacted.hpp>
#include <core/chain/account_object.hpp>
#include <core/chain/comment_object.hpp>
#include <core/chain/history_object.hpp>
#include <core/chain/database.hpp>
#include <core/chain/index.hpp>
#include <core/chain/operat... |
//===- AliasAnalysisEvaluator.cpp - Alias Analysis Accuracy Evaluator -----===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// Copyright 2021 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 <fuchsia/device/llcpp/fidl.h>
#include <fuchsia/device/manager/cpp/fidl.h>
#include <fuchsia/device/test/llcpp/fidl.h>
#include <lib/ddk/binding.h... |
/* file: kmeans_partialresult_fpt.cpp */
/*******************************************************************************
* Copyright 2014-2017 Intel Corporation
* All Rights Reserved.
*
* If this software was obtained under the Intel Simplified Software License,
* the following terms apply:
*
* The source code, i... |
// MIT License
//
// Copyright (c) 2020 Mechatronics and Haptic Interfaces Lab - Rice University
//
// 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 l... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin 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-license.php.
#include "activemasternode.h"
#include "... |
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "core_io.h"
#include "primitives/block.h"
#include "primitives/transaction.h"
#include "script/script.h"
#include "... |
/* easy: C++ ESOP library
* Copyright (C) 2018 EPFL
*
* 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, mo... |
/*
* Copyright 2017 deepstreamHub 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 applicable law or agr... |
#include <gtest/gtest.h>
#include <Graphics/geometry.hpp>
struct PointDistTest: public ::testing::Test {
gmh::Point p;
virtual void SetUp() override {
p = glm::vec3({0, 0, 0});
}
};
TEST_F(PointDistTest, PointDistToPoint){
gmh::Point p2({1, 1, 0});
ASSERT_FLOAT_EQ(p2.dist(p), p.dist(p2));... |
/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... |
// Copyright (C) 2013, Ennio Barbaro.
//
// Use, modification, and distribution is 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://sbabbi.github.io/tinympl for documentation.
//
// You are welcome to conta... |
#include "macros.h"
#include "fs_copy.h"
#include <iriclib.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <cmath>
#include <string>
#include <vector>
extern "C" {
void case_CalcCondRead()
{
remove("case_cc.cgn");
fs::copy("case_init_hdf5.cgn", "case_cc.cgn");
int fid;
int ier = cg_iRI... |
// Copyright (c) 2018 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/browser/net/system_network_context_manager.h"
#include <string>
#include <utility>
#include "base/command_line.h"
#include "chrome/browser/browser_process.h"
#include... |
//
// Copyright (c) 2008-2013 the Urho3D project.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, m... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/kendra/model/DataSourceStatus.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils... |
/*
* Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
* Copyright (C) 2007-2009 Torch Mobile, Inc.
* Copyright (C) 2011 University of Szeged. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditi... |
//To print nth fibonacci number
#include<bits/stdc++.h>
using namespace std;
int fib(int n){
/*
if(n == 0) return 0;
if(n == 1) return 1;
*/
if(n<=1) return n;
return fib(n-1) + fib(n-2);
}
int main(){
cout<<fib(3)<<endl;
return 0;
} |
// atcoder/abc175/B/main.cpp
// author: @___Johniel
// github: https://github.com/johniel/
#include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
template<typename P, typename Q> ostream& operator << (ostream& os, pair<P, Q> p) { os << "(" << p.first << ... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ec2/model/TerminateConnectionStatus.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#incl... |
/**
* Infix to postfix conversion
* CMD: g++ -std=c++14 -Wall infixToPostfix.cpp
*/
#include <iostream>
#include "Stack/Stack.hpp"
int precedence(char c);
std::string infixToPostfix(std::string infix);
/* main driver function */
int main()
{
std::string exp = "a+b*(c^d-e)^(f+g*h)-i";
std::string postfix =... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2017-2019 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "amount.h"
#include "tinyform... |
//
// Construct the Mu2e G4 world and serve information about that world.
//
// $Id: Mu2eStudyWorld.cc,v 1.8 2013/04/05 20:22:45 genser Exp $
// $Author: genser $
// $Date: 2013/04/05 20:22:45 $
//
// Original author K. Genser based on Mu2eWorld
//
// Heirarchy is:
// 0 World (vaccum?)
// 1 volume created ... |
// C++14 (gcc 8.3)
#include <iostream>
void Gray(int n, int* array, int k = 0, char direction = 1) {
if (n == k) {
for (int i{0}; i < k; ++i) {
std::cout << array[i];
}
std::cout << "\n";
} else {
if (direction == 1) {
array[k] = 0;
} else {
array[k] = 1;
}
Gray(n, arr... |
// Copyright 2011 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/heap/store-buffer.h"
#include <algorithm>
#include "src/base/macros.h"
#include "src/base/template-utils.h"
#include "src/counters.h"
#i... |
#include<iostream>
int main()
{
cout<<"Hello world";
} |
// import header files
#include <KMeans.hpp>
#include <matplotlibcpp.hpp>
namespace plt = matplotlibcpp;
// Example program
// Read csv files to get a Matrix object.
// Slice the Matrix object to a suitable size.
// Plot uncategorized data points
// Run KMeans Clustering, print score and plot categorized data
int ma... |
#include <cstdint>
#include "jni.h"
#include "cpu_features_macros.h"
#ifdef CPU_FEATURES_ARCH_X86
#include "cpuinfo_x86.h"
#define HAS_CACHE_INFO 1
using FeatureEnum = cpu_features::X86FeaturesEnum;
const auto arch = 1;
const auto featureCount = cpu_features::X86_LAST_;
const auto info = cpu_features::Get... |
// Copyright 2018 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 <fuchsia/io/cpp/fidl.h>
#include <lib/async/default.h>
#include <lib/fdio/directory.h>
#include <lib/fdio/fd.h>
#include <lib/fdio/fdio.h>
#includ... |
#include "util/masterelection.h"
#include <event2/thread.h>
#include <gflags/gflags.h>
#include <glog/logging.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <atomic>
#include <map>
#include <string>
#include "base/notification.h"
#include "util/etcd.h"
#include "util/fake_etcd.h"
#include "util/periodi... |
/*
* 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 <iostream>
#include <vector>
#include "../../src/LinearAlgebra/Models/Vector.h"
#include "../../src/PrePost/Import/ImportFromCSV.h"
#include "../../src/FEM/Equation/Solid.h"
#include "../../src/FEM/Controller/ShapeFunction.h"
#include "../../src/FEM/Controller/GaussIntegration.h"
#include "../../src/FEM/Cont... |
#include "ir/IRInst.h"
#include "ir/IRShader.h"
#include "ir/IRValues.h"
#include "ir/IRVisitor.h"
#include "slo/SloInputFile.h"
#include "slo/SloShader.h"
#include "util/UtLog.h"
#include "xf/XfLiveVars.h"
#include "xf/XfRaise.h"
#include <gtest/gtest.h>
#include <iostream>
#include <stdarg.h>
#include <stdio.h>
clas... |
// CodeGear C++Builder
// Copyright (c) 1995, 2017 by Embarcadero Technologies, Inc.
// All rights reserved
// (DO NOT EDIT: machine generated header) 'ALQuickSortList.pas' rev: 33.00 (Windows)
#ifndef AlquicksortlistHPP
#define AlquicksortlistHPP
#pragma delphiheader begin
#pragma option push
#pragma option -w- ... |
//
// FILE NAME: GenProtoS_ExprValues.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 11/24/2003
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://op... |
#include<iostream>
using namespace std;
int main() {
double n;
char c;
cin >> n >> c;
double hra = .2*n;
double da = .5*n;
double allow = (c=='A')?1700:(c=='B')?1500:1300;
double pf = .11*n;
printf("%.0f", n+hra+da+allow-pf);
return 0;
} |
#include <Ess3D/2d/animations/Animation.h>
namespace Ess3D {
Animation::Animation() {}
Animation::~Animation() {}
void Animation::setTextureAtlas(TextureAtlas* atlas) {
_atlas = atlas;
}
void Animation::setFrames(std::vector<std::string> frames) {
_frames = frames;
this->_frameCount = _fra... |
//
// Created by Jihun on 6/16/2020.
//
#include <iostream>
using namespace std;
// Function Prototyping
void printSomethingPrototype();
// If the function does not return anything
// put void
// The parameters are inside the brackets
void printSomething() {
cout << "oooo i am text on the screen" << endl;
}
int ... |
//===--- TypeCheckStmt.cpp - Type Checking for Statements -----------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
/*
* 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 ... |
/*
@brief unit test for debuglog.hpp
@author guobao.v@gmail.com
*/
#include "gtest/gtest.h"
#include <common/debuglog.hpp>
using namespace common;
using namespace common::debuglog;
TEST(debuglog, OutputDebugStringEx) {
OutputDebugStringA("EQ(");
OutputDebugStringEx()("%s", "Test测试123");
OutputDebugStringA... |
// This is to be understood that, only vectors can be acessed just like arrays but other containers like maps, sets, etc, they
// need iterators to access the elements. Iterators are just like pointers which points at particular location and to access the
// data or the value at that location we use dereference operato... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp>
#include "base58.h"
#include "bitcoinrpc.h"
#inclu... |
/**
* \file dnn/src/cuda/svd/opr_impl.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS ... |
// Copyright (c) 2021 PaddlePaddle 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... |
/*
* MIT License
*
* Copyright (c) 2021 Jimmie Bergmann
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files(the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... |
//
// Copyright (c) 2008-2020 the Urho3D project.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, m... |
// Copyright 2021 The WebNN-native Authors
//
// 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 ... |
/*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2014 Intel Corporation. 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 noti... |
#include "Paramedic.hpp"
void Paramedic::take_activity(std::pair<int,int> source,std::vector<std::vector<Soldier*>>& board){
int myTeam = board[source.first][source.second]->player;
for(int i = source.first-1;i<=source.first+1;i++){
for(int j = source.second-1;j<=source.second+1;j++){
if(i... |
#include "MeshIO.hpp"
//#include <fastenvelope/////logger.hpp>
#include <igl/Timer.h>
#include <igl/write_triangle_mesh.h>
#include <igl/boundary_facets.h>
#include <igl/remove_unreferenced.h>
#include <geogram/mesh/mesh_io.h>
#include <geogram/mesh/mesh_repair.h>
#include <geogram/numerics/predicates.h>
#include... |
#ifndef TESTARCHIVESTEADYSTATE_HPP_
#define TESTARCHIVESTEADYSTATE_HPP_
#include <cxxtest/TestSuite.h>
#include "APSimulator.hpp"
#include "FakePetscSetup.hpp"
class TestArchiveSteadyState : public CxxTest::TestSuite
{
public:
void xTestRunToSteadyState() throw(Exception)
{
#ifdef CHASTE_CVODE
doubl... |
//===- DCE.cpp - Code to perform dead code elimination --------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/////////////////////////////////////////////////////////////////////////////
// Name: src/msw/tglbtn.cpp
// Purpose: Definition of the wxToggleButton class, which implements a
// toggle button under wxMSW.
// Author: John Norris, minor changes by Axel Schlueter
// and William ... |
// Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... |
//
// FILE NAME: CIDMacroEng_Collection.hpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 03/14/2003
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://op... |
// Copyright 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 "third_party/blink/renderer/platform/webrtc/webrtc_video_frame_adapter.h"
#include "media/base/video_frame.h"
#include "testing/gtest/include/gt... |
/*
Copyright (C) 2021 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: you can redistribute it and/or modify it
under the terms of the Modified BSD License... |
#include "Game.h"
#include "File.h"
#include "Level.h"
#include "Path.h"
#include "Graphics.h"
#include "Math.h"
int XeEngine::Game::RippleBackgroundMD[256] =
{
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000100, 0x00000100,
0x00000100, 0x00000100, 0x00000100, 0x00000200, 0x00000200,... |
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// Copyright (c) 2017-21, Lawrence Livermore National Security, LLC
// and RAJA Performance Suite project contributors.
// See the RAJAPerf/LICENSE file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
//~~~~~~~~~~~~~~~~~~~~~~~~~~... |
#pragma once
//
#ifdef __cplusplus
#include "./Core.hpp"
#include "./Device.hpp"
#include "./MemoryAllocator.hpp"
#include "./PipelineLayout.hpp"
#include "./Uploader.hpp"
#include "./Sampler.hpp"
//
namespace ANAMED {
//
class ResourceObj : public BaseObj {
public:
using tType = WrapShared<ResourceObj... |
#include "LocationView.h"
#include "PositionWidget.h"
#include "ViewManager.h"
#include "TargetItemPicker.h"
#include "LocatableItem.h"
#include "CoordinateFrameListItem.h"
#include "CoordinateFrameItem.h"
#include "RootItem.h"
#include "CheckBox.h"
#include "ComboBox.h"
#include <cnoid/CoordinateFrameList>
#include <c... |
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE Main
#include <libdariadb/timeutil.h>
#include <libdariadb/utils/async/thread_manager.h>
#include <libdariadb/utils/async/thread_pool.h>
#include <libdariadb/utils/crc.h>
#include <libdariadb/utils/cz.h>
#include <libdariadb/utils/fs.h>
#include <libdariadb/utils/in... |
// file: main.cpp (i2c_sensor)
// brief: VIHAL I2C SensorTest
// created: 2022-02-09
// authors: nvitya
#include "platform.h"
#include "cppinit.h"
#include "clockcnt.h"
#include "hwclk.h"
#include "hwpins.h"
#include "hwuart.h"
#include "traces.h"
#include "board_pins.h"
#include "bmp280.h"
#include "aht10.... |
#include <bits/stdc++.h>
#define INF 2000000000
using namespace std;
typedef long long ll;
int read(){
int f = 1, x = 0;
char c = getchar();
while(c < '0' || c > '9'){if(c == '-') f = -f; c = getchar();}
while(c >= '0' && c <= '9')x = x * 10 + c - '0', c = getchar();
return f * x;
}
struct TreeNode {
int val... |
#include "LogicalSentence.h"
LogicalSentence::LogicalSentence( std::string sentence, TrinaryLogic::Trilean logicalValue )
{
this->sentence = sentence;
this->logicalValue = logicalValue;
}
Trilean LogicalSentence::getValue()
{
return logicalValue;
}
string LogicalSentence::getSentence() {
return sente... |
#include "ofShader.h"
#include "ofUtils.h"
#include "ofFileUtils.h"
#include "ofGraphics.h"
#include "ofGLProgrammableRenderer.h"
#include "ofTexture.h"
#include "ofMatrix4x4.h"
#include "ofMatrix3x3.h"
#include "ofVec2f.h"
#include "ofVec3f.h"
#include "ofVec4f.h"
#include "ofParameterGroup.h"
#include "ofParameter.h"... |
// 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 "ui/events/gesture_detection/gesture_event_data.h"
#include <ostream>
#include "base/check_op.h"
#include "base/notreached.h"
namespace ui {
... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
| Copyrigh... |
#include <iostream>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/keysym.h>
#include <X11/keysymdef.h>
#include <X11/extensions/XTest.h>
#include <unistd.h>
#include <string>
#include <cstdio>
#include <cstdlib>
#include <chrono>
#include <thread>
#include <libconfig.h++>
#include "remote.h"
#include... |
/*
* Copyright 2020 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... |
/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#ifndef ELEKTRA_KDB_ELEKTRAGEN_COMMON_HPP
#define ELEKTRA_KDB_ELEKTRAGEN_COMMON_HPP
#include <kdb.hpp>
#include <regex>
std::string upCaseFirst (const std::string & str);
void escapeNonAlphaNum (std::string & ... |
#include <vector>
using namespace std;
class Solution {
public:
void moveZeroes(vector<int> &nums) {
int zero = -1;
for (int i = 0; i < size(nums); i++) {
if (zero < 0 && nums[i] == 0) zero = i;
if (nums[i] != 0 && zero >= 0) {
swap(nums[zero++], nums[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 may ... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the terms found in... |
/**
* Shell utilities
* hdaniel@ualg.pt may 2020
*
* Associative array (map) that can be indexed by key and by value
* Table is immutable, it must be fully created with constructor
*
* Table must have a relationship ont-to-one
* duplicated values will NOT be accessed by value
*/
#ifndef __HAD_TABLE2_HPP__
#d... |
#pragma once
class ScriptState;
namespace bindings {
void open_imgui(ScriptState* s);
} |
/*
By: facug91
From: http://www.lightoj.com/volume_showproblem.php?problem=1030
Name: Discovering Gold
Number: 1030
Date: 28/08/2014
*/
#include <bits/stdc++.h>
#define MAX_INT 2147483647
#define MAX_LONG 9223372036854775807ll
#define MAX_ULONG 18446744073709551615ull
#define MA... |
/**
* @file
* @copyright defined in enumivo/LICENSE.txt
*/
#pragma once
#include "test_api_common.hpp"
#include <string>
namespace enumivo {
class deferred_transaction;
}
//#include <enumivolib/transaction.hpp>
// NOTE: including enumivolib/transaction.hpp here causes !"unresolvable": env._ZNKSt3__120__vec... |
// Copyright (c) 2011-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#define BOOST_TEST_MODULE SpecTor Test Suite
#include "main.h"
#include "random.h"
#include "txdb.h"
#include "ui_interf... |
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
#ifndef __PARAMS__RubyController__
#define __PARAMS__RubyController__
class AbstractController;
#include <cstddef>
#include "base/types.hh"
#include <cstddef>
#include "base/types.hh"
#include <cstddef>
#include "base/types.hh"
#include <cstddef>
#include "base/types.hh"
#include <cstddef>
#include "params/RubyContro... |
/*
[1](∗1) Write declarations for the following : a pointer to a character, an array of 10 integers, a
reference to an array of 10 integers, a pointer to an array of character strings, a pointer to a
pointer to a character, a constant integer, a pointer to a constant integer, and a constant
pointer to an integer.Initi... |
// 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 "chrome/browser/ui/views/crostini/crostini_uninstaller_view.h"
#include "base/memory/ptr_util.h"
#include "base/metrics/histogram_base.h"
#inclu... |
#ifndef __ZEN__BUILD_SYSTEM_TESTS__HPP
#define __ZEN__BUILD_SYSTEM_TESTS__HPP
///
///////////////////////////////////////////////////////////////////////////////////////////////////
///
#include <zen/build/build_system.h>
#include <iostream>
///
////////////////////////////////////////////////////////////////////////... |
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cctype>
using namespace std;
typedef long long lint;
#define cout cerr
#define ni (next_num<int>())
template<class T>inline T next_num(){
T i=0;char c;
while(!isdigit(c=getchar())&&c!='-');
bool flag=c=='-';
flag?(c=getchar()):0;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.