text stringlengths 7 961k |
|---|
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int n,arr[n];
scanf("%d",&n);
printf("%d",n);
for(int i=0;i<n;i++)
{
scanf("%d",&arr[i]);
printf("%d",arr[i]);
}
return 0;
} |
// Copyright 2019 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/objects/map.h"
#include "src/execution/frames.h"
#include "src/execution/isolate.h"
#include "src/handles/handles-inl.h"
#include "src/ha... |
/*!
* \file mpi_structure.hpp
* \brief Headers of the mpi interface for generalized datatypes.
* The subroutines and functions are in the <i>mpi_structure.cpp</i> file.
* \author T. Albring
* \version 7.0.6 "Blackbird"
*
* SU2 Project Website: https://su2code.github.io
*
* The SU2 Project is maintained ... |
#include "Base64_MLC.h"
//#include <avr/pgmspace.h>
const char b64_alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz"
"0123456789+/";
/* 'Private' declarations */
inline void a3_to_a4(unsigned char * a4, unsigned char * a3);
inline void a4_to_a3(unsigned char * a3, unsigned char * a4);
inline u... |
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
// peripheral BT0
namespace Bt15PwmTmcr{ ///< register PWM_TMCR
using Addr = Register::Address<0x400256cc,0xffff8080,0x00000000,unsigned>;
/// bitfield CKS2_0
constexpr Register::FieldLocation<Addr,Register::maskFromRange... |
#include <iostream>
#include <vector>
using namespace std;
using std::vector;
// discrete knapsack problem (!with repeatition)
int max(int a,int b)
{
if(a>b)
{
return a;
}
else
{
return b;
}
}
int optimal_weight(int W, const vector<int> &w) {
//write your code here
int i,weight;
vector<vector<int> > ar... |
//===-- LockFileBase.cpp ----------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "pattern_collection_generator_combo.h"
#include "pattern_generator_greedy.h"
#include "validation.h"
#include "../option_parser.h"
#include "../plugin.h"
#include "../task_proxy.h"
#include "../utils/logging.h"
#include <iostream>
#include <memory>
#include <set>
using namespace std;
namespace pdbs {
Pat... |
#include <cstring>
#include "superhero.hpp"
SuperHero::SuperHero(char const* n,
unsigned s,
unsigned lvl,
char const* p,
unsigned lvlBoost)
: Hero(n, s, lvl), levelBoost(lvlBoost), usingPower(false),
// важно е да инициализир... |
///////////////////////////////////////////////////////////////////////////////
// Matrice.h
// =========
// NxN Matrix Math classes
//
// The elements of the matrix are stored as column major order.
// | 0 2 | | 0 3 6 | | 0 4 8 12 |
// | 1 3 | | 1 4 7 | | 1 5 9 13 |
// | 2 5 8 | | 2 6... |
#ifndef OCCA_INTERNAL_MODES_HIP_DEVICE_HEADER
#define OCCA_INTERNAL_MODES_HIP_DEVICE_HEADER
#include <occa/internal/core/launchedDevice.hpp>
#include <occa/internal/modes/hip/polyfill.hpp>
namespace occa {
namespace hip {
class kernel;
class device : public occa::launchedModeDevice_t {
friend class ... |
#include <unistd.h>
#include <array>
#include <chrono>
#include <cinttypes>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <memory>
#include <mutex>
#include <thread>
#include "frc971/wpilib/ahal/AnalogInput.h"
#include "frc971/wpilib/ahal/Counter.h"
#include "frc971/wpilib/ahal/... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... |
//Given a chessboard of size m×n, a knight’s tour is a sequence of moves of a knight on the chessboard such that the knight visits every square exactly once. In the game of chess, a knight can move to a square that is two squares horizontally and one square vertically, or two squares vertically and one square horizonta... |
#include <bits/stdc++.h>
using namespace std;
template <int sz>
struct Bit
{
int b[sz];
void upd(int x, int val)
{
for (int i = x; i < sz; i += i&-i)
b[i] = max(b[i], val);
}
int get(int x)
{
int ans = 0;
for (int i = x; i; i -= i&-i)
ans = max(ans, b[i]);
return ans;
}
};
template <typename T... |
#include<bits/stdc++.h>
using namespace std;
int main()
{
int t,count=0;
cin>>t;
while(t--)
{
int a,b,c;
cin>>a>>b>>c;
if(a==1 && b==1)
{
count++;
}
else if(a==1 && c==1)
{
count++;
}
else if(b==1 && c==1)
... |
///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2010-09-16
// Updated : 20... |
// Copyright 2013 The Flutter 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 "flutter/shell/platform/linux/fl_gl_area.h"
#include <epoxy/gl.h>
struct _FlGLArea {
GtkWidget parent_instance;
GdkGLContext* context;
F... |
#pragma once
namespace RunParameter {
PS::F64 Time;
PS::F64 TimeEnd;
PS::F64 Timestep;
PS::F64 MaximumTimestep;
PS::F64 MinimumTimestep;
PS::F64 TimeAscii;
PS::F64 TimestepAscii;
PS::F64 TimestepHexa;
PS::S64 NumberOfStep;
PS::S64 NumberOfAscii;
... |
// Copyright (c) 2013 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/api/atom_api_app.h"
#include <string>
#include <vector>
#include "atom/browser/api/atom_api_menu.h"
#include "atom/browser/api/atom_api_session.h"
#include "at... |
// Copyright 2016 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/fxfa/parser/xfa_basic_data.h"
#include <iterator>
#include <uti... |
// 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... |
/******************************************************************************
* $Id: argdataset.cpp 27044 2014-03-16 23:41:27Z rouault $
*
* Project: Azavea Raster Grid format driver.
* Purpose: Implements support for reading and writing Azavea Raster Grid
* format.
* Author: David Zwarg <dzwarg@a... |
#include "ncurses_display.h"
#include "system.h"
#include "linux_parser.h"
#include "format.h"
#include <vector>
int main() {
System system;
NCursesDisplay::Display(system);
} |
#include <cassert>
#include "debug_module.h"
#include "debug_defines.h"
#include "opcodes.h"
#include "mmu.h"
#include "sim.h"
#include "debug_rom/debug_rom.h"
#include "debug_rom_defines.h"
#if 0
# define D(x) x
#else
# define D(x)
#endif
// Return the number of bits wide that a field has to be to encode up to n... |
#include "Driver.h"
Driver::Driver(uint16_t length, uint16_t width){
length = length;
width =width;
} |
/**
* Copyright 2011, Filipe David Manana <fdmanana@apache.org>
* Web: http://github.com/fdmanana/snappy-erlang-nif
*
* 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.... |
/**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
#include <bits/stdc++.h>
using namespace std;
#define eb emplace_back
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define sz(v) ((int) (v).size())
#define all(v) (v).begin(), (v).end()
#define ms(x... |
//--------------------------------------------------------------------------------------
// xbgamepad.cpp
//
// Advanced Technology Group (ATG)
// Copyright (C) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
#include "XtfInput.h"
#in... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... |
// 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 "extensions/common/permissions/usb_device_permission.h"
#include <string>
#include <utility>
#include <vector>
#include "base/logging.h"
#inclu... |
//=================================================================================================
/*!
// \file src/mathtest/svecdvecadd/VCaV5b.cpp
// \brief Source file for the VCaV5b sparse vector/dense vector addition math test
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
// This file ... |
#ifndef KINEMATIC_VISCOSITY_UNIT_H
#define KINEMATIC_VISCOSITY_UNIT_H
/* Project headers */
#include "units.hpp"
Declare_Physical_Quantity(KinematicViscosity, "V", "\\nu",
"Dynamic viscosity divided between its density");
Declare_Unit(CentiStoke, "cSt", "cSt",
"Kinematic viscosity measured is centi stokes... |
#include "vgg.h"
#include <unordered_map>
#include "modelsimpl.h"
namespace vision {
namespace models {
torch::nn::Sequential makeLayers(
const std::vector<int>& cfg,
bool batch_norm = false) {
torch::nn::Sequential seq;
auto channels = 3;
for (const auto& V : cfg) {
if (V <= -1)
seq->push_ba... |
/* Copyright 2018 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... |
// Copyright 2021 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 "content/browser/accessibility/browser_accessibility_fuchsia.h"
#include <fuchsia/accessibility/semantics/cpp/fidl.h>
#include <lib/ui/scenic/cp... |
/*
* 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 ... |
/****************************************************************************************
* @author: kzvd4729 created: Sep/20/2020 14:22
* solution_verdict: Accepted language: GNU C++17
* run... |
#include "nwnx.hpp"
#include "API/Globals.hpp"
#include "API/CAppManager.hpp"
#include "API/CServerExoApp.hpp"
#include "API/CServerExoAppInternal.hpp"
#include "API/CVirtualMachine.hpp"
#include "API/CNWVirtualMachineCommands.hpp"
#include "API/Constants.hpp"
#include "API/CNWSArea.hpp"
#include "API/CNWSAreaOfEffectO... |
#include "duckdb/execution/operator/helper/physical_transaction.hpp"
#include "duckdb/main/client_context.hpp"
namespace duckdb {
void PhysicalTransaction::GetData(ExecutionContext &context, DataChunk &chunk, GlobalSourceState &gstate,
LocalSourceState &lstate) const {
auto &client ... |
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#include <AP_HAL/AP_HAL.h>
#if (CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2)
#include <avr/io.h>
#include <avr/wdt.h>
#include <avr/interrupt.h>
#include "Scheduler.h"
#include "utility/ISRRegistry.h"
#include ... |
#include "nipch.h" |
//===========================================
// Lumina-desktop source code
// Copyright (c) 2018, Ken Moore
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
#include "SystemTrayMenu.h"
#include <global-objects.h>
SystemTrayMenu::Sy... |
// Copyright 2014 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/codegen/assembler-inl.h"
#include "src/codegen/callable.h"
#include "src/codegen/macro-assembler.h"
#include "src/codegen/mips64/constants... |
#include "editaddressdialog.h"
#include "ui_editaddressdialog.h"
#include "addresstablemodel.h"
#include "guiutil.h"
#include <QDataWidgetMapper>
#include <QMessageBox>
EditAddressDialog::EditAddressDialog(Mode mode, QWidget *parent) :
QDialog(parent),
ui(new Ui::EditAddressDialog), mapper(0), mode(mode), mod... |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2013-, Matteo Munaro [matteo.munaro@dei.unipd.it]
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributio... |
/**
* @copyright (c) 2017 Mark R. Jenkins. All rights reserved.
* @file main-evo2.cpp
*
* @author MJenkins, ENPM 808X Spring 2017
* @date Mar 14, 2017 - Creation
*
* @brief A main program to drive the MCSF system to verify its trajectory generation capabilities
*
* This main program uses the Motion Control Sy... |
#include <fstream>
#include <iostream>
#include <numeric>
#include <sstream>
#include <string>
#include <vector>
// --------------------------------------------
enum axis { x, y };
// --------------------------------------------
struct point {
int value = 0;
bool is_marked = false;
void mark();
point() = de... |
#include "askpassphrasedialog.h"
#include "ui_askpassphrasedialog.h"
#include "guiconstants.h"
#include "dialogwindowflags.h"
#include "walletmodel.h"
#include <QMessageBox>
#include <QPushButton>
#include <QKeyEvent>
extern bool fWalletUnlockMintOnly;
AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *pa... |
// Copyright (c) 2011-2017 The Bitcoin Core developers
// Copyright (c) 2022 The Pulsar developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <f... |
// Copyright (c) 2014-2016 The Readercoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "winshutdownmonitor.h"
#if defined(Q_OS_WIN) && QT_VERSION >= 0x050000
#include "init.h"
#include "util.h"
#inc... |
#include <bits/stdc++.h>
using namespace std;
int x = 0;
int main () {
cin >> x;
while (x != 0){
for (int i = 1; i < x; i++) cout << i << " ";
cout << x << '\n';
cin >> x;
}
return 0;
} |
/*
46. Permutations
Given a collection of distinct numbers, return all possible permutations.
For example,
[1,2,3] have the following permutations:
[
[1,2,3],
[1,3,2],
[2,1,3],
[2,3,1],
[3,1,2],
[3,2,1]
]
*/
class Solution {
public:
vector<vector<int>> permute(vector<int>& nums) {
vector<v... |
// 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 "android_webview/browser/parent_output_surface.h"
#include "android_webview/browser/aw_render_thread_context_provider.h"
#include "android_webvi... |
const int N = 2e5;
VI g[N], cutVtree[N], st; //g[v]: edge-list, Take N = 2*required
int a[N], b[N], compNo[N], col[N];
int low[N], in[N], L[N], extra[N], T, C;
bool cutV[N]; // true for cut-vertices.
int adj(int u, int i) { return a[i] ^ b[i] ^ u; }
void dfs(int v) {
int ch = 0;
low[v] = in[v] = T++;
for(int e: g... |
// Copyright (c) 2019 OUXT Polaris
//
// 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... |
#include "hotkey_editor.h"
#include <QBoxLayout>
#include "dpso_intl/dpso_intl.h"
HotkeyEditor::HotkeyEditor(
DpsoHotkeyAction action,
const QVector<DpsoKey>& hiddenKeys,
Qt::Orientation orientation,
QWidget* parent)
: QWidget(parent)
, action{action}
, keyCombo{}
, m... |
//%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... |
#include <iostream>
#include "Orange.h"
#include "Car.h"
Orange::Orange():Obstacle()
{
double _xPosition, _yPosition , _ZPosition;
_spawn_time = SPAWN_TIME;
_xPosition = (((double)rand() / (RAND_MAX)) * 5.8) - 2.8;
_yPosition = (((double)rand() / (RAND_MAX)) * 5.8) - 2.8;
_ZPosition = FALL_HEIGHT;
turn(((double)r... |
#pragma once
#ifndef DEBUG
#ifdef _MSC_VER
#define ALWAYS_INLINE __forceinline
#elif defined __GNUC__
#define ALWAYS_INLINE __attribute__((always_inline)) inline
#else
#define ALWAYS_INLINE inline
#endif
#else
#define ALWAYS_INLINE inline
#endif |
#include <iostream>
#include <fstream>
#include <cassert>
#include <cstdlib>
#include <time.h>
#include <cmath>
#include <memory.h>
#include "lsh_dfe.h"
namespace DFECode{
// const values in this class
const unsigned int LSH_DFE::DOUT = 16;
const float LSH_DFE::formalize_max = 100000.0f;
LSH_DFE::LSH... |
/*
* 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 ... |
/*
* Copyright (c) 2018, Arm Limited and affiliates
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENS... |
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2013-2019 The Hippocrates Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "alert.h"
#includ... |
#include <Client/ConnectionPoolWithFailover.h>
#include <Poco/Net/NetException.h>
#include <Poco/Net/DNS.h>
#include <Common/getFQDNOrHostName.h>
#include <Common/isLocalAddress.h>
#include <Common/ProfileEvents.h>
#include <Core/Settings.h>
#include <IO/ConnectionTimeouts.h>
namespace ProfileEvents
{
extern c... |
#include <bits/stdc++.h>
#define maxn 301
using namespace std;
int n;
int cnt[3];
double dp[maxn][maxn][maxn];
int main() {
scanf("%d",&n);
for( int i = 0 , x ; i < n ; i++ ) {
scanf("%d",&x);
cnt[x-1]++;
}
for( int c3 = 0 ; c3 <= n ; c3++ )
for( int c2 = 0 ; c2 <= n-c3 ; c2++ )
for( int c1 = 0 ; c1 <= n... |
#include<bits/stdc++.h>
#define fastio ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL)
using namespace std;
int main(){
fastio;
string str,aux="";
bool pal=true;
cin>>str;
for(int i=0;i<str.size();i++){
if((str[i]=='a' ) || (str[i]=='e') || (str[i]=='i') || (str[i]=='o') || (str[i]=='u')){
a... |
/* blastneuron_bjut_yang_plugin.cpp
* This is a test plugin, you can use it as a demo.
* 2016-12-1 : by yangjian
*/
#include "v3d_message.h"
#include <vector>
#include "blastneuron_bjut_yang_plugin.h"
using namespace std;
Q_EXPORT_PLUGIN2(blastneuron_bjut_yang, blastneuron_bjut_yang);
QStringList blastneuron_bju... |
//===- yaml2obj - Convert YAML to a binary object file --------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
//===---------------------- catch_function_02.cpp -------------------------===//
//
// 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 <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/vcm_estimate_edges.h>
#include <CGAL/property_map.h>
#include <CGAL/IO/read_points.h>
#include <boost/dynamic_bitset.hpp>
#include <vector>
#include <fstream>
// Types
typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel;
... |
#include <mutex>
#include <condition_variable>
#include <iostream>
class Semaphore {
public:
Semaphore (int count_ = 0)
: count(count_), maxCount(count_) {}
inline void notify()
{
std::unique_lock<std::mutex> lock(mtx);
count++;
cv.notify_one();
}
inline void wait(... |
/*! @file */
/*
Copyright (C) 2018-2021, Sakura Editor Organization
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 use of this software.
Permission is granted to anyone to use this software for any purpose,... |
#include "pcl_helper_exports.h"
#include "pcl_helper.h"
// PCL point type for exported C functions
typedef pcl::PointXYZRGB PointTExport;
// macro for converting void* to PCLHelper<PointTExport>*
#define HELPER(ptr) ((PCLHelper<PointTExport>*)ptr)
// factory functions that create and release instances of PCLHelper
... |
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <EventStorage.h>
#include <ID.h>
#include <algorithm>
#include <iterator>
namespace test {
using ::testing::Contains;
using ::testing::Pointee;
using ::testing::ElementsAre;
using ::testing::Each;
using ::testing::SizeIs;
using ::testing::UnorderedElem... |
#include <cstdlib>
#include <iostream>
#include <cxxopts.hpp>
#include "blocks/consts.h"
#include "helpers/Config.hpp"
#include "blocks/Chain.h"
#include <leveldb/db.h>
int main(int argc, char *argv[])
{
helpers::Config::printBanner();
cxxopts::Options opts = helpers::Config::initializeArgs(argc, argv);
... |
/**
* 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... |
#pragma once
#include "../Core/Platform.hh"
#include <PolyVox/RawVolume.h>
#include <cstdint>
#include <memory>
namespace boyd
{
namespace comp
{
/// The type of a single voxel.
using Voxel = uint8_t;
/// A voxel model.
struct BOYD_API Voxels
{
using Volume = PolyVox::RawVolume<Voxel>;
std::unique_ptr<Volu... |
#include <bits/stdc++.h>
using namespace std;
// input handle
#define iln() scanf("\n")
#define in(n) scanf("%d",&n)
#define ins(n) scanf("%s",n)
#define inc(n) scanf("%c",&n)
#define inf(n) scanf("%lf",&n)
#define inl(n) scanf("%lld",&n)
#define ot(x) printf("%d", x)
#define sp() printf(" ")
#define ots(x) printf("%s"... |
/*
* FWTrackingVertexProxyBuilder.cc
* FWorks
*
* Created by Ianna Osborne on 10/6/10.
*
*/
#include "Fireworks/Core/interface/FWSimpleProxyBuilderTemplate.h"
#include "Fireworks/Core/interface/Context.h"
#include "Fireworks/Core/interface/FWEventItem.h"
#include "SimDataFormats/TrackingAnalysis/interface/Tra... |
// Copyright (c) 2016-2019 The Zortcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <policy/rbf.h>
#include <util/rbf.h>
RBFTransactionState IsRBFOptIn(const CTransaction& tx, const CTxMemPool& pool... |
/* Documentation snippet
(C) 2017-2020 Niall Douglas <http://www.nedproductions.biz/> (7 commits)
File Created: Mar 2017
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation... |
// Copyright (c) 2017-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 <chainparams.h>
#include <index/base.h>
#include <shutdown.h>
#include <tinyformat.h>
#include <ui_interface.h>
#includ... |
// 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 "src/devices/bus/drivers/pci/upstream_node.h"
#include <assert.h>
#include <err.h>
#include <inttypes.h>
#include <string.h>
#include <fbl/algor... |
/*=============================================================================
Boost.Wave: A Standard compliant C++ preprocessor library
http://www.boost.org/
Copyright (c) 2001-2009 Hartmut Kaiser. Distributed under the Boost
Software License, Version 1.0. (See accompanying file
LICENSE_1_0.txt o... |
/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018
Vladimír Vondruš <mosra@centrum.cz>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to d... |
#include "optionsdialog.h"
#include "ui_optionsdialog.h"
#include "bitcoinunits.h"
#include "monitoreddatamapper.h"
#include "netbase.h"
#include "optionsmodel.h"
#include <QDir>
#include <QIntValidator>
#include <QLocale>
#include <QMessageBox>
#include <QRegExp>
#include <QRegExpValidator>
OptionsDialog::OptionsDi... |
#include <algorithm>
#include <cctype>
#include <functional>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <assert.h>
#include <conio.h>
#include <io.h>
#include <stdio.h>
#include <sys/stat.h>
#include <windows.h>
#i... |
#include "xtensor/xnoalias.hpp"
#include "xtensor/xtensor.hpp"
#include "xtensor/xarray.hpp"
#include "xtensor/xrandom.hpp"
#include "xtensor/xview.hpp"
#include "xtensor/xindex_view.hpp"
#include "xtensor/xfixed.hpp"
#include "xtensor/xadapt.hpp"
#define FORCE_IMPORT_ARRAY
#include "xtensor-python/pyarray.hpp"
#inclu... |
// 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... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/panels/panel_manager.h"
#include "base/auto_reset.h"
#include "base/command_line.h"
#include "base/logging.h"
#include "b... |
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... |
/****************************************************************************
** Copyright (c) 2021, Fougue Ltd. <http://www.fougue.pro>
** All rights reserved.
** See license at https://github.com/fougue/mayo/blob/master/LICENSE.txt
****************************************************************************/
#includ... |
// 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/server/http_server.h"
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/stl_util.h"
#include "base/strings/s... |
// This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited.
#include "exec/es/es_scroll_parser.h"
#include <fmt/format.h>
#include "column/column_helper.h"
#include "column/nullable_column.h"
#include "common/config.h"
#include "runtime/primitive_type.h"
#include "runtime/runti... |
/*
* Copyright (c) 2007-2008 The Florida State University
* Copyright (c) 2009 The University of Edinburgh
* 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 m... |
class RecentCounter {
public:
queue <int> q;
RecentCounter() {
while(!q.empty()) q.pop();
}
int ping(int t) {
while(!q.empty()) {
int top = q.front();
if (top < t - 3000) q.pop();
else break;
}
q.push(t);
return q.size();
... |
// Copyright 2018 Daniel Parker
// Distributed under Boost license
#include <jsoncons/json.hpp>
#include <jsoncons/json_encoder.hpp>
#include <catch/catch.hpp>
#include <sstream>
#include <vector>
#include <utility>
#include <ctime>
#include <map>
TEST_CASE("json::is_object on proxy")
{
jsoncons::json root = json... |
/*
---------------------------------------------------------------------------
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2018, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.