text stringlengths 7 961k |
|---|
/*
*
COPYRIGHT AND LICENSE
Copyright (c) 2015 Peter J. Gadomski <pete.gadomski@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, are permitted provided that the following
conditions are met:
1. Redistributions of source code must retain the above copyrig... |
// Copyright Antony Polukhin, 2013-2020.
// Distributed under the Boost Software License, Version 1.0.
// (See the accompanying file LICENSE_1_0.txt
// or a copy at <http://www.boost.org/LICENSE_1_0.txt>.)
#include <boost/config.hpp>
#ifdef BOOST_MSVC
# pragma warning(disable: 4512) // generic_stringize.cpp(37) : war... |
//#include "stdafx.h"
#include "Batisseur.h"
using namespace std;
int Batisseur::deplacement(int plateau[5][5][3], int couleur)
{
int x, y,i,j;
std::string buffer;
bool bouge = false;
x = posXY[0];
y = posXY[1];
i = posXY[0];
j = posXY[1];
while (bouge == false) {
cin>>buffer;
if ((buffer == "6") && (y<... |
/** @file UniformTraits.hpp
Copyright 2016 Computational Topology Group, University of Kaiserslautern
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... |
// Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... |
// 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 "ash/display/display_controller.h"
#include "ash/display/display_manager.h"
#include "ash/screen_ash.h"
#include "ash/shell.h"
#include "ash/... |
/*
* Copyright 2012 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 applicab... |
/*ckwg +29
* Copyright 2011-2013 by Kitware, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this li... |
#ifndef PYTHONIC_BUILTIN_STR_RSTRIP_HPP
#define PYTHONIC_BUILTIN_STR_RSTRIP_HPP
#include "pythonic/include/__builtin__/str/rstrip.hpp"
#include "pythonic/types/str.hpp"
#include "pythonic/utils/functor.hpp"
namespace pythonic
{
namespace __builtin__
{
namespace str
{
types::str rstrip(types::str... |
# include "rrdb.server.impl.h"
# include <algorithm>
# include <dsn/cpp/utils.h>
# include <rocksdb/utilities/checkpoint.h>
# ifdef __TITLE__
# undef __TITLE__
# endif
#define __TITLE__ "rrdb.server.impl"
namespace dsn {
namespace apps {
static std::string chkpt_get_dir_name(::dsn::replication::d... |
// Copyright 2020 Juan Marcelo Portillo. All Rights Reserved.
#include "Gizmos/ScaleGizmo.h"
#include "Components/BoxComponent.h"
#include "Components/SphereComponent.h"
AScaleGizmo::AScaleGizmo()
{
XY_PlaneBox = CreateDefaultSubobject<UBoxComponent>(TEXT("XY Plane"));
YZ_PlaneBox = CreateDefaultSubobject<UBoxComp... |
// Copyright (c) 2011-2013 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 "receiverequestdialog.h"
#include "ui_receiverequestdialog.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#i... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Copyright (c) 2017-2019 The Kron Core developers
// Distributed under the MIT software license, see the accompanying
#if defined(HAVE_CONFIG_H)
#include "config/Kron-config.h"
#endif
#include "chainparamsbase.h"
#inc... |
#include "pokemondlg.h"
#include "ui_pokemondlg.h"
#include <QVBoxLayout>
PokemonDlg::PokemonDlg(const QString &detail, bool myPokemonTable, QWidget *parent) : QDialog(parent),
ui(new Ui::PokemonDlg)
{
ui->setupUi(this);
// ui
setWindowTitle(tr("精灵详情"));
table = new QTab... |
//
// Created by cody on 8/7/17.
//
#include <iostream>
int main()
{
std::cout << "Enter two numbers:" << std::endl;
int v1 = 0, v2 = 0;
std::cin >> v1 >> v2;
std::cout << "The sum of " << v1 << " and " << v2
<< " is " << v1 + v2 << std::endl;
return 0;
} |
https://github.com/Yashwanth-Chennu
Problem Statement:https://www.hackerearth.com/practice/basic-programming/input-output/basics-of-input-output/practice-problems/algorithm/is-zoo-f6f309e7/submissions/
Solution:
#include <bits/stdc++.h>
using namespace std;
int main(){
string zoo;
cin >> zoo;
int len = zoo.size(... |
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "vm/object_graph.h"
#include "vm/dart.h"
#include "vm/dart_api_state.h"
#include "vm/growable... |
// Copyright (c) 2019 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... |
#include "t3_hosvd_test.hpp"
#include "vmmlib/t3_hosvd.hpp"
#include <sstream>
namespace vmml
{
bool
t3_hosvd_test::run()
{
bool global_ok = true;
bool ok = false;
double precision = 0.001;
// hosvd test data after lathauwer et al. 2000a
tensor3< 3, 3, 3, double > t3_data_hosvd;
double data_h... |
/*
* Copyright (c) 2004-present, Facebook, Inc.
* 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. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#in... |
class Solution {
public:
int minMoves2(vector<int>& nums) {
const int inf = 1e9;
sort(nums.begin(), nums.end());
int mid = 0;
long long ans = 0, _min = 0;
int len = nums.size();
if (len % 2) {
mid = nums[len / 2];
for (auto& v : nums) ans += ab... |
// 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/compiler/backend/instruction-selector-impl.h"
#include "src/compiler/node-matchers.h"
#include "src... |
#include <boost/log/sinks/syslog_backend.hpp> |
//+---------------------------------------------------------------------------
//
// Microsoft Forms
// Copyright (C) Microsoft Corporation, 1996
//
// File: baseprot.cxx
//
// Contents: Implementation of a base class for pluggable protocols
//
// History: 02-12-97 AnandRa Created
//
//----------... |
/*
* Copyright (C) 2021 Patrick Mours
* License: https://github.com/crosire/reshade#license
*/
#pragma once
#include "reshade_api_resource.hpp"
namespace reshade { namespace api
{
/// <summary>
/// A list of flags that represent the available shader stages in the render pipeline.
/// </summary>
enum class sha... |
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <unordered_set>
#include <array>
#include <stack>
#include <map>
#include <set>
#include <algorithm>
#include <cmath>
#include <chrono>
#include <ranges>
bool explode_number(std::string& nr) {
// ... |
/* Copyright 2021 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... |
//
// StaticModule.hpp
// MNN
//
// Created by MNN on b'2020/09/10'.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef StaticModule_hpp
#define StaticModule_hpp
#include <set>
#include <MNN/expr/Module.hpp>
namespace MNN {
class Session;
class Backend;
namespace Express {
struct NetStorage;
class Stat... |
// Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/json/
#ifndef TAO_JSON_JAXN_FROM_STRING_HPP
#define TAO_JSON_JAXN_FROM_STRING_HPP
#include <cstddef>
#include <utility>
#include "../events/to_value.hpp"
#include "../events/transformer.hp... |
//
// LSTMWeightInt8.cpp
// MNNConverter
//
// Created by MNN on 2020/09/17.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include <flatbuffers/util.h>
#include "../../common/Global.hpp"
#include "../TemplateMerge.hpp"
#include "MNN/expr/ExprCreator.hpp"
#include "MNN_generated.h"
#include "MergeHelpers.h... |
#include<stdio.h>
#include<math.h>
#include<graphics.h>
int main(){
int x1,y1,x2,y2,gd,gm;
int ymax,a[4][8];
float par[4][4],b[4][8];
int i,j,k,m,n,p;
int xp, yp, zp, x, y, z;
a[0][0] = 100; a[1][0] = 100; a[2][0] = -100;
a[0][1] = 200; a[1][1] = 100; a[2][1] = -100;
a[0][2] = 200; a[1][2] = 200; a[2][2] = -1... |
/****************************************************************************
*
* Copyright (c) 2015, Cadence Design Systems. All Rights Reserved.
*
* This file contains confidential information that may not be
* distributed under any circumstances without the written permision
* of Cadence Design Systems.
*
******... |
/****************************************************************************
*
* Copyright 2018 Samsung Electronics 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... |
/*
*
* Copyright (c) 2014, weizhenwei
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of condi... |
// Copyright (c) 2016-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 law... |
#include "sentence_splitter.h"
#include "gtest/gtest.h"
#include "gmock/gmock.h"
TEST(Sentence, ChrLength) {
ASSERT_EQ(3, kss::getUTF8ChrLength("안", 0));
ASSERT_EQ(1, kss::getUTF8ChrLength("1", 0));
ASSERT_EQ(1, kss::getUTF8ChrLength("a", 0));
ASSERT_EQ(3, kss::getUTF8ChrLength("안녕", 3));
ASSERT_EQ... |
//=================================================================================================
/*!
// \file src/mathtest/tsvecdmatmult/VCbDDb.cpp
// \brief Source file for the VCbDDb sparse vector/dense matrix multiplication math test
//
// Copyright (C) 2013 Klaus Iglberger - All Rights Reserved
//
// This fi... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2017 The Astral Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "wallet/init.h"
#inclu... |
#pragma once
#include <bts/blockchain/types.hpp>
#include <bts/blockchain/withdraw_types.hpp>
#include <bts/blockchain/transaction.hpp>
namespace bts { namespace blockchain {
struct asset_record
{
enum
{
market_issued_asset = -2,
market_feed_issued_asset = -3
};
asset_... |
/////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the Apache License, Versio... |
/* $Id: time-darwin.cpp $ */
/** @file
* IPRT - Time, Darwin.
*/
/*
* Copyright (C) 2006-2015 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of... |
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... |
// 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 "third_party/blink/renderer/modules/keyboard/keyboard_layout_map.h"
namespace blink {
class KeyboardLayoutMapIterationSource final
: public... |
#include "stub/populators.h"
#include "mem/extract.h"
#if defined _LINUX
static constexpr uint8_t s_Buf_CPopulationManager_m_RespecPoints[] = {
0x55, // +0000 push ebp
0x89, 0xe5, // +0001 mov ebp,esp
0x57, // +0003 push edi
0x... |
/*
***********************************************************************************************************************
*
* Copyright (c) 2016-2019 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... |
//*****************************************************************************
// Copyright 2017-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://w... |
// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... |
/*
This program reads 2 compressed processed pileups (explicit ATCG counters) and looks for common lines between them.
A "common line couple" is a couple of lines, one from the first file and the other from the second, with same chromosome and base number.
This program needs Boost and ZLib libraries to work with gzipp... |
#include "bgspch.h"
#include "Engine/Renderer/API/Framebuffer.h"
#include "Engine/Renderer/API/RendererAPI.h"
#include "Engine/Renderer/Renderer.h"
#include "Engine/Core/Core.h"
#include "Platform/DX11/DX11Framebuffer.h"
namespace BIGOS {
std::shared_ptr<Framebuffer> Framebuffer::Create(const FramebufferSpecificati... |
// Copyright (c) 2020 Xi Cheng. All rights reserved.
// Use of this source code is governed by a Apache License 2.0 that can be
// found in the LICENSE file.
#include <chrono>
#include <ctime>
#include <vector>
#include "gtest/gtest.h"
#include "src/delay_queue.h"
struct Task {
using TimePoint = std::chrono::high_r... |
#include <iostream>
using namespace std;
int main() {
// simply echo the input number
int x;
cin >> x;
cout << x << endl;
return 0;
} |
/**
* @file hmm_regression.hpp
* @author Michael Fox
*
* Definition of HMMRegression class.
*/
#ifndef MLPACK_METHODS_HMM_HMM_REGRESSION_HPP
#define MLPACK_METHODS_HMM_HMM_REGRESSION_HPP
#include <mlpack/core.hpp>
#include <mlpack/core/dists/regression_distribution.hpp>
#include "hmm.hpp"
namespace mlpack {
name... |
/*
* File: tac_converter.cpp
*
* Created on June 1, 2016, 10:19 PM
*/
#include "mcc/tac/tac.h"
#include "mcc/cfg/cfg.h"
#include "mcc/gas/gas.h"
#include "mcc/gas/helper/tac_converters.h"
#include "mcc/gas/helper/tac_float_converters.h"
#include "mcc/gas/helper/tac_int_converters.h"
#include "mcc/tac/array.h"
#i... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "low_precision_transformations/fake_quantize_and_max_pool_transformation.hpp"
#include <memory>
#include <tuple>
#include <vector>
#include <string>
//#include <ie_core.hpp>
#include <transformations/init_node_info.hpp>
#... |
// Copyright (c) 2019 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... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The ZCore 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/zcore-config.h"
#endif
#include ... |
#include "Vulkan/VkIndirectDrawablePool.h"
namespace Azura {
namespace Vulkan {
} // namespace Vulkan
} // namespace Azura |
// Ceres Solver - A fast non-linear least squares minimizer
// Copyright 2010, 2011, 2012 Google Inc. All rights reserved.
// http://code.google.com/p/ceres-solver/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
... |
// RobotBuilder Version: 1.5
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// C++ from RobotBuilder. Do not put any code or make any change in
// the blocks ... |
/*
// Definition for a Node.
class Node {
public:
int val;
vector<Node*> children;
Node() {}
Node(int _val) {
val = _val;
}
Node(int _val, vector<Node*> _children) {
val = _val;
children = _children;
}
};
*/
class Solution {
public:
void postorder(Node* root,v... |
#include "blockexplorer.h"
#include "bitcoinunits.h"
#include "chainparams.h"
#include "clientmodel.h"
#include "core_io.h"
#include "main.h"
#include "net.h"
#include "txdb.h"
#include "ui_blockexplorer.h"
#include "ui_interface.h"
#include "util.h"
#include "utilstrencodings.h"
#include <QDateTime>
#include <QKeyEven... |
// Copyright 2006-2009 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.
// CPU specific code for arm independent of OS goes here.
#ifdef __arm__
#ifdef __QNXNTO__
#include <sys/mman.h> // for cache flushing.
#undef MAP... |
#include "windowsetting.h"
#include "ui_windowsetting.h"
#include "generalwindow.h"
#include <QtDebug>
#include "database.h"
WindowSetting::WindowSetting(QWidget *parent) :
QDialog(parent),
ui(new Ui::WindowSetting)
{
ui->setupUi(this);
m_main = qobject_cast<generalWindow*>(parent);
this->setModal(... |
/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019,
2020, 2021, 2022 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 ... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "PhysicsVolume_Cell.h"
void APhysicsVolume_Cell::PostInitializeComponents()
{
Super::PostInitializeComponents();
bWaterVolume = true;
FluidFriction = 1000.f;
} |
/**
* \file
*
* \copyright
* Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*/
#include "Curve.h"
namespace MaterialPro... |
#include "test/integration/integration.h"
#include <chrono>
#include <cstdint>
#include <functional>
#include <list>
#include <memory>
#include <string>
#include <vector>
#include "envoy/admin/v3/config_dump.pb.h"
#include "envoy/api/v2/discovery.pb.h"
#include "envoy/buffer/buffer.h"
#include "envoy/config/bootstrap... |
/*
The MIT License (MIT)
Copyright (c) 2013-2015 SRS(ossrs)
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, merg... |
/*
* Carbon Framework Examples
* Event send/receive
*
* Copyright (c) 2016 Softland. All rights reserved.
* Licensed under the Apache License, Version 2.0
*/
/*
* Revision history:
*
* Revision 1.0, 01.06.2016 11:50:35
* Initial revision.
*/
#include "receiver.h"
#include "event_app.h"
/*
* Applicat... |
/*
* Copyright © 2011,2012 Google, Inc.
*
* This is part of HarfBuzz, a text shaping library.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and its documentation for any purpose, provided that the
* above... |
/** @file
*
* @ingroup dspFilterLib
*
* @brief Unit test for the FilterLib #TTHighpassButterworth2 class.
*
* @details Currently this test is just a stub
*
* @authors Trond Lossius, Tim Place
*
* @copyright Copyright © 2012 by Trond Lossius & Timothy Place @n
* This code is licensed under the terms of the "N... |
// Copyright (c) 2014-2018 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 <qt/winshutdownmonitor.h>
#if defined(Q_OS_WIN)
#include <shutdown.h>
#include <util/system.h>
#include <window... |
//--------------------------------------------------------------------------
// MIT License
//
// Copyright (c) 2021 Yoshiya Usui
//
// 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 withou... |
// Copyright 2017 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/devtools/protocol/devtools_download_manager_delegate.h"
#include "base/bind.h"
#include "base/files/file_util.h"
#include "base... |
/* Copyright 2017 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 agree... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2019 The PIVX developers
// Copyright (c) 2021 The T-Notes developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING... |
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// http://code.google.com/p/protobuf/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistri... |
#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<algorithm>
#include<map>
#include<ext/pb_ds/tree_policy.hpp>
#include<ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef tree<long long,null_type,less<long long>,splay_tree_tag,tree_order_statistics_node... |
#include <Dot/BinaryReadOperation.hpp>
dot::BinaryReadOperation::BinaryReadOperation(Dot &dot, int bytesToRead) : Operation(dot, [](Operation &){}){
//TODO interact with the looper
} |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
#pragma once
#include <stdint.h>
static const uint16_t RJ_BASE2015_VENDOR_ID = 0x524A;
static const uint16_t RJ_BASE2015_PRODUCT_ID = 0x4253;
static const uint16_t RJ_BASE2015_RELEASE = 0x0000;
// USB "control transfer" commands recognized by the base station
enum Base2015ControlCommand {
RadioWriteRegister = 1,... |
// **********************************************************************
// @@@ START COPYRIGHT @@@
//
// 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.... |
//$Id:$
//------------------------------------------------------------------------------
// SpiceKernelReader
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool.
//
// Copyright (c) 2002 - 2018 United States Government as ... |
/*
* Copyright (c) 2012, Michael Lehn, Klaus Pototzky
*
* 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... |
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/gpu/gpu_data_manager_impl_private.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/command_line.h"
#... |
#include <map>
#include "../Baselib/BaseLib.h"
#include "../Commands/Commands.h"
/***
* Class constructor/distructor implementation.
*/
Commands::Commands()
{
}
Commands::~Commands()
{
commands_dic.clear();
}
/***
* Add new command name and callback to list of commands.
*/
bool Commands::Add(std::string... |
//=================================================================================================
/*!
// \file src/main/DMatTDMatAdd.cpp
// \brief Source file for the dense matrix/transpose dense matrix addition benchmark
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// This file is part ... |
// ==========================================================================
// Munin List Component.
//
// Copyright (C) 2011 Matthew Chaplain, All Rights Reserved.
//
// Permission to reproduce, distribute, perform, display, and to prepare
// derivitive works from this file under the following conditions:
//
// 1. A... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__new_free_class_67b.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_free.label.xml
Template File: sources-sinks-67b.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Management Routines
* ... |
/* The MIT License (MIT)
*
* Copyright (c) 2015 LabCrypto Org.
*
* 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... |
/* MIT License
*
* Copyright (c) 2021 laferenorg
*
* 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, ... |
#include "langswitch.h"
#include <QVBoxLayout>
#include <QTranslator>
#include <QApplication>
LangSwitch::LangSwitch(QWidget *parent)
: QWidget(parent)
{
createScreen();
}
void LangSwitch::createScreen()
{
combo = new QComboBox;
combo->addItem("English", "en"); //(a)
combo->addItem("Chinese", "zh... |
// Author(s): Wieger Wesselink
// Copyright: see the accompanying file COPYING or copy at
// https://svn.win.tue.nl/trac/MCRL2/browser/trunk/COPYING
//
// 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)
//
/// \file... |
#define BOOST_TEST_MODULE blsvoterset_test_suite
#include <boost/test/included/unit_test.hpp>
#include <iostream>
#include <fc/io/json.hpp>
#include <core/BlsVoterSet.h>
using namespace futureio;
using namespace std;
BOOST_AUTO_TEST_SUITE(blsvoterset_test_suite)
BOOST_AUTO_TEST_CASE(toString) {
CommonEch... |
/* ---------------------------------------------------------------- *
Antti Jumpponen <kuumies@gmail.com>
The implementation of kuu::rasperi::Sampler class.
* ---------------------------------------------------------------- */
#include "rasperi_sampler.h"
#include <array>
#include <iostream>
#include <glm/gtx/... |
SparseMatrix<double> A(3,3);
A.insert(1,2) = 0;
A.insert(0,1) = 1;
A.insert(2,0) = 2;
A.makeCompressed();
cout << "The matrix A is:" << endl << MatrixXd(A) << endl;
cout << "it has " << A.nonZeros() << " stored non zero coefficients that are: " << A.coeffs().transpose() << endl;
A.coeffs() += 10;
cout << "After adding ... |
/***************************************************************************//*!
*
* @file markdown-math.hpp
*
* @author Peter Goldsborough.
*
*******************************************************************************/
#ifndef MARKDOWN_MATH_HPP
#define MARKDOWN_MATH_HPP
#include "markdown-abstract-math.hpp"
#in... |
/*
Copyright (C) 2019 Jerry R. VanAken
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,
including commercial a... |
#include <Interpreters/DDLTask.h>
#include <base/sort.h>
#include <Common/DNSResolver.h>
#include <Common/isLocalAddress.h>
#include <IO/WriteHelpers.h>
#include <IO/ReadHelpers.h>
#include <IO/Operators.h>
#include <IO/ReadBufferFromString.h>
#include <Poco/Net/NetException.h>
#include <Common/logger_useful.h>
#includ... |
#include <iostream>
using namespace std;
#define PHI 3.14
int main ()
{
float r,s;
float Kerucut,selimut;
int phi=3.14;
cout << " Program Pengerjaan Luas Dan Selimut Kerucut\n";
cout << " \n Muhammad Ilham Nursastrawan_123200168\n";
cout << " \n masukkan Jari Jari : ";
cin >> r;
cout << " masukkan ga... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.